
[英]Error in Prestashop Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file
[英]Fatal error: Uncaught exception 'Adapter_Exception' with message 'Service container is not set.'
我只是将我的prestashop商店升级到1.6.1.5,一切正常,但是当我安装模块时,出现此错误:
致命错误:消息“未设置服务容器”的未捕获异常“ Adapter_Exception”。 在/customers/8/c/0/tinplate-models.be/httpd.www/Adapter/Adapter_ServiceLocator.php:49中的堆栈跟踪:#0 /customers/8/c/0/tinplate-models.be/httpd.www /classes/ObjectModel.php(232):Adapter_ServiceLocator :: get('Adapter_EntityM ...')#1 /customers/8/c/0/tinplate-models.be/httpd.www/classes/shop/Shop.php (131):ObjectModelCore-> __ construct('1',NULL,NULL)#2 /customers/8/c/0/tinplate-models.be/httpd.www/classes/shop/Shop.php(400):ShopCore -> __ construct('1')#3 /customers/8/c/0/tinplate-models.be/httpd.www/config/config.inc.php(95):ShopCore :: initialize()#4 / customers /8/c/0/tinplate-models.be/httpd.www/index.php(27):require('/ customers / 8 / c / ...')#5 {main}放在/ customers / 8中/c/0/tinplate-models.be/httpd.www/Adapter/Adapter_ServiceLocator.php,第49行
希望有人有解决方案?
我有同样的问题。 现在,我找到了原因-使用私有字段$ service_container的Adapter_ServiceLocator.php get()方法,应使用setServiceContainerInstance()方法对其进行设置 。 我在/config/bootstrap.php中找到了初始化。 但是它没有包含bootstrap.php文件!
因为它必须包含
require_once $currentDir . DIRECTORY_SEPARATOR . 'bootstrap.php';
希望对您有所帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.