Jump to content

Edit History

BMo

BMo

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.

 

 

BMo

BMo

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/btcmotoryc/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/btcmotoryc/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.

 

 

×
×
  • Create New...