1

Class Magento\Framework\Mail\EmailMessageInterfaceFactory does not exist Class Vendor\Extension\Model\Mail\TransportBuilder\Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only.

I found some solutions but none worked.

Thanks in advance,

0

Run the command: (To give permissions to generated folder) as:

chmod -R 777 /var/www/html/generated

and run

bin/magento setup:di:compile

| improve this answer | |
0

Try following commands in your magento root folder

chmod -R 777 var generated pub
chown systemusername:systemusername var generated pub
php bin/magento setup:di:compile
| 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.