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

3
  • if you are getting this on give proper permissions for folder using command chmod -R 777 var/ pub/ generated/
    – Waqar Ali
    Commented Oct 11, 2021 at 10:51
  • it didn't work. I already gave permissions before.
    – Ammar Joma
    Commented Oct 11, 2021 at 10:56
  • run command by the root user
    – Dipakk
    Commented Oct 11, 2021 at 11:16

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.