Magento 2 – Fix Product Page HTTP 500 Error

errorhttp-error-500magento2

First time posting here for Magento2, so if this is not correct method or place, please let me know how to rectify. Using version 2.1.0 currently.

Hitting http 500 error on product page URL in browser. All other pages of the Magento 2 install are loading fine and as they should. Developer mode turned back on and errors showing in browser as below:

2 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Magento\Catalog\Block\Product\ProductList\Item\Container
Exception #1 (ReflectionException): Class Magento\Catalog\Block\Product\ProductList\Item\Container does not exist

Have tried the solutions that suggest it's a cache issue. We have cleared the var/generation folder. Not a permissions issue, as all other pages loading fine and have set permissions to be as they need to be following those relevant guides.

Potential for one of the catalog database tables to be corrupt? Missing files?

Best Answer

Check for var Module permission.

First run

php bin/magento list

Above one gives u where the error is & check error logs in var folder.

If above things not work, then follow below ones

Go to magento\vendor

Delete All Files.

Go to command line to ur Magento Root Path

Run composer install

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush
Related Topic