0

Every time I ran php bin/magento setup:di:compile command it gives me this error

Class Baianat\biusers\Controller\Index\Baianat\biusers\Model\UserFactory does not exist
Class Baianat\biusers\Controller\Index\Index\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 --- t
he requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only.

and then all the permissions goes wrong. Magento 2.4.3

New contributor
Ammar Joma is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
3
  • if you are getting this on give proper permissions for folder using command chmod -R 777 var/ pub/ generated/ Oct 11 at 10:51
  • it didn't work. I already gave permissions before.
    – Ammar Joma
    Oct 11 at 10:56
  • run command by the root user
    – Dipakk
    Oct 11 at 11:16
0

the problem was

the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only.

so I fixed my class.

New contributor
Ammar Joma is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Ammar Joma is a new contributor. Be nice, and check out our Code of Conduct.

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.