Jump to content

Edit History

janoo

janoo

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.

janoo

janoo

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');
        }

janoo

janoo

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.

So maybe this error warning could be changed to "Address is missing in eshop." or "New customer is added to eshop"..

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');
        }

×
×
  • Create New...