【问题标题】:Prestashop - Calling categories api results in errorPrestashop - 调用类别 api 导致错误
【发布时间】:2020-12-11 22:30:51
【问题描述】:

我必须从 prestashop 获取数据,它一直有效。他们已经升级了 prestashop,但没有给我更多细节。

当我打电话时:https://realshopname/api/categories?display=full&limit=0,50

在他们进行更新之前,它在其他 prestashop 安装和这个安装上都可以正常工作。现在我收到以下错误

PHP 警告 #2] 产品声明::addAttribute($price, $weight, $unit_impact, $ecotax, $id_images, $reference, $delivery_label, $ean13, $default, $location = NULL, $upc = NULL, $minimal_quantity = 1、数组$id_shop_list=数组,$available_date=NULL,$quantity=0, $isbn = '',$low_stock_threshold = NULL,$low_stock_alert = 假) 应该与 ProductCore::addAttribute($price, $weight, $unit_impact, $ecotax, $id_images, $reference, $ean13, $default, $location = NULL,$upc = NULL,$minimal_quantity = 1,数组 $id_shop_list = 数组,$available_date = NULL,$quantity = 0,$isbn = '',$low_stock_threshold = NULL,$low_stock_alert = 假) (/var/www/realshopname/public_html/override/classes/Product.php, 行 0)"

据我猜测,错误出在他们的商店,但我如何帮助商店找出问题所在。

【问题讨论】:

    标签: prestashop


    【解决方案1】:

    问题出现是因为有一个覆盖文件(某些模块可能需要扩展核心功能):

    /var/www/realshopname/public_html/override/classes/Product.php
    

    与网络服务冲突。

    检查此文件,您可能会在评论中找到使用此覆盖的模块。然后检查是否仍然需要模块,在这种情况下需要更新以使其与新版本兼容。否则卸载模块,你应该已经准备好了。

    【讨论】:

    • 谢谢,我会联系他们,让他们看看这种可能性:)
    猜你喜欢
    • 2023-01-13
    • 2023-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-17
    • 1970-01-01
    • 2018-05-11
    • 2018-09-01
    相关资源
    最近更新 更多