Prestashop 致命错误:未捕获异常';适配器异常';带有消息';未设置服务容器;

Prestashop 致命错误:未捕获异常';适配器异常';带有消息';未设置服务容器;,prestashop,Prestashop,我刚将prestashop商店升级到1.6.1.5,一切正常,但在安装模块时,出现以下错误: 致命错误:未捕获异常“适配器\u异常”并显示消息 “未设置服务容器。”在中 /customers/8/c/0/tinplate models.be/httpd.www/Adapter/Adapter\u ServiceLocator.php:49 堆栈跟踪:#0 /customers/8/c/0/tinplate models.be/httpd.www/classes/ObjectModel.php(2

我刚将prestashop商店升级到1.6.1.5,一切正常,但在安装模块时,出现以下错误:

致命错误:未捕获异常“适配器\u异常”并显示消息 “未设置服务容器。”在中 /customers/8/c/0/tinplate models.be/httpd.www/Adapter/Adapter\u 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->_构造('1',NULL,NULL)#2 /customers/8/c/0/tinplate models.be/httpd.www/classes/shop/shop.php(400): ShopCore->构造('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): 需要('/customers/8/c/…)#5{main}抛出 /customers/8/c/0/tinplate-models.be/httpd.www/Adapter/Adapter\u ServiceLocator.php 第49行

希望有人能找到解决办法?

我也有同样的问题。 现在我找到了原因——Adapter_ServiceLocator.phpget()使用私有字段$service_container的方法,应该使用方法设置ServiceContainerInstance()来实现。我在/config/bootstrap.php中找到了初始化。但它并不是bootstrap.php文件的任何一部分

因此,您应该下载新版本的Prestashop并重写/config/config.inc.php。 因为它必须包含

 require_once $currentDir . DIRECTORY_SEPARATOR . 'bootstrap.php';
我希望这会有帮助

我也有同样的问题。 现在我找到了原因——Adapter_ServiceLocator.phpget()使用私有字段$service_container的方法,应该使用方法设置ServiceContainerInstance()来实现。我在/config/bootstrap.php中找到了初始化。但它并不是bootstrap.php文件的任何一部分

因此,您应该下载新版本的Prestashop并重写/config/config.inc.php。 因为它必须包含

 require_once $currentDir . DIRECTORY_SEPARATOR . 'bootstrap.php';

我希望这会有所帮助

您的项目中是否存在文件
/Adapter/Adapter\u EntityMapper.php
?它似乎丢失了,并导致了异常。它就在那里。我有相同的错误消息您的项目中是否存在文件
/Adapter/Adapter\u EntityMapper.php
?它似乎丢失了,并导致了异常。它就在那里。我有相同的错误消息