Jump to content

[SOLVED] TECHNICAL ERROR: unable to save account Details:


Recommended Posts

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 by wxanl (see edit history)
Link to comment
Share on other sites

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

  • wxanl changed the title to [SOLVED] TECHNICAL ERROR: unable to save account Details:
  • 2 months later...

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

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

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

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 by janoo (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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

  • 1 year 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...