"Error updating page" and "Page not found" when changing shipping/payment method

Started by evangcd8, March 26, 2018, 20:07:27 PM

Previous topic - Next topic

evangcd8

Hi,

During checkout, when I change the selected shipping method or the payment method, I get two consecutive pop-up error messages: First comes "Error updating page" and after I press OK, the "Page not found" appears. If I press OK again, the order is placed correctly. When the messages appear, vm is trying to redirect to non-existing URLs that end with the shipping/payment method id I have selected (such as: https://oinotypo.gr/266 and https://oinotypo.gr/7).  :o

This is happening with the VP One Page Check Out plugin disabled. If I enable it, then in most of the cases the order is not placed at all and I get the message: "Verification of shipping details failed" (or sg like this, as the error message is in Greek).

Has anyone ever seen this before? Any other suggestions?

Thank you all in advance!!!

ClaudioRomeo

QuoteDuring checkout, when I change the selected shipping method or the payment method, I get two consecutive pop-up error messages: First comes "Error updating page" and after I press OK, the "Page not found" appears. If I press OK again, the order is placed correctly.
Same problem since upgraded from J3.7.5 + VM 3.2 + PHP 5.6.x to J3.8.6 + VM 3.2.14 + PHP 7.1

QuoteWhen the messages appear, vm is trying to redirect to non-existing URLs that end with the shipping/payment method id I have selected (such as: https://oinotypo.gr/266 and https://oinotypo.gr/7)
I can't confirm this, because I'm not able to inspect the link

QuoteThis is happening with the VP One Page Check Out plugin disabled.
The same for me.

QuoteIf I enable it, then in most of the cases the order is not placed at all and I get the message: "Verification of shipping details failed" (or sg like this, as the error message is in Greek)
By now, I have only tried to change the payment method, that works if OPC is enabled. Tomorrow I will try to finalize the order. When do you get the error message, evangcd8?

Have you fixed the problem in the meantime?
I'm the author of the VirtueMart 3 Reference Guide
https://www.virtuemartmatters.com

ns1

Hi,

we have the same problem after updating.
Joomla 3.8.7.
VirtueMart 3.2.14

If we disable "Ajax for OPC" in VirtueMart configuration site works ok.

The problem is definetly in One page checkout and ajax. I have managed to get to the functions that generate errors.

public_html/components/com_virtuemart/assets/js/dynupdate.js (line 66 to71 - where errors generate) - function Virtuemart.updateContent

this method is called by Virtuemart.upd in the same file on line 101.
    Virtuemart.upd = function(event) {
        event.preventDefault();
        var url = $(this).attr('url');
        if (typeof url === typeof undefined || url === false) {
            url = $(this).val();
        // -------------------------------> This is where error occurs because url is undefined, that is value is "id", like "17"
        }
        if(url!=null){
url = url.replace(/amp;/g, '');
            Virtuemart.setBrowserNewState(url);
            Virtuemart.updateContent(url);
        }
    };


However I don't know from where this method is being called. The problem is that wrong URL is being passed along...

I hope it helps someone and that resolution will be posted soon :)

Jheroen

Same problem here .. a solution is desirable. for now disable "Ajax for OPC" in VirtueMart configuration fixed it...