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

asked Oct 11, 2021 at 10:44
3
  • if you are getting this on give proper permissions for folder using command chmod -R 777 var/ pub/ generated/ Commented Oct 11, 2021 at 10:51
  • it didn't work. I already gave permissions before. Commented Oct 11, 2021 at 10:56
  • run command by the root user 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.

answered Oct 11, 2021 at 16:11

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.