我下载了模块ROJA45:在销售产品上,它是免费的,很容易在谷歌上找到。
安装后,我有问题看到所有的出售在一页。
首先显示控制器错误,所以我将它的名称从:roja45onsaleproducts.php更改为:Roja45OnSaleProducts.php,然后又更改了另一个错误。
在调试中,我看到了错误:
致命错误:从第68行的上下文'Roja45OnSaleProductsRoja45OnSaleProductsModuleFrontController‘调用私有方法Roja45OnSaleProducts::getProductsToDisplay()
此错误中的第68行是:
$products = Roja45OnSaleProducts::$cache_onsale_products;
if ($products === null) {
$products = Roja45OnSaleProducts::getOnSaleProducts((int) $this->context->language->id, 0, (int) Configuration::get('PS_ROJA45_ONSALE_PRODUCTS_NBR'));
}第68行只是:
$products = Roja45OnSaleProducts::getOnSaleProducts((int) $this->context->language->id, 0, (int) Configuration::get('PS_ROJA45_ONSALE_PRODUCTS_NBR'));有人能看看会有什么不对劲吗?
我无法从模块开发人员那里获得有关这方面的任何信息。
发布于 2016-11-21 14:24:36
在模块文件中,roja45onsaleproducts.php将private function getOnSaleProducts(...)更改为public function getOnSaleProducts(...)。
https://stackoverflow.com/questions/40657033
复制相似问题