Magento – magento 2 catalog:images:resize – Notice error

imagemagento2thumbnail

I have strange error in magento when trying to regenerate thumbs:

$ php bin/magento catalog:images:resize

Notice: Undefined index: Magento\Catalog\Model\Product in
/Applications/MAMP/htdocs/mini-minicart-mobile/vendor/magento/framework/Interception/PluginList/PluginList.php
on line 232

What is wrong?

Best Answer

I attribute this solution to Spyrule.

From my understanding so far, is that if you happen to call the image resize while a re-index is occurring it can cause this error. If you wait until your indexing is complete, and re-run, it will execute with no errors. – Spyrule May 12 at 15:42

Solution:

1)Reindex -> bin/magento indexer:reindex
2)Resize again -> bin/magento catalog:image:resize

P.S -> Use necessary privileges where necessary.

Related Topic