wxanl Posted January 13, 2020 Share Posted January 13, 2020 (edited) Hello, i have problem with a prestashop 1.6.1.20 version On the check-out page i get the following error message: TECHNICAL ERROR: unable to save account Details: Error thrown: [object Object] Text status: parsererror I get this when using the quick check-out and the login / create account checkout option. I did find some older forum posts but the solutions mentioned there did not work for me. Anyone can point me in the right direction or has a solution even ? Edited January 15, 2020 by wxanl (see edit history) Link to comment Share on other sites More sharing options...
wxanl Posted January 15, 2020 Author Share Posted January 15, 2020 17 hours ago, ndiaga said: Hi, Follow these topics: Thanx,! i Did but none of the solutions worked for me. Link to comment Share on other sites More sharing options...
wxanl Posted January 15, 2020 Author Share Posted January 15, 2020 45 minutes ago, ndiaga said: It's just a small js bug . You need just to find where it is . Use the browser console to investigate... Thank you. This is the output of tmy console. I am not really sure what to look for. [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. send @ jquery-1.11.0.min.js:4 ajax @ jquery-1.11.0.min.js:4 (anonymous) @ order-opc.js:182 dispatch @ jquery-1.11.0.min.js:3 r.handle @ jquery-1.11.0.min.js:3 Link to comment Share on other sites More sharing options...
janoo Posted March 30, 2020 Share Posted March 30, 2020 In PS 1.6.1.24 on One page Checkout this error comes as modal window message: Quote TECHNICAL ERROR: unable to save adresses Details: Error thrown: [object Object] Text status: error or in browser devtools as: Quote Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. send @ jquery-1.11.0.min.js:4 ajax @ jquery-1.11.0.min.js:4 (anonymous) @ order-opc.js:182 dispatch @ jquery-1.11.0.min.js:3 r.handle @ jquery-1.11.0.min.js:3 This is caused by jquery library 1.11.x.x - 3.4.1 - yes, newest too. I´ve tried replace old jquery ".\js\jquery\jquery-1.11.0.min.js" with latest possible "jquery-3.4.1.min.js" with same error displayed. It is about using ajax in PS js files with "async: false":https://xhr.spec.whatwg.org/#the-open()-method (explained yellow box) FIX: find in .\themes\your_used_theme\js\order-opc.js rows 185-187 with url: callingFile + '?rand=' + new Date().getTime() + advApiParam, async: false, cache: false, and change row 186 to: "async: true" url: callingFile + '?rand=' + new Date().getTime() + advApiParam, async: true, cache: false, Then clear smarty caches, and take care of browser cache too. Link to comment Share on other sites More sharing options...
wxanl Posted March 31, 2020 Author Share Posted March 31, 2020 9 hours ago, janoo said: In PS 1.6.1.24 on One page Checkout this error comes as modal window message: or in browser devtools as: This is caused by jquery library 1.11.x.x - 3.4.1 - yes, newest too. I´ve tried replace old jquery ".\js\jquery\jquery-1.11.0.min.js" with latest possible "jquery-3.4.1.min.js" with same error displayed. It is about using ajax in PS js files with "async: false":https://xhr.spec.whatwg.org/#the-open()-method (explained yellow box) FIX: find in .\themes\your_used_theme\js\order-opc.js rows 185-187 with url: callingFile + '?rand=' + new Date().getTime() + advApiParam, async: false, cache: false, and change row 186 to: "async: true" url: callingFile + '?rand=' + new Date().getTime() + advApiParam, async: true, cache: false, Then clear smarty caches, and take care of browser cache too. Thank you ! I am glad you found a solution to this problem ! I fixed mine allready but i am sure you are helping a lot of people with this ! Link to comment Share on other sites More sharing options...
janoo Posted March 31, 2020 Share Posted March 31, 2020 2 hours ago, wxanl said: Thank you ! I am glad you found a solution to this problem ! I fixed mine allready but i am sure you are helping a lot of people with this ! Still not working properly.. only after reload page, it is not good enough. Stay tunned.. Link to comment Share on other sites More sharing options...
janoo Posted March 31, 2020 Share Posted March 31, 2020 (edited) CLARIFICATION There are two errors not one: 1. "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience" This error message in browser DevTools can be fixed with: 2. "TECHNICAL ERROR: unable to save adresses.." Fancybox modal message comes from .\themes\your_used_theme\js\order-opc.js rows 477-496 Seems like forgotten not finished something.. because it appears only when visitor confirms new "Personal data" and "Delivery address" on form "New Customer" for first time. When custommer already has saved data and address in PS, he can come as many times he wants and no error will be displayed again. Maybe this error warning could be changed to "Address is missing in eshop." or "New customer is added to eshop".. FIX: But for my usage I´d FIXED it with custom dirty tunning: - for me is enough to block displaying this chaotic message for custommers - and make it appearing in DevTools console only like this (bold underlined is my addings): error: function(XMLHttpRequest, textStatus, errorThrown) { if (textStatus !== 'abort') { var devError = "ERROR order-opc.js on r.477: \"unable to save adresses?\" \nDetails:\nXMLHttpRequest: " + XMLHttpRequest + "\n" + 'textStatus: ' + textStatus + "\n" + 'errorThrown: ' + errorThrown; console.log('TECHNICAL ERROR: ', devError); /* error = "TECHNICAL ERROR: unable to save adresses \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus; if (!!$.prototype.fancybox) $.fancybox.open([ { type: 'inline', autoScale: true, minHeight: 30, content: '<p class="fancybox-error">' + error + '</p>' } ], { padding: 0 }); else alert(error); */ } $('#opc_account-overlay, #opc_delivery_methods-overlay, #opc_payment_methods-overlay').fadeOut('slow'); } I think that error is about something missing in certain ajax reques (with new address when it is not in database yet), because no response is obtained. And that´s why error message appears. Edited March 31, 2020 by janoo (see edit history) Link to comment Share on other sites More sharing options...
Autourdupc Posted June 3, 2020 Share Posted June 3, 2020 Hi all. Same issue here ! I have 3 shops working well (2 x PS1.6.1.17, 1 x PS1.6.1.23), and suddendly all of them get the error "TECHNICAL ERROR: unable to save account Details: Error thrown: [object Object] Text status: parsererror" This appears when customer try to validate its basket using the quick check-out without creating account. It was working perfectly yesterday. Today none of my site are working. In one of them, (PS version 1.6.1.17) I tried to do the FIX: find in .\themes\your_used_theme\js\order-opc.js rows 185-187 But in rows mentionned, I do not have thoses values... I find them in rows 171 (function updateCarrierSelectionAndGift) or 215 (function confirmFreeOrder). Existing values are already set correctly... type: 'POST', url: orderOpcUrl, async: true, cache: false, dataType : "json", Any help would be appreciated !!! Link to comment Share on other sites More sharing options...
MarioCM Posted March 28, 2022 Share Posted March 28, 2022 Hi, Try to download the version of Php, I have ps1.6.0.9 with php 5.6, if I upload it to version 7 it gives me that error. It may be related to that, try to see if it works. 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