0

magento version : Magento-CE-2.2.6-2018-09-07-02-07-16
PHP : 7.0.32 this message shown in system.log

"C:/xampp/htdocs/mag/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php.11336" cannot be renamed into "C:/xampp/htdocs/mag/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php" Warning!rename(C:/xampp/htdocs/mag/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php.11336,C:/xampp/htdocs/mag/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php): The process cannot access the file because it is being used by another process. (code: 32) Class Magento\Paypal\Model\PayflowlinkFactory 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 properly, then you must add the generated class object to the signature of the related construct method, only. [] []

Gobinda Nandi
  • 457
  • 7
  • 18

2 Answers2

0

it's fixed. I didn't change any configuration back then. the current release is installing easily. Ii was probably version issue. thanks for asking.

Gobinda Nandi
  • 457
  • 7
  • 18
-2

Rename the file from PayflowlinkFactory.php.11336 to PayflowlinkFactory.php . It may works!

Reference: Renaming File Error: The process cannot access the file because it is being used by another process

  • 2
    The error message says "The process cannot access the file because it is being used by another process. (code: 32". A simple rename wont solve the problem – Spears Dec 07 '18 at 07:58
  • this was some PHP version issue may be, But I still don't have the correct answer. – Gobinda Nandi Jan 27 '19 at 10:11