如何解决编译错误
[master_qmajkwnjbz]:public_html$ php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 60.0 MiBPHP Fatal error: I nterface 'Psr\SimpleCache\CacheInterface' not found in /home/427182.cloudwaysapps.com/gravqhssbb/public_h tml/app/code/Magezon/PageBuilder/Model/InstagramCacheManager.php on line 7
Fatal error: Interface 'Psr\SimpleCache\CacheInterface' not found in /home/427182.cloudwaysapps.com/gravq hssbb/public_html/app/code/Magezon/PageBuilder/Model/InstagramCacheManager.php on line 7
答案 0 :(得分:0)
不要直接运行setup:di:compile
。
尝试以下命令:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
答案 1 :(得分:0)
我怎么得到的
[master_vkhvxsgmux]:public_html$ bin/magento setup:di:compile
Compilation was started.
Area configuration aggregation... 5/7 [====================>-------] 71% 30 secs 250.0 MiB
[ReflectionException]
Class Magento\Catalog\Model\Product\Authorization does not exist
[ReflectionException]
Class Magento\Catalog\Model\Product\Authorization does not exist
setup:di:compile
答案 2 :(得分:0)
Magezon_PageBuilder模块
(/ app / code / Magezon / PageBuilder / Model / InstagramCacheManager.php)
所需的Psr \ SimpleCache \ CacheInterface在系统中不存在或未正确初始化
禁用/删除提到的模块或修复此依赖性
答案 3 :(得分:0)
我收到此错误https://prnt.sc/udsmpm
[ReflectionException]
Class Magento\Catalog\Model\Product\Authorization does not exist
[ReflectionException]
Class Magento\Catalog\Model\Product\Authorization does not exist