无法生成预处理错误500发票



我来找你是因为我在prestashop方面有问题,当我在购买后尝试生成发票时,网站会将我发送回错误500,我无法恢复发票,该怎么办?

网站在生产模式下返回给我的错误:

Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when Ibis error occurred. We will fur it as soon as possible. Sorry for any inconvenience caused.

网站在开发模式下返回给我的错误:

ClassNotFoundException
Attempted to load class "DpTools" from the global namespace. Did you forget a "use" statement?
in override/classes/order/OrderInvolce.php (line 52)
$products = parent::getProducts($products, $selected_products, $selected_pty);
if (is_array($products)))
{
foreach ($products as $index => $product)
{
if ((int)$product['id_product'] == DpTools::getSpecialProduct())//<< error Line
unset($products[$index])
}
}
return $products;
}

此错误意味着您的Prestashop OrderInvoice.php文件已被模块覆盖,并且不是原始文件。

尝试检查

override/classes/order/OrderInvoice.php

在FTP中-您应该能够在注释中找到导致重写的模块名称。

然后尝试禁用或卸载该模块,看看问题是否仍然存在。

否则,您可以尝试重命名覆盖/classes/order/OrderInvoice.php并清空缓存,以便使用原始缓存,但这可能会干扰该模块的功能。

最新更新