从1.7.3.1升级到1.7.6.1后,我无法访问产品目录页面或编辑任何产品
它给了我两个致命的PHP错误。
第一个例外:Twig \ Error \ RuntimeError
在src / PrestaShopBundle / Resources / views / Admin / layout.html.twig(第34行)中
layoutHeaderToolbarBtn is defined ? layoutHeaderToolbarBtn : [],
layoutDisplayType is defined ? layoutDisplayType : '',
showContentHeader is defined ? showContentHeader : true,
headerTabContent is defined ? headerTabContent : '',
enableSidebar is defined ? enableSidebar : false,
Line 34 help_link is defined ? help_link : ''
)
)) %}
{% import '@PrestaShop/Admin/macros.html.twig' as ps %}
第二个例外:Symfony \ Component \ DependencyInjection \ Exception \ ServiceNotFoundException
in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php (line 348)
if ($lev <= \strlen($id) / 3 || false !== strpos($knownId, $id)) {
$alternatives[] = $knownId;
}
}
throw new ServiceNotFoundException($id, null, null, $alternatives);
}[enter image description here][1]
}
/**
* Returns true if the given service has actually been initialized.
原来,相关产品模块未更新。这是在市场上购买的模块。我检查了兼容性,并说它与1.7.6.1兼容,因此出于这个原因,我的后台告诉我我有0个可用的更新,并且该模块是最新的,我认为这很好。
但是显然,在市场上购买的模块不会在prestashop中显示其更新。
我通过卸载相关产品模块并从prestashop市场上下载了最新的1.6.4而不是1.6.3来解决此问题。