Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by Otto 1 day ago.

Assisted by: Otto.

Author Posts
April 23, 2025 at 1:39 pm #16960045

vasilikiK-2

Background of the issue:
I am trying to resolve a redirection issue with the Vikrestaurants plugin on my WordPress site hidden link. When I submit the first step of the reservation form on the English page hidden link, it redirects to the Greek page for the second and third steps. I have tried both translated and non-connected pages and have contacted Vikrestaurants support, but they couldn't find a solution. They mentioned that the shortcodes are configured correctly, but something in my WordPress site is causing inappropriate URL behavior.

Symptoms:
The website automatically redirects from the English page to the Greek page during the reservation process. Additionally, after selecting a room and clicking 'Continue' on step 2, the page redirects to the Greek version without retaining POST method arguments.

Questions:
Why does the reservation form redirect from the English page to the Greek page?
How can I prevent the automatic redirection to the Greek page during the reservation process?

April 23, 2025 at 3:45 pm #16961214

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

This plugin is not in our compatibility list, however, it doesn't necessarily imply that it is not compatible, just that our team has not tested it yet.

Can you please share with me the shortcodes that you are inserting in the pages?

Where are the pages for the reservation flow set? I think that we may need to "translate" those:
https://wpml.org/documentation/support/language-configuration-files/translate-strings-in-wp-options-table/

Best Regards,
Otto

April 24, 2025 at 6:06 pm #16965805

vasilikiK-2

Booking form Greek [vikrestaurants view="restaurants" lang="el"]
Booking form English [vikrestaurants view="restaurants" lang="en-GB"]
Page - which is the page I face the problem - hidden link

Reservation confirmation Greek [vikrestaurants view="confirmres" lang="el"]
Reservation confirmation English [vikrestaurants view="confirmres" lang="en-GB"]

Booking details Greek [vikrestaurants view="reservation" lang="el"]
Booking details Ebglish [vikrestaurants view="reservation" lang="en-GB"]

I copy the last message I got from the plugin support.

Issue #1
You are in the English version of the booking process and you try to book for a date: hidden link. When you land on step 2, you can click the "Date & Time" link under the completed badge of the step 1. The link is equal to hidden link. However, if you try to visit that page, you'll see that the resulting ending page is automatically converted into this one: hidden link. Therefore the website seems to automatically move from the English page to the Greek page without any reason.

Issue #2
After selecting the room and clicking the "Continue" button from the step 2, you are redirected to this page: hidden link. The page is correct, but has no arguments set via POST method. If we try to manually change the method of the form from POST to GET, the resulting URL of the form will look like this one: hidden link. However, if you try to visit that link, you'll see that the website is landing onto the Greek version again: hidden link.

April 24, 2025 at 7:12 pm #16965960

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

To be able to investigate the problem we need to replicate the issue on a clean installation.
I created a clean installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
hidden link

Kindly follow the steps below:

- Don't restore your site there.
- Install Vikrestaurants plugin
- Try to replicate the issue with minimal steps.
- Then let me know and I'll take a look there

Best Regards,
Otto

April 25, 2025 at 3:53 pm #16969381

vasilikiK-2

So I set up the plugin and shortcodes and it works there (although in Vikrestaurant>dashboard>shortcodes it shows 2 shortcodes (el) not set up or not set up correctly)
Maybe I should give you access to my site? Maybe I haven't set up wpml right?

April 25, 2025 at 6:46 pm #16969765

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

Sure, I can take a look.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue.
It would be better to a testing site where the issue is replicated.

The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I'll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site.
This will allow me to create a copy of your site and your content.
Once the problem is resolved I will delete the local site.

**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields.

Best Regards,
Otto

April 28, 2025 at 1:40 pm #16975198

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

In the sandbox site, the reservation flow pages are translated. I mean, the Greek pages are connected with the English translations.

On your site, there are Greek pages for the flow and English pages for the flow. But they are not translations of each other.

Can you please try to link them following this documentation:
https://wpml.org/faq/how-to-link-already-translated-pages/

Best Regards,
Otto

April 28, 2025 at 2:05 pm #16975303

vasilikiK-2

Ok, I did.

April 28, 2025 at 5:17 pm #16976132

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

On my local copy of your site, I edited all the reservation flow pages in English. I changed the shortcodes language from "en-GB" to "en" in the three pages, and after that, the flow worked.

Can you please try it on your end?

Best Regards,
Otto

April 28, 2025 at 7:37 pm #16976632

vasilikiK-2

No, Otto, for a mysterious reason, it cannot find 'confirm-your-reservation' (step3) in english. I tend to believe now that maybe seedprod builder makes the mess, cause even if the slugs are correct inside - I see same slugs at the landing pages list (seedprod) for english and greek. :/

April 28, 2025 at 9:04 pm #16976727

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hi,

It's weird because it worked for me locally, even with SeedPro active.

Can you please elaborate a bit on what this landing page feature is?

Best regards,
Otto

April 29, 2025 at 9:52 am #16978171

vasilikiK-2

All 3 pages were built with Seedrop.
Confirm your reservation (EN) hidden link
Greek page: hidden link

Reservation form (EN) hidden link
Greek page: hidden link

Reservation details (EN) hidden link
Greek page: hidden link

1) If I click to view hidden link from the pages list it redirects me to hidden link

If I click to view the same page from Seedprod list of landing pages it redirects me to hidden link

2) If I open the reservation form in English, 1st step is ok, 2nd step is ok, 3rd step takes me to hidden link (404 page not found) instead of hidden link (*missing the /en/)

3) The Greek pages and steps are working fine - all with the correct URLs,
but I noticed in seedprod listing that it shows same URLs for Greek and English pages although they are not, that's why I say it is maybe seedprod error or seedprod not configured right.

Στιγμιότυπο οθόνης 2025-04-29 121439.png
Στιγμιότυπο οθόνης 2025-04-29 121500.png
Στιγμιότυπο οθόνης 2025-04-29 121511.png
Στιγμιότυπο οθόνης 2025-04-29 121518.png
Στιγμιότυπο οθόνης 2025-04-29 121530.png
Στιγμιότυπο οθόνης 2025-04-29 121539.png
Στιγμιότυπο οθόνης 2025-04-29 121547.png
April 29, 2025 at 1:24 pm #16979486

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

In my local copy of your site, it works as expected. With the same plugins and theme, I didn't change anything but the shortcodes that had the wrong language. And the third step takes me to:

/en/reserve-a-table/?view=reservation&ordnum=33&ordkey=2NGLB142ZKA9G13N

I suggest you re-save the permalinks, clean the cache (server-side and plugins, if any), and try again. Also, make sure that the translations are linked to the original content.

Best Regards,
Otto