Jump to content

Web services of prestashop 1.7.1.1 are not work with prestashop 1.6.1.13


Recommended Posts

i created web service for my mobile app with latest prestashop 1.7.1.1 each and every works fine except create order one, 
 
 
now i switched to prestashop 1.6.1.13 to check if creating order is working with this version , but each web service request which use edit() method give me error , while they all works fine with latest 1.7.1.1 version .
 
 
here is my customer password update request which give me this types error now
 
 

 

  •     // Filtering customer by email
        $xml = $this->webService->get(array('resource' => 'customers','display' => 'full','filter[email]' => '['.$this->input->post("email").']'));
    
        // Retriving customer id
        $id = (int) $xml->customers->customer->id;
        
        // Retrieve resource elements 
        $resource = $xml->customers;
        $resource->customer->passwd = $this->input->post("password");
        $opt_update['resource'] = 'customers';
        $opt_update['id'] = $id;
        $opt_update['putXml'] = $resource->asXML(); 
        $update = $this->webService->edit($opt_update);

 

 
    
 
 
**Note :-** 
**This request works very fine with prestashop 1.7.1.1 for changing customer password. but not working with Prestashop 1.6.1.13 :(**
 
 
please help me solve this issue. here is error code and details i face :
 
 
**Error :-**
 
Fatal error: Uncaught exception 'PrestaShopWebserviceException' with message 'This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error.'
 
**Debug Result:-**
 
RETURN HTTP BODY
 
    

<?xml version="1.0" encoding="UTF-8"?>
    <prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[3]]></code>
<message>
<![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): 
namespace error : Namespace prefix xlink for href on id_default_group is not defined (/opt/lampp/htdocs/prestashop/classes/webservice/WebserviceRequest.php, line 1374)]]>
</message>
</error>
</errors>
</prestashop>
 
 
Link to comment
Share on other sites

  • 8 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...