0

Did anyone run into this problem before?

I get the following error when accessing Magento 2 site:

There has been an error processing your request

Below is the error log content. I ran permissions, compiled, re-index... and clear cache, but nothing changed

Magento\Framework\App\Http\Interceptor does not exist {"exception":"[object] (ReflectionException(code: -1): Class Magento\Framework\App\Http\Interceptor does not exist at /home/accountfolder/public_html/vendor/magento/framework/Code/Reader/ClassReader.php:19)"} []

  • Can you detail some of the things you have tried? – Dominic Xigen Jun 27 at 22:22
  • @DominicXigen I ran permissions, compiled, re-index, deploy... and flush cache – P. Paul Jun 27 at 23:21
  • are you getting this error in local or on the server ? – poojan sharma Jun 28 at 2:02
  • @DominicXigen on the server – P. Paul Jun 28 at 2:54
0

Since the dependency and interception files are not generated in the generated directory you are getting this error. Remove the static and generated files, deploy and compile to get the site up again

Please remove the following directories

rm -rf var/view_preprocessed  var/cache var/page_cache generated

Once done give the proper permissions using the below commands

find var pub/static pub/media app/etc generated/ -type f -exec chmod g+w {} \;
find var pub/static pub/media app/etc generated/ -type d -exec chmod g+ws {} \;
chown -R <Magento user>:<web server group> .

Finally, compile and deploy for the interception classes to be generated

php bin/magento setup:static-content:deploy

php bin/magento setup:di:compile
  • Thanks for the support. However, after doing the above, the site is still not up. When I tried accessing the site after doing the above I got the following error message: "An error has happened during application run. See exception log for details." And exception error log file shows the same error report. – P. Paul Jun 28 at 16:16
  • Running "bin/magento setup:upgrade" then flushing cache solved the problem. Thanks! – P. Paul Jun 29 at 9:19

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.