Prestashop integration error : HTTP-Error 500 (internal server error)
Overview
You encountered a problem when using the wizard to integrate your prestashop . This article explains what the problem is and how to fix it.
How to fix
This error comes from a compatibility issue between the PHP version on your server and the Prestashop version.
Below is the official Prestashop chart that shows which Prestashop version is compatible with each PHP version :
If your server does not meet those requirements, we won't be able to connect myFulfillment to your CMS.
You need to change either your Prestashop or PHP version so they are both compatible regarding the chart above.
Fix in the code
If you experience error "This call to PrestaShop Web Services failed and returned an HTTP status of 500 : [PHP Notice #8] Trying to access array offset on value of type bool (classes/Product.php, line 7170)." you can apply the following fix:
Identify function getCoverWs around line 7170:
public function getCoverWs()
{
$result = $this->getCover($this->id);
return $result['id_image'];
}
And replace it with:
public function getCoverWs()
{
$result = $this->getCover($this->id);
//boostmyshop fix to prevent compatibility issue between prestashop & php 7.4
if (!$result)
return false;
return $result['id_image'];
}
Related Articles
This call to Prestashop Web Services failed and returned an HTTP status of 401. That means: Unauthorized
Overview You encountered a problem when using the wizard to integrate your prestashop and you get the answer shown in the screenshot below. This article explains what the problem is and how to fix it because it is possible that the issue comes from ...
Magento1 integration: SOAP-ERROR: Parsing WSDL: Couldn't load from / failed to load external entity
Overview This article explains why error "SOAP-ERROR: Parsing WSDL: Couldn't load from / failed to load external entity" happens and how to fix it This error can happen when you configure a Magento1 integration and save it, the full error message is ...
Prestashop - Boostmyshop additional module
Connect provides a prestashop Module to improve the communication between Pretashop and Connect. Main features : Show stock details in the Prestashop product view Show fulfilment progress in the Pretashop order view Support relay codes for specific ...
Prestashop 1.5.6.X - Webservice error
This article explains how to fix the communication between Prestashop 1.5.6.X and Boostmyshop. Prestashop 1.5.6.X has a bug regarding API call when we try to load a collection for a specific range (for example get all products with ID between 0 and ...
Prestashop - Relay point import
Overview Relay point ID are imported from Prestashop to select the relay point during the shipping label generation. Note : to import relay / pickup point from Prestashop, you need to install the Connect module for Prestashop In Connect, you can see ...