Error too many redirects specifically in checkout

  • Posts: 143
  • Thank you received: 8
  • Hikashop Business
3 weeks 3 days ago #365431

-- HikaShop version -- : 5.1.3
-- Joomla version -- : latest

Hi,

The strangest thing happens, i get too many redirects in the checkout only on 1 of these 2 conditions:
1. Pick Belgium as country in the address section
2. Complete the order and cancel in the payment gateway

I talked to Vimexx the server host and they say it's 100% website related
I talked to Pay.nl the peyment gateway and they say it's not on their end (which is kinda logical as i only pick Belgium and the error occurs)
I updated all the plugins and joomla, deleted all cache and changed from jch page cache to joomla page cache...
No result.

What can this possibly be?

Please Log in or Create an account to join the conversation.

  • Posts: 83303
  • Thank you received: 13468
  • MODERATOR
3 weeks 2 days ago #365442

Hi,

I tried to reproduce the issue on your website but the problem did not happen.
I did place an order with Belgium as the country of the address and then clicked on "cancel" on the payment gateway.
However, I was properly redirected back to the checkout with the "transaction failed" message at the top :
i.imgur.com/VSxf8Sy.png
So there must be something else.
Are you able to consistently reproduce the problem ?
Could you provide a more precise step by step procedure to reproduce the problem ?

Please Log in or Create an account to join the conversation.

  • Posts: 143
  • Thank you received: 8
  • Hikashop Business
3 weeks 2 days ago #365443

I tried recording it but the amd software randomly decided to record the wrong screen just now.
so i add a screenshot.
I tested it 2 times, 1 time on phone which somehow went right, and 1 on the pc which gave the eroor.
2 things were strange which makes me know it's gonna happen: on making the guest account it takes 5 seconds for the completion... it then seems to continu as normal but the actual Belgium payment option named "bancontact" doesn't show up (which it did in the phone test) and right after (without clicking anything) it gives the error... so the checkout page takes 5 seconds to load the belgian guest account and 5 seconds to decide to error.

If you wish to login, the login from the emails from last month should still apply.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83303
  • Thank you received: 13468
  • MODERATOR
3 weeks 2 days ago #365445

Hi,

Without being able to analyse the situation when reproducing the issue, it's hard to understand what is happening.

So, from what I understand you're using the plugin from github.com/paynl/hikashop-plugin/tree/master
Is that correct ?
Could the content of the cart generate a different result ? What product do you have in the cart when you're able to reproduce the problem ? What address do you use ? What shipping method is selected ?

If you can provide a video recording, that might help us reproduce the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 143
  • Thank you received: 8
  • Hikashop Business
2 weeks 4 days ago #365503

Send an email with demonstrations, hope you can understand the issue more clearly this way.

Not sure if it's related but it has to do with checkout at least, when i go to customers => carts i get:
0 Call to undefined function setenv()

Last edit: 2 weeks 4 days ago by NicoW.

Please Log in or Create an account to join the conversation.

  • Posts: 83303
  • Thank you received: 13468
  • MODERATOR
2 weeks 4 days ago #365506

Hi,

This might well be linked.
Searching for "setenv" in our code, the only place I can see it is in the MyParcel plugins.
It is used to change the server of the API for Belgium.
This follows the major update we did to the MyParcel plugin to update to the latest version of the SDK:
www.hikashop.com/forum/shipping-methods/...-updates/365244.html
The setenv call is only made for Belgium because for the Netherlands, the default API URL is already set to the Netherlands server.
So it smells like both the error in the backend and the issue on the checkout are related.
And your videos seem to go in that direction too.
Before the redirect loop happens, the payment methods area is updated, and the shipping methods area is empty, probably because it isn't able to load the area following the address being filled.
I think I didn't get the issue because I didn't use a real Belgium address, and so MyParcel skipped it, without triggering the error.

I've published a new version of the MyParcel plugins on our website with a patch for this error. Please download them and install them on your website and try again.

The following user(s) said Thank You: NicoW

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum