ivailoi1974 Posted January 11, 2024 Share Posted January 11, 2024 Server software version: Apache PHP version: 8.1.27 PrestaShop version: 8.1.0 MySQL version: 10.6.12-MariaDB MySQL engine: InnoDB MySQL driver: DbPDO Using the webservice to add manually generated xml for a new customer works Trying to get a blank schema and fill the needed fields does not work. The response contains the schema, but there is an error in the associations block. Here is what I get: <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <customer> <id><![CDATA[]]></id> <id_default_group><![CDATA[]]></id_default_group> <id_lang><![CDATA[]]></id_lang> <newsletter_date_add><![CDATA[]]></newsletter_date_add> <ip_registration_newsletter><![CDATA[]]></ip_registration_newsletter> <last_passwd_gen><![CDATA[]]></last_passwd_gen> <secure_key><![CDATA[]]></secure_key> <deleted><![CDATA[]]></deleted> <passwd><![CDATA[]]></passwd> <lastname><![CDATA[]]></lastname> <firstname><![CDATA[]]></firstname> <email><![CDATA[]]></email> <id_gender><![CDATA[]]></id_gender> <birthday><![CDATA[]]></birthday> <newsletter><![CDATA[]]></newsletter> <optin><![CDATA[]]></optin> <website><![CDATA[]]></website> <company><![CDATA[]]></company> <siret><![CDATA[]]></siret> <ape><![CDATA[]]></ape> <outstanding_allow_amount><![CDATA[]]></outstanding_allow_amount> <show_public_prices><![CDATA[]]></show_public_prices> <id_risk><![CDATA[]]></id_risk> <max_payment_days><![CDATA[]]></max_payment_days> <active><![CDATA[]]></active> <note><![CDATA[]]></note> <is_guest><![CDATA[]]></is_guest> <id_shop><![CDATA[]]></id_shop> <id_shop_group><![CDATA[]]></id_shop_group> <date_add><![CDATA[]]></date_add> <date_upd><![CDATA[]]></date_upd> <reset_password_token><![CDATA[]]></reset_password_token> <reset_password_validity><![CDATA[]]></reset_password_validity> <associations> <groups> <group> <0><![CDATA[]]></0> </group> </groups> </associations> </customer> </prestashop> the first group has a title 0 instead of id. <id><![CDATA[ ]]></id> should be OK Any suggestion for fixing this problem? Link to comment Share on other sites More sharing options...
magicalella Posted February 6, 2025 Share Posted February 6, 2025 I have the same problem, no answer? Link to comment Share on other sites More sharing options...
magicalella Posted February 6, 2025 Share Posted February 6, 2025 (edited) BUG PS 8.1 WS file classes/webservice/WebserviceOutputBuilder.php riga 718 gitHub Error Webservice combinations , categories customers on a blank schema #32884 https://github.com/PrestaShop/PrestaShop/pull/32884/files $field['sqlId'] = $field_name; FIX $field['sqlId'] = $field_name ?: 'id'; Edited February 6, 2025 by magicalella (see edit history) 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