0

Error in Installation:

[php7:error] [pid 10084:tid 1952] [client ::1:53679] PHP Fatal error: Uncaught RuntimeException: The path "C:/xampp/htdocs/magento/lavoska/generated/code/Magento/Swatches/Block/Adminhtml/Product/Attribute/Edit/FormFactory.php.10084" cannot be renamed into "C:/xampp/htdocs/magento/lavoska/generated/code/Magento/Swatches/Block/Adminhtml/Product/Attribute/Edit/FormFactory.php" Warning!rename(C:/xampp/htdocs/magento/lavoska/generated/code/Magento/Swatches/Block/Adminhtml/Product/Attribute/Edit/FormFactory.php.10084,C:/xampp/htdocs/magento/lavoska/generated/code/Magento/Swatches/Block/Adminhtml/Product/Attribute/Edit/FormFactory.php): The process cannot access the file because it is being used by another process. (code: 32)\r\nClass Magento\Swatches\Block\Adminhtml\Product\Attribute\Edit\FormFactory 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 --- the requested class did not generate in C:\xampp\htdocs\magento\lavoska\vendor\magento\framework\Code\Generator.php on line 135, referer: http://localhost:81/magento/lavoska/setup/

3
  • What is the php version you are using? Commented Dec 19, 2018 at 18:13
  • I described the problem here magento.stackexchange.com/questions/252188/… Commented Dec 19, 2018 at 21:07
  • 7.2 php version using. Commented Dec 21, 2018 at 15:34

2 Answers 2

2

if you are on windows open the folder and give permissions to generated folder to "uncheck" read only and for linux operating systems use chmod -R 755 generated and you will be able to install the magento 2.3.1

0

You must set the permission for project and you can do it with you must click right to folder project and unchecked the "Read-only" for all files and folders from project.

4
  • I have done that, but that is not unchecking. When process done, that seems again checked. Can you suggest me that why is it happening? Commented Dec 21, 2018 at 15:38
  • After unchecked please run all commands which you need and after that re-unchecked. Commented Dec 21, 2018 at 20:02
  • How install ? in browser or with CLI command ? Commented Dec 21, 2018 at 20:03
  • in browser..... Commented Dec 24, 2018 at 16:22

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.