Question

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?

Was it helpful?

Solution 2

Still no fix for this, but it looks like it is a theme issue. In that the theme code is not working with current version of Magento.

OTHER TIPS

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

Please check your css/js files path by viewing the source code. If they are not accessible because of some version number in their path then you may try running the following mysql query:

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('default', 0, 'dev/static/sign', '0');

Source: https://github.com/magento/magento2/issues/7869

Please help, I'm faced with a similar issue; When I open my magento homepage it loads successfully while catalog search, categories, product page and other pages load a http 500 error.

Initially it was only the product page that loads a http 500 error, but after running the following command 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

all other pages were affected only the homepage exempted.

Please assist on what I could do to resolve this.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top