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 13 replies, has 2 voices.

Last updated by Bigul 1 year, 11 months ago.

Assisted by: Bigul.

Author Posts
July 12, 2023 at 8:58 am #14021007

arthurL-6

I'm working with staging website where I have password protection set up: hidden link . After I've done with my changes I'm pushing staging to live (where I don't have password protection) and sometimes I see that on my live website there is a website protection.

I've contacted hosting and they told me that problem with WPML hidden link , legacy switcher. It makes request for styles on the staging website. This problem is really annoying me so I would love to know how can I setup WPML (on staging or on the live or both) to prevent this issue

hidden link - staging
hidden link - live

July 12, 2023 at 10:15 am #14022275

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

Please tries the following troubleshooting steps after a full site backup{mandatory} and make sure the issue is existing or not.

1) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)

2) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.

- Clear the cache in WPML
- Disable cache for language switcher templates
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables

--
Thanks!

Bigul

July 12, 2023 at 4:09 pm #14026997

arthurL-6

Hello Bigul, thanks for your reply
I need to make sure we on the same page. Should I do this on the staging website or on the live? If I do this on the live - all of this steps will be wipe out because of migration from the staging.

Thanks

July 13, 2023 at 7:44 am #14029467

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. Please try it on the live site after a full site backup{mandatory} and let us know your feedback. It will clear all the caches related to WPML.

--
Thanks!

Bigul

July 13, 2023 at 8:41 am #14029985

arthurL-6

Hello
hidden link - I don't have any caching of the switcher template so I think it's not the reason. All other steps I've done on staging and on live website. After I do my changes on staging and push it to live I have this password protection issue hidden link , it's where the issue. Why do styles.css is getting from staging but not from live website?

Best Regards

July 13, 2023 at 1:32 pm #14033559

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. I am consulting with our team about this for an expert opinion. We will get back to you soon. Please wait.

--
Thanks!

Bigul

July 14, 2023 at 12:23 pm #14039621

arthurL-6

Thanks, I'm waiting

Have a nice day

July 14, 2023 at 1:08 pm #14039863

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

We had a few rounds of testing locally. But not able to reproduce the issue in our test installations. Please login to your database using a tool like PHPMyAdmin and run the following query after a full site backup{mandatory}. Then check if is there any difference in the results. Maybe the table prefix will be different in your case.

DELETE FROM wp_options WHERE option_name = 'wpml_language_switcher_template_objects';

We are not able to reproduce the issue exactly on the live site. So if the problem exists, we have a couple of requests for tracking this.

1) Please let us know the exact steps to reproduce the issue on your site

2) Please fill the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information-sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

July 15, 2023 at 9:30 am #14042155

arthurL-6

hidden link - I have this issue now.
Steps to reproduce:
1) Push staging website to live
2) go to the live website
3) See this password protection tab.
4) If you try to update the page password protection tab will be dissappeared but all styles from language switcher will be broken: hidden link
This is how it should be: hidden link

July 15, 2023 at 9:37 am #14042265

arthurL-6

hidden link - staging
hidden link - live. I would like to know if you get what should be done to reproduce issue?

On your staging enviroment you should:
Create password protection for staging host. Make some styles for layout switcher and push website to live (live website should be without password protection). Then try to go to your website. And this issue will be appeared.
If you still can not reproduce - should I give you credentials for staging, live and hosting, correct?
Please, inform me when you'll be able to start work. Currently I've disabled password protection from staging because it breaks user experience.

Best regards

July 17, 2023 at 12:04 pm #14049165

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. I have shared the details with our team and waiting for their expert opinion now. We will get back to you soon. Please wait.

--
Thanks!

Bigul

July 18, 2023 at 9:57 am #14057069

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

This may be a cache issue. We have cleared the WPML caches now and the language switcher cache is disabled now.

So one request, please clear all types of Cloudflare caches and make sure the issue is existing or not. Because the language switcher is displayed on every page. Refer to the following article for more details.

hidden link

--
Thanks!

Bigul

July 19, 2023 at 2:38 pm #14067095

arthurL-6

Okay, I will take a look if the issue will repeating.
Thanks for your support

Please, do not close this ticket for a few days. If everything will solved by caching - I'll close it by myself

Have a wonderful day!

July 20, 2023 at 7:10 am #14069403

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. Take your time. We will wait for your feedback.

--
Thanks!

Bigul