我有一个使用Prestashop 1.7.6.9制作的电子商务,该电子商务通常返回500错误。
因此,我尝试启用调试,现在Prestashop显示此错误:
(1/1) FatalThrowableError
Type error: Argument 2 passed to
PrestaShop\PrestaShop\Adapter\Presenter\Product\ProductListingPresenter::present()
must be of the type array, boolean given, called in
/home/path/mywebsite.com/classes/controller/ProductListingFrontController.php on line 62
仅当我打开一个类别时才会出现此错误,在调试模式下显示类似以下消息:
[Debug] This page has moved
Please use the following URL instead: https://mywebsite.com/it/17-category
当我尝试打开未选择lang的版本时:https : //mywebsite.com/17-category
你有解决此问题的想法吗?
(1/1)FatalThrowableError类型错误:传递给PrestaShop \ PrestaShop \ Adapter \ Presenter \ Product \ ProductListingPresenter :: present()的参数2必须为在/home/path/mywebsite.com/中调用的布尔类型数组。第62行的classes / controller / ProductListingFrontController.php
你的问题似乎与此类似https://github.com/PrestaShop/PrestaShop/issues/16245
关于这个错误
[调试]此页面已移动,请改用以下URL:https : //mywebsite.com/it/17-category
在“ BO”>“商店参数”>“ SEO和URL”页面中,可以通过选择此选项来禁用重定向
谢谢!
最好的问候,Khouloud
看来行得通!