Exception.log file Error:

{"exception":"[object] (ReflectionException(code: -1): Class Magento\Framework\App\Http\Interceptor does not exist

  • Same, I just installed magento fresh from composer and are facing problems already... they need to improve their documentation. – Black Nov 29 '19 at 9:51

Need to recreate Interceptor

Run di:compile command

php bin/magento setup:di:compile
| improve this answer | |

This occurs Because you can inject Magento\Framework\App\Http in any our class

try following steps

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:Deploy -f

chmod -R 777 var/ generated/
| improve this answer | |
  • Thanks! Mr. Waqar Ali now its working fine. – Lokesh M Jul 19 '19 at 7:19
  • 1
    @WaqarAli, why chmod 777 ??? This is insecure – Black Nov 29 '19 at 9:54
  • you need full permission on server because magento delete and create new files in var, pub, and gernated folder when setup:upgrade command runs – Waqar Ali Nov 29 '19 at 10:15

Run commands:

 chmod -R 777 var
 chmod -R 777 pub/static
 chmod -R 777 generated
| improve this answer | |

Run di:compile command

php bin/magento setup:d:compile

and flush the cache

php bin/magento c:f

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.