1

The issue started when I was attempting to enter production mode with

php bin/magento deploy:mode:set production

Upon researching the issue, I attempted to see if the error gave more information when I tried to compile without entering production mode.

Here is the error I received.

error message

Any thoughts on the next steps I can take to resolve this? The ultimate goal is to be able to switch to production mode, but this compiling issue seems to be what is preventing me.

0

You are getting error during interceptor generation then this class should be referenced somewhere and doesn't actually exist. I think you may not have created object of this class that's why you don't know where the error is coming from. So, first you should search for the mention class and remove it's reference.

If you only need to set the store in production you can also just skip compilation by adding --skip-compilation param like below ;

php bin/magento deploy:mode:set production --skip-compilation
  • Your answer gave me a step in the right direction. I was able to resolve my issue. I simply disabled the MGS_Brand Module within the config.php file located at app/etc/config.php. After I disabled that, I attempted to compile once again and this time it successfully went through. I was also able to switch to production mode. – David A. Sep 6 '18 at 22:12
  • Glad to hear that, you can mark the answer as accepted if it helped. – Vivek Kumar Sep 6 '18 at 22:22

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.