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.

Tagged: 

This topic contains 23 replies, has 3 voices.

Last updated by Karsten 1 year, 10 months ago.

Assisted by: Dražen.

Author Posts
August 4, 2023 at 1:17 pm #14155133

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello Karsten,

thanks, take your time.

As for the theme, I understand and if it requires a lot of time, you can use the parent Uncode theme, which should work fine for you.

Regards,
Drazen

August 9, 2023 at 9:46 am #14174523

Karsten

Hi Drazen

It took a few days over the weekend. Creating a staging site is quickly done. The settings to make it work with changed links for WPML is more of a challenge.

Let me first point out that I had the same issue over a year ago:
https://wpml.org/forums/topic/redirect-from-login-page-to-account-page-not-working/
I do want to understand and solve it reliably this time and I'd appreciate your input.

The staging site is ready.
- Uncode theme still active
- Woocommerce still active
- WPML still active.
- Other plug-ins deactivated.

Issue described:
After login on the second language (English) login page, the user is not forwarded to the proper Woocommerce "My Account" dashboard. It works on the basic first language (German).

Server uses NGINX. Rewriting rules crash the site.

Any suggestions how to pick this up best?

Regards
Karsten

August 9, 2023 at 9:50 am #14174577

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello Karsten,

Great, thanks for your time.

Let me please have a look to debug the issue further.

Please make a full backup of your site (files and database) and confirm it in your next reply.

I would need to access both your site's wp-admin and FTP account, if possible.

I have enabled the private username and password fields in your next reply.

You can safely add your information into these fields.

Thanks,
Drazen

August 9, 2023 at 10:01 am #14174649

Karsten

Additional info:

I used WP Staging Pro to create a staging site. The staging site was created in a subfolder, not in a subdomain. This causes some issues with linking, especially with WPML. Just creating the staging site requires significant effort:
hidden link

If needed, I must create a subdomain. You let me know.

August 9, 2023 at 11:26 am #14175355

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I am afraid I do not understand, I thought the staging was ready, but seems is not.

Anyway, to continue to debug I need to check further, it doesn't matter in a subfolder or subdomain. Let me know if you can provide one, if not I will share more info on how can you migrate a copy to our test server or provide a duplicator copy so I can check further.

Let me know.

Thanks,
Drazen

August 9, 2023 at 12:47 pm #14175771

Karsten

Where can I safely share access to the site?

August 9, 2023 at 12:58 pm #14175813

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I have enabled private reply for you.

Regards,
Drazen

August 9, 2023 at 2:16 pm #14176627

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello Karsten,

thanks for getting back.

I have checked your website and was able to see the issue, then reproduce it from scratch on a new website and confirm this bug with the Uncode theme.

Seems you are creating a custom page named Login and then setting this page as a custom login template via WooCommerce settings. The issue here is that 2nd language page is not being set in this option, should be auto-synced from the default language option.

I have escalated this to our compatibility team and we will contact the theme author and work on a permanent fix.

In the meantime you can use a simple workaround:

- From topbar in admin, switch to 2nd language (English)
- Go to the same option and select the correct login page for English

I have checked and it works fine. Image attached.

Please check also yourself and it works fine, You are free to remove the staging site.

Regards,
Drazen

Screenshot_4.jpg
August 9, 2023 at 3:08 pm #14176993

Karsten

Works! Fabulous! Thank you so much. I have been struggling with this one, and it is valuable to know this will be communicated by WPML to the Uncode team for a permanent fix. As I use the combination of Uncode on a number of sites with WPML (some of my own, some customers), this is huge to me.

Thank you.