ColonelMoutarde Posted February 2, 2016 Share Posted February 2, 2016 (edited) Bonjour, Voici le code xml que j'envoie à prestashop pour mettre à jour un produit ( lui ajouter le stock). en retour, j'ai droit à une belle erreur 500: '<products> <product> <id>9</id> <id_manufacturer>0</id_manufacturer> <reference>1ACCESCOURSEPIE</reference> <weight>0.000000</weight> <ean13></ean13> <upc>101722017</upc> <on_sale>0</on_sale> <price>12.5</price> <wholesale_price>12.5</wholesale_price> <active>0</active> <available_for_order>0</available_for_order> <show_price>0</show_price> <link_rewrite><language id="1" xlink:href="http://presta.dev/api/languages/1">acces-1-seance-course-a-pied</language></link_rewrite> <name><language id="1" xlink:href="http://presta.dev/api/languages/1">ACCÉS 1 SÉANCE COURSE À PIED</language></name> <description><language id="1" xlink:href="http://presta.dev/api/languages/1"></language></description> <description_short><language id="1" xlink:href="http://presta.dev/api/languages/1"></language></description_short> <id_tax_rules_group>1</id_tax_rules_group></product> </products>' Voici mon erreur 500: <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <errors> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message> </error> </errors> </prestashop> Si vous avez une idée, je suis preneur ( j'utilise la class PrestaShopWebservice pour faire mes appels) Je me demande si ce n'est pas mon xml qui est mal formaté ? Edited February 2, 2016 by ColonelMoutarde (see edit history) Link to comment Share on other sites More sharing options...
ColonelMoutarde Posted February 2, 2016 Author Share Posted February 2, 2016 Ok si je met le boutique en mode debug à true en modifiant le defines.inc.php alors mon script s'exécute bien. Quel est le risque de laisser le site en debug ? 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