Post by Loiti » Sat Jan 30, 2016 1:04 am

Good evening,

I am stuck with this error/bug during checkout: "Warning: Shipping method required!" which only occurs when I am logged into a registered account (guest checkout works fine!).

Link: http://shop.palmen24.at/

Reproducing this bug:
Refreshing or navigating back during Checkout will produce this error 80% of the time.

I have tracked down the issue, it appears that:
1) $this->session->data["shipping_methods"] and
2) $this->session->data["shipping_method"] gets deleted, thus missing in CATALOG/CONTROLLER/CHECKOUT/SHIPPING_METHOD.PHP -> Save().

A refresh/navigating back shouldnt clear the session variables tho. Any ideas?


- version 2.1.0.2
- Clean install
- default template
- no modifications
- no vqmod
- newly installed
- all new php mysql

Appreciate your help
Last edited by Loiti on Sat Mar 05, 2016 5:14 am, edited 2 times in total.

Newbie

Posts

Joined
Sat Jan 30, 2016 12:56 am

Post by Loiti » Tue Feb 02, 2016 7:47 pm

Maybe this appears to be a bug and should be moved to the bug-section?

Newbie

Posts

Joined
Sat Jan 30, 2016 12:56 am

Post by Loiti » Sat Mar 05, 2016 5:03 am

Updated error description.

Newbie

Posts

Joined
Sat Jan 30, 2016 12:56 am

Post by Loiti » Sat Mar 05, 2016 5:34 am

Update:

Also applying shipping estimation (View cart -> ...) tells me it has successfully applied the shipping method. But checking out immediately after shows the same error -> session variables missing.

Strange

Newbie

Posts

Joined
Sat Jan 30, 2016 12:56 am

Post by Loiti » Tue Mar 29, 2016 5:24 pm

With the help of the OpenCart forum community I was able to identify the problem and fix it!

Irony off.

The problem were false, cached Ajax calls from my browser (latest Google Chrome). This discussion here http://forum.opencart.com/viewtopic.php?f=20&t=98579 describes the problem and the fix (vqmod).

Best regards
Stefan

Newbie

Posts

Joined
Sat Jan 30, 2016 12:56 am

Post by fogma » Tue Apr 19, 2016 7:01 am

Hi Stefan,

I seem to be seeing this issue as well with OC 2.1.0.1.

Happens on iPhone and in Chrome (at least).

I can recreate it if I set different addresses for shipping and billing and then go backwards and forwards a few times on the checkout page. Eventually it happens.

I've had a quick test with that vqmod, but it does not seem to have helped, but I need to give up for tonight. Do my symptoms sound the same as yours?

Thanks,
Gary

New member

Posts

Joined
Wed Aug 13, 2008 4:16 am

Post by Burt65 » Tue Apr 19, 2016 10:20 am

Loiti wrote:Good evening,

I am stuck with this error/bug during checkout: "Warning: Shipping method required!" which only occurs when I am logged into a registered account (guest checkout works fine!).

Link: http://shop.palmen24.at/

Reproducing this bug:
Refreshing or navigating back during Checkout will produce this error 80% of the time.

Appreciate your help
Hi Loiti

Just to confirm that with OC 2.1.0.2 I cannot replicate the error you describe either by refreshing the page or by clicking on the back button. This is in the latest Chrome and Torch browsers. I would be prone to think that it is a browser cache/cookies setting issue...

Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...


User avatar
Active Member

Posts

Joined
Mon Nov 18, 2013 3:23 pm
Location - Oz

Post by fogma » Tue Apr 19, 2016 4:02 pm

Burt65 - don't use the back button. The problem occurs if you get down to the payment method screen and then click on delivery address section above and work down again. Then click on billing and work down again. Keep doing this and eventually you will reproduce the problem. I found it when logged in and specifying different billing and shipping addresses.

Stefan - actually... this morning on iphone the cache vqmod might have solved the problem as I can no longer recreate the issue. I will continue to test!

Thanks,
Gary

New member

Posts

Joined
Wed Aug 13, 2008 4:16 am

Post by fogma » Tue Apr 19, 2016 5:27 pm

In Chrome the issue is not resolved, even with the vqmod cache fix.

I don't seem to be able to recreate it in 2.2.0.0 (a test shop I have running). Has anything related to this been changed between 2.1 and 2.2?

Thanks,
Gary

New member

Posts

Joined
Wed Aug 13, 2008 4:16 am

Post by Burt65 » Wed Apr 20, 2016 12:43 pm

fogma wrote:Burt65 - don't use the back button. The problem occurs if you get down to the payment method screen and then click on delivery address section above and work down again. Then click on billing and work down again. Keep doing this and eventually you will reproduce the problem. I found it when logged in and specifying different billing and shipping addresses.

Stefan - actually... this morning on iphone the cache vqmod might have solved the problem as I can no longer recreate the issue. I will continue to test!

Thanks,
Gary
Hi Gary

I just did the test as you suggested first for 10 times then 20 times in both Chrome and Torch, and I don't get the error.

I'm using OC 2.1.0.2, ASPRO extension for delivery and Journal 2 theme. As I said, I reckon sometimes, something goes wrong between cookies, and all the various Cache that we have on the server. Sometimes if your ISP is doing upgrades and or maintenance on the server you can get funny errors in your browser. I'm not say that this is certainty what is happening, but it can happen. This kind of problems are the hardest one to trace because they don't happen all the time at the same time...

Cheers

Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...


User avatar
Active Member

Posts

Joined
Mon Nov 18, 2013 3:23 pm
Location - Oz
Who is online

Users browsing this forum: No registered users and 10 guests