ldellacherie Posted April 19, 2016 Share Posted April 19, 2016 When you call the url : http://yourdomaine/api/warehouses?display=full You receive errors in the file Illegal string offset 'id' (/var/www/prestashop/classes/webservice/WebserviceOutputBuilder.php, line 674) [php Warning #2] Illegal string offset 'id' (/var/www/prestashop/classes/webservice/WebserviceOutputBuilder.php, line 683) [php Warning #2] Illegal string offset 'id' (/var/www/prestashop/classes/webservice/WebserviceOutputBuilder.php, line 674) [php Warning #2] Illegal string offset 'id' (/var/www/prestashop/classes/webservice/WebserviceOutputBuilder.php, line 683) The problem is the variable can be declared like a string, to resolve the problem i add this line in the function renderFlatAssociation of the file 'WebserviceOutputBuilder.php' if(is_array($object_assoc)== false) { $object_assoc = array('id' => $object_assoc); } i don't know if that resolve all bad calling, but in my case i don't have problem now with the webservice Link to comment Share on other sites More sharing options...
selectshop.at Posted April 19, 2016 Share Posted April 19, 2016 For which Prestashop version should be your fix ? Link to comment Share on other sites More sharing options...
ldellacherie Posted April 19, 2016 Author Share Posted April 19, 2016 I'm currently in 1.6.1.5 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