florent* Posted March 29, 2022 Share Posted March 29, 2022 Hello, I am using a service that synchronizes prestashop with my ERP. When we run it we get this error : [PHP Notice #8] Trying to access array offset on value of type null (/...classes/webservice/WebserviceOutputBuilder.php, line 716) and [PHP Notice #8] Trying to access array offset on value of type null (/.../classes/webservice/WebserviceOutputBuilder.php, line 719) line 716 is : $field['value'] = $object_assoc['id']; line 719 is : $field['value'] = $object_assoc[$field_name]; foreach ($fields_assoc as $field_name => $field) { if (!is_array($this->fieldsToDisplay) || in_array($field_name, $this->fieldsToDisplay[$assoc_name])) { if ($field_name == 'id' && !isset($field['sqlId'])) { $field['sqlId'] = 'id'; $field['value'] = $object_assoc['id']; } elseif (!isset($field['sqlId'])) { $field['sqlId'] = $field_name; $field['value'] = $object_assoc[$field_name]; } $field['entities_name'] = $assoc_name; $field['entity_name'] = $resource_name; if (null !== $this->schemaToDisplay) { $field['synopsis_details'] = $this->getSynopsisDetails($field); } $field['is_association'] = true; $output .= $this->setIndent($depth - 1) . $this->objectRender->renderField($field); } } Does anyone please know how to fix it? I'm using PrestaShop : 1.7.8.4 PHP : 7.4.28 Apache MySQL : 10.3.34-MariaDB Link to comment Share on other sites More sharing options...
kusflo Posted June 2, 2022 Share Posted June 2, 2022 I have the same error when I call to: https://XXXXXXXXXX@xxxxx.com/api/products/?schema=blank I'm using Prestashop 1.7.8.5 any ideas? Link to comment Share on other sites More sharing options...
florent* Posted June 6, 2022 Author Share Posted June 6, 2022 for me I solved the problem by changing the version of PHP. I hope this will help you. Link to comment Share on other sites More sharing options...
kusflo Posted June 6, 2022 Share Posted June 6, 2022 Thanks but I finally found a better solution in this comment. Hope this can help you: https://github.com/PrestaShop/PrestaShop/issues/26559#issuecomment-1029366498 Link to comment Share on other sites More sharing options...
bronsky69 Posted February 3, 2023 Share Posted February 3, 2023 I have same problem too [PHP Notice #8] Trying to access array offset on value of type null (/var/www/clients/client2/web13/web/classes/webservice/WebserviceOutputBuilder.php, line 716) I dont now how too fix php 7.4 presta 1.7.88 Somone help me? Link to comment Share on other sites More sharing options...
florent* Posted February 6, 2023 Author Share Posted February 6, 2023 On 2/3/2023 at 7:54 AM, bronsky69 said: I have same problem too [PHP Notice #8] Trying to access array offset on value of type null (/var/www/clients/client2/web13/web/classes/webservice/WebserviceOutputBuilder.php, line 716) I dont now how too fix php 7.4 presta 1.7.88 Somone help me? Expand Did you change the version of PHP ? Link to comment Share on other sites More sharing options...
bronsky69 Posted February 8, 2023 Share Posted February 8, 2023 I have changed the entries and it has helped Link to comment Share on other sites More sharing options...
Rajesh KG Posted October 14, 2024 Share Posted October 14, 2024 How to change entries? I have the same problem with baselinker Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now