首页>Magento>source

因为几天我试图在windows 10上使用Docker,Composer安装Magento。

到目前为止,我已经进入了网络安装.对我来说迈出了一大步......

点击最后​​一步后,Magento停留在0%。

日志文件显示如下内容:

[2019-02-14 12:16:38] main.CRITICAL: The path "/var/www/html/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php.86" cannot be renamed into "/var/www/html/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php" Warning!rename(/var/www/html/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php.86,/var/www/html/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php): No such file or directory 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. [] [] [2019-02-14 12:16:39] main.CRITICAL: The path "/var/www/html/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php.78" cannot be renamed into "/var/www/html/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php" Warning!rename(/var/www/html/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php.78,/var/www/html/generated/code/Magento/Paypal/Model/PayflowlinkFactory.php): No such file or directory 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. [] [] [2019-02-14 12:16:48] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://m2.docker/setup/index.php/session/prolong","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} [] [2019-02-14 12:16:53] main.DEBUG: cache_invalidate: {"method":"POST","url":"http://m2.docker/setup/index.php/session/prolong","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} []"

如果我猜测,它与docker有关,但我无法弄清楚如何解决这个问题.我发现了一个与此类似的问题.它在Januar被问过,直到今天才回答它。没有任何线索是错误的。

感谢您的帮助!

最新回答
  • 2019-12-5
    1 #

    您需要更正您的权限。 做一个:

    rm -rf generated/* 
    rm -rf pub/static/*
    

    find app/code var/view_preprocessed vendor pub/static app/etc generated/code generated/metadata \( -type f -or -type d \) -exec chmod u-w {} + && chmod o-rwx app/etc/env.php && chmod u+x bin/magento
    

    或点击此链接了解更多详情。

  • 2019-12-5
    2 #

    感谢您的回复。

    我通过重启Apache解决了这个问题! 这对我有用.

    我不知道我是否会再次绊倒你的答案,因为我仍然面临着问题,而且我可能会需要它.

    再见

  • magento 1.9:项目(Mage_Admin_Model_Block)具有相同的id“ 0” 已经存在
  • magento 1.9:模块的控制器动作名称显示在前端