Jump to content

Problem webservice 1.6


BMo

Recommended Posts

Hello, 

I use webservice of prestashop 1.6 but I have stranges problems with.

I use API for products. I can send GET request, and it is ok. If I copy past the response into a PUT request I have this error:

<![CDATA[parameter "manufacturer_name" not writable. Please remove this attribute of this XML]]>

If I clear manufacturer_name, Ihave this error:

<![CDATA[parameter "quantity" not writable. Please remove this attribute of this XML]]>

So I clear quantity, and I have this one:

 <![CDATA[Validation error: "Property Product->link_rewrite is not valid"]]>

So I clear link_rewrite and I have this error:

<![CDATA[Validation error: "Property Product->link_rewrite is empty"]]>

 

If I send a GET request with ?schema=synopsis I have only errors like:

<error>
            <code>
                <![CDATA[3]]>
            </code>
            <message>
                <![CDATA[[PHP Warning #2] Illegal string offset 'format' (/home/xxx/www/classes/webservice/WebserviceOutputBuilder.php, line 720)]]>
            </message>
        </error>
        <error>
            <code>
                <![CDATA[3]]>
            </code>
            <message>
                <![CDATA[[PHP Warning #2] Invalid argument supplied for foreach() (/home/xxx/www/classes/webservice/WebserviceOutputXML.php, line 138)]]>
            </message>
        </error>

If I send a GET request with ?schema=blank I have only errors like:

<error>
            <code>
                <![CDATA[3]]>
            </code>
            <message>
                <![CDATA[[PHP Warning #2] Illegal string offset 'required' (/home/xxxx/www/classes/webservice/WebserviceOutputBuilder.php, line 714)]]>
            </message>
        </error>
        <error>
            <code>
                <![CDATA[3]]>
            </code>
            <message>
                <![CDATA[[PHP Warning #2] Illegal string offset 'required' (/home/xxx/www/classes/webservice/WebserviceOutputBuilder.php, line 714)]]>
            </message>
        </error>

But GET request for a product works perfectly.

I would like to use API only to change the default cache_default_attribute and visibility.

 

 

Edited by BMo (see edit history)
Link to comment
Share on other sites

  • 2 weeks 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...