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.
There might be a chance that you have created a function name and earlier you were not passing any argument in that function. After some changes, you passed one argument to the same function. In this case, an error will come.
So just rename that function name and again run all commands i.e. di:compile. setup:upgrade , s:s:d -f, cache:flush. It will work.
Kudos if this solution work
This might be happening because your class really doesn't exist or because you need to clean up your compiled files and generate them again.
Check if the class exist
Then run these commands below to make sure you have all your required composer packages installed and you regenerated the compiled files.
bin/magento setup:static-content:deploy -f