从 1.7.3 升级到 1.7.6 后目录产品页面出现错误 500

Catalog product page gives error 500 after upgrade from 1.7.3 to 1.7.6

从 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.

交叉张贴在这里https://www.prestashop.com/forums/topic/1003821-catalog-product-page-gives-error-500-after-upgrade-from-173-to-176/

Error screenshot

原来是相关产品模块没有更新。这是在 Marketplace 上购买的模块。我检查了兼容性,它说它与 1.7.6.1 兼容,因此,结合我的后台告诉我我有 0 个可用更新并且模块是最新的,我认为一切都很好。

但显然,在市场上购买的模块不会在 prestashop 中显示其更新。

我通过卸载相关产品模块并从 prestashop 市场下载最新的 1.6.4 而不是 1.6.3 解决了这个问题。