experius / Magento2-Module-Experius-ReindexCatalogUrlRewrites

Adds a function to Magento 2 to fix or 'reindex' your catalog product urls rewrites with a console command line script
10 stars 2 forks source link

Bug in di.xml #8

Closed hannemann closed 6 years ago

hannemann commented 6 years ago

Hey there,

you have a bug in your di.xml within magento2.2 You cannot have two commands arguments anymore. Should be written like this:


<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Framework\Console\CommandList">
        <arguments>
            <argument name="commands" xsi:type="array">
                <item name="product_url_regeneration_command" xsi:type="object">Experius\ReindexCatalogUrlRewrites\Console\Command\RegenerateProductUrlCommand</item>
                <item name="category_url_regeneration_command" xsi:type="object">Experius\ReindexCatalogUrlRewrites\Console\Command\RegenerateCategoryUrlCommand</item>
            </argument>
        </arguments>
    </type>
</config>```
ghost commented 6 years ago

Thanks, changed it!

hannemann commented 6 years ago

Great. Thank you