Uncaught Error: Class 'Magento\Framework\App\Cache\Frontend\Factory' not found
Uncaught Error: Class 'Magento\Framework\App\Cache\Frontend\Factory' not found
我在 magento 中遇到这个错误。检查 etc/di.xml 文件。
我不知道发生了什么,也不知道为什么会这样。
我试过删除缓存并禁用缓存,但没有任何变化。
Fatal error: Uncaught Error: Class 'Magento\Framework\App\Cache\Frontend\Factory' not found in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:122 Stack trace: #0 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewo...', Array) #1 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\Framewo...') #2 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\Framewo...') #3 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\Framewo...') #4 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\Framewo...') #5 /var/www/html/ in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 122
PHP不认识classMagento\Framework\App\Cache\Frontend\Factory
。在您的代码中的某处,必须有一个包含类似以下内容的文件:
<?php
namespace Magento\Framework\App\Cache\Frontend;
class Factory
{ ... }
也许您的源代码中不存在该文件(也许您缺少定义 class 的库)。或者文件存在但无法加载,因为您的自动加载未按预期工作。自动加载通常使用 Composer
完成。有了这些信息,您也许可以开始调试了..
我在 magento 中遇到这个错误。检查 etc/di.xml 文件。
我不知道发生了什么,也不知道为什么会这样。
我试过删除缓存并禁用缓存,但没有任何变化。
Fatal error: Uncaught Error: Class 'Magento\Framework\App\Cache\Frontend\Factory' not found in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:122 Stack trace: #0 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewo...', Array) #1 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\Framewo...') #2 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\Framewo...') #3 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\Framewo...') #4 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\Framewo...') #5 /var/www/html/ in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 122
PHP不认识classMagento\Framework\App\Cache\Frontend\Factory
。在您的代码中的某处,必须有一个包含类似以下内容的文件:
<?php
namespace Magento\Framework\App\Cache\Frontend;
class Factory
{ ... }
也许您的源代码中不存在该文件(也许您缺少定义 class 的库)。或者文件存在但无法加载,因为您的自动加载未按预期工作。自动加载通常使用 Composer
完成。有了这些信息,您也许可以开始调试了..