enter image description here

Class Vendor\Mymodule\Controller\Adminhtml\Allimports\Save\Interceptor does not exist

I have a custom form and when I save data this error message, how to fix it, except usage di: compile. Thank you.

  • You need to di compile again – Amit Bera Sep 3 '19 at 8:02
  • run compile di compile command which generates interceptor – Adarsh Shukla Sep 3 '19 at 8:16
  • I know, di: compile can fix it, but is there any other way? – MichaelHa Sep 3 '19 at 8:22
  • not possible to another way.. – Anas Mansuri Sep 3 '19 at 8:23
  • Ok, Thanks for your help. – MichaelHa Sep 3 '19 at 8:25

If you dont want to go for di compile. Please remove the var/generation folder (For < Magento 2.2) or generated folder (For >= Magento 2.2) and do the deployment, give necessary permissions and check the output.

|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.