Magento 2 – Fix HTTP ERROR 500 on Product Page

errorhttp-error-500magento-2.1magento2product-attribute

System: Magento 2.1

Everything was running fine 5 minuts ago. I had 3 Products in my Catalog (all using the same Attribute Set). Then I simply deleted 2 Attributes from my (currently in use) Attribute Set via Admin Panel. Then via Magento CLI I did cache:clean , cache:flush, indexer:reindex -> then Deleted Browser Cache.

In Browser I reloaded my webshop (everithyng looks fine). When I click on a Product -> Product Page https://myshop.de/product1-300x200.html loads and gives
HTTP ERROR 500.

Everything else on my Webshop works fine, just all my Product Pages give me the same HTTP ERROR 500 error.

Best Answer

For the unexpected error (e.g 500), we should enable error reporting on the bootstrap:

app/bootstrap.php

ini_set('display_errors', -1) // Should enable error reporting with -1 value.

In your case, we need to check the places where you call your custom attributes which have been deleted.

Another way, we need to check the Apache error log.

Related Topic