PdfPrep.com

How do you fix this?

After installing a Magento extension that implements a new class for a site and deploying this to an integration environment, you see it is not working.

In the logs, you discover the following error:

The specified /app/generated/code/MyCompany/MyModule/MyClassFactory.php could notbe written failed to open stream: Read-only file system

How do you fix this?
A . A support ticket should be filed with Magento Commerce Cloud to fix the filesystem issue.
B . The extension should be modified so it does not write to generated at runtime.
C . The file should be generated locally and pushed via Git.
D . The GENERATED_CODE_WRITABLE variable should be set to true whenever using extensions.

Answer: B

Explanation:

Reference: https://support.magento.com/hc/en-us/articles/115002541893-Error-read-only-file-system-when­accessing-the-read-only-directory-var-generation-

Exit mobile version