VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: shikar1860 on May 21, 2014, 17:52:01 PM

Title: View cart leads to "Too many redirects" in Safari
Post by: shikar1860 on May 21, 2014, 17:52:01 PM
When I click on the order button on a product page I get an error page with the message "Too many redirects" in Safari (and a blank page). In Firefox and Chrome the proces is not stopped but when I activate debubbing I see the following set of messages repeated many times:

vmdebug My selected language by JFactory::getLanguage()->getTag() nl-NL
vmdebug $siteLang: nl-NL self::$_jpConfig->lang nl_nl
vmdebug vmTime: loadConfig db no: 0.00997495651245117
vmdebug Start used Ram 10M
vmdebug subtotal vattax id 5 = 2.17
vmdebug subtotal vattax id 5 = 11.62
vmdebug subtotal vattax id 5 = 2.17
vmdebug subtotal vattax id 5 = 11.62
vmdebug shipmentmethod Pakketpost = TRUE for variable weight = 0 Reason: is lower than the set 10
vmdebug shipmentmethod Pakketpost = TRUE for variable products quantity = 2 Reason: is within Range of the condition from 1 to 999
vmdebug shipmentmethod Pakketpost = TRUE for variable order amount = 66.95 Reason: is within Range of the condition from 1 to 99999
vmdebug shipmentmethod Pakketpost = TRUE for variable zip = Reason: is lower than the set 999999
vmdebug shipmentmethod Pakketpost = TRUE for variable virtuemart_country_id = 150, Reason: Countries in rule 21, 150 or none set
vmdebug shipmentmethod Pakketpost = TRUE for variable weight = 0 Reason: is lower than the set 10
vmdebug shipmentmethod Pakketpost = TRUE for variable products quantity = 2 Reason: is within Range of the condition from 1 to 999
vmdebug shipmentmethod Pakketpost = TRUE for variable order amount = 66.95 Reason: is within Range of the condition from 1 to 99999
vmdebug shipmentmethod Pakketpost = TRUE for variable zip = Reason: is lower than the set 999999
vmdebug shipmentmethod Pakketpost = TRUE for variable virtuemart_country_id = 150, Reason: Countries in rule 21, 150 or none set
vmdebug shipmentmethod Pakketpost = TRUE for variable weight = 0 Reason: is lower than the set 10
vmdebug shipmentmethod Pakketpost = TRUE for variable products quantity = 2 Reason: is within Range of the condition from 1 to 999
vmdebug shipmentmethod Pakketpost = TRUE for variable order amount = 66.95 Reason: is within Range of the condition from 1 to 99999
vmdebug shipmentmethod Pakketpost = TRUE for variable zip = 1234+AB Reason: is lower than the set 999999
vmdebug shipmentmethod Pakketpost = TRUE for variable virtuemart_country_id = 150, Reason: Countries in rule 21, 150 or none set


So it looks like the shipmentmethod (or something else) is stuck in a loop. But I can't figure out how this occurs.
My site runs on Joomla 2.5.19 and VM 2.0.26d and uses SSL. I also use onepagecheckout.

I tried switching off ssl, removing a menulink to the cart, and several settings but it does not make a difference.

Does anyone recognize this problem or has an idea how to solve it?
Thanks for any help.
Title: Re: View cart leads to "Too many redirects" in Safari
Post by: GJC Web Design on May 21, 2014, 22:04:22 PM
what method is Pakketpost?
Title: Re: View cart leads to "Too many redirects" in Safari
Post by: shikar1860 on May 21, 2014, 22:20:47 PM
Pakketpost is a Dutch parcel delivery service. I don't think this makes a difference. It is just a service with in the configuration 2 countries an a zip code range of 0 to 999999; and form 0 to 10 kg. So nothing special there.
Title: Re: View cart leads to "Too many redirects" in Safari
Post by: GJC Web Design on May 21, 2014, 22:21:51 PM
so you mean a standard VM weight/postcode ship plugin?

how many methods of it?
Title: Re: View cart leads to "Too many redirects" in Safari
Post by: shikar1860 on May 22, 2014, 10:35:11 AM
I have just one shipment method, so that is also the standard (VM - Shipment, By weight, ZIP and countries).
Title: Re: View cart leads to "Too many redirects" in Safari
Post by: GJC Web Design on May 22, 2014, 10:49:52 AM
just tested - vanilla vm2.6.1
1 method weight

I get the identical debug as you  - 3 loops thru the ship method

no problem in Safari...

I assume you mean the "Go to cart" button?  as opposed to add to cart?

i.e. click add to cart -> popup -> go to cart

in any case no problems in Safari in all tests
Title: Re: View cart leads to "Too many redirects" in Safari
Post by: shikar1860 on May 22, 2014, 14:42:16 PM
Hi GJC Web Design,

Yes, you are correct, the problem occurs when I click the "view cart" link (in pop-up after clicking "add to cart").

I is a strange problem since at the moment Safari doesn't show the "Too many redirect" error when I try it either. I don't know what changed but let's hope it stays like this.

Thanks a lot for help in trying to find the cause of the problem.