如何禁用magento 2.0中的编译器?如何在magento2中禁用编译器?
我已经安装了Magento 2.0,然后从主题森林中安装了一个主题“波尔图”。但是在安装主题后,编译时出现错误。
magento_user:/var/www/html/magento2$ sudo php bin/magento setup:di:compile
Compilation was started.
Interception cache generation... 6/7 [========================>---] 85% 2 mins 418.2 MiBErrors during compilation:
Smartwave\Filterproducts\Helper\Data
Extra parameters passed to parent construct: $data. File: /var/www/html/magento2/app/code/Smartwave/Filterproducts/Helper/Data.php
Smartwave\Filterproducts\Block\FeaturedList
Incorrect dependency in class Smartwave\Filterproducts\Block\FeaturedList in /var/www/html/magento2/app/code/Smartwave/Filterproducts/Block/FeaturedList.php
\Magento\Framework\App\Config\ScopeConfigInterface already exists in context object
\Magento\Catalog\Helper\Image already exists in context object
Smartwave\Filterproducts\Block\Home\FeaturedList
Incorrect dependency in class Smartwave\Filterproducts\Block\Home\FeaturedList in /var/www/html/magento2/app/code/Smartwave/Filterproducts/Block/Home/FeaturedList.php
\Magento\Framework\App\Config\ScopeConfigInterface already exists in context object
\Magento\Catalog\Helper\Image already exists in context object
Smartwave\Filterproducts\Block\Home\LatestList
Incorrect dependency in class Smartwave\Filterproducts\Block\Home\LatestList in /var/www/html/magento2/app/code/Smartwave/Filterproducts/Block/Home/LatestList.php
\Magento\Framework\App\Config\ScopeConfigInterface already exists in context object
\Magento\Catalog\Helper\Image already exists in context object
Smartwave\Filterproducts\Block\LatestList
Incorrect dependency in class Smartwave\Filterproducts\Block\LatestList in /var/www/html/magento2/app/code/Smartwave/Filterproducts/Block/LatestList.php
\Magento\Framework\App\Config\ScopeConfigInterface already exists in context object
\Magento\Catalog\Helper\Image already exists in context object
Total Errors Count: 5
主题供应商说我需要禁用编译。我如何在Magento 2.0中做到这一点?
我在magento2文档中找到了这个,并且找不到任何答案。我可以使用下面的命令禁用模块,但哪一个是编译器模块
sudo php bin/magento module:disable Magento_xxxx
任何帮助/指针将不胜感激。我的网站现在已关闭,需要马上启动它。
接受的解决方案是说没有办法禁用编译器。那么你是如何解决这个问题的? – user2360915
供应商提供了一个更新的版本,我没有面对这个问题 – roz