3

When try run command in terminal example php bin setup:upgrade show like these error messages. Not only that but also all commands

-[ReflectionException] Class Magento\Config\Console\Command\ConfigSet\ProcessorFacadeFactory does not exist. - [ReflectionException] Class Magento\Config\Console\Command\ConfigSet\ProcessorFacadeFactory does not exist. - [RuntimeException] Can't create directory /var/www/html/robolk/generated/code/Magento/Config/Console/Command/ConfigSet/. in [Magento\Config\Console\Command\ConfigSet\ProcessorFacadeFactory].

Why is Magento showing these errors?

1
  • Could you provide some more information? Where is Magento showing these errors for example? Dec 15, 2017 at 10:58

3 Answers 3

5

You need to Set permission in Var like ...

Sudo chmod 0777 -R var/ generated/

If sudo not working then just ..

chmod 0777 -R var/ generated/
1

I think you are on Magento 2.2+ which has generated folder on root

so for that you have to give 0777 permission to 3 folders

pub, var, generated

chmod 0777 -R var/ generated/ pub/

Also you need to check that server user has enough permission to create files and folder

0

You need to provide 777 or 775 file/folder permission to

var and pub and generated

That is

sudo chmod 0777 -R var/ pub/ generated/ if you have sudo access

if have normal access then

chmod 0777 -R var/ pub/ generated/

directory for your webserver user (like apache) and the current user of CLI both

5
  • I gave but still problem is same
    – RUC...
    Dec 15, 2017 at 11:03
  • which command you try to run
    – Ashish Raj
    Dec 15, 2017 at 11:04
  • 777 file permission
    – RUC...
    Dec 15, 2017 at 11:05
  • sudo chmod 777 -R
    – RUC...
    Dec 15, 2017 at 11:05
  • ok you provide permission for both var and pub directory Now can you let me know which magento command you try to run
    – Ashish Raj
    Dec 15, 2017 at 11:06

Your Answer

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

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