Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client reported that the English version of the "News" page was visible despite there being no direct translation. This issue was related to how WordPress and WPML handle blog pages, where if a blog page is not translated, it might still display content from the default language.

Solution:
We proposed two solutions:
1. Implement a 301 redirect from

https://www.uniaudit.it/en/news/

to

https://www.uniaudit.it/news/

. This can be done using a plugin or by adding an entry in the

.htaccess

file.
2. Create a translation of the "News" page in English and then set it to Draft or Private to ensure it exists but is not publicly accessible.

Additionally, we advised clearing all caches after making significant changes, especially since the client was using the SiteGround "Speed Optimizer" plugin.

If these solutions do not resolve your issue or if they seem outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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

Last updated by Mihai Apetrei 6 months, 2 weeks ago.

Assisted by: Mihai Apetrei.

Author Posts
June 10, 2024 at 2:30 pm

gianfrancoa-3

I have a "News" section that should be active and visible only in italian

June 10, 2024 at 3:35 pm
June 11, 2024 at 11:25 am #15726209

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

This is the ticket that I migrated our chat into.

I am still debugging on this matter and as soon as I have any updates, I will let you know (you will be notified via email when there's a reply in this ticket).

I'm leaving the ticket assigned to myself for now.

Mihai

June 12, 2024 at 2:48 pm #15732305

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

To further debug the problem I’d like to replicate your site locally.

I will need your written approval to be able to duplicate your site using a plugin called "Duplicator" and test your site on a testing environment so can you please let me know if this is ok with you?

After we find a solution for this, the duplicated site will be deleted.

I will be waiting for your response.

Mihai

June 13, 2024 at 6:46 am #15734243

gianfrancoa-3

Hi,
this duplication will not affect my website, right? I mean, you'll just activate the "Duplicator" plugin on my production website and no more, right?

If that's the case, and there will be no issue with my production website, you can surely proceed with the duplication 🙂

Thanks again for your help, please keep me updated.

June 13, 2024 at 10:27 pm #15737910

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

That is correct. It should not affect the live site in any way. I will simply create a backup of the site and then copy it to a testing environment. This way, we won't need to "restore" the site if anything goes wrong (as that would prolong the process, given that we are not in a live chat, and replies usually take longer).

Thank you for your approval; I will proceed with the debugging, and as soon as I have any updates, I will inform you.

I will keep the ticket assigned to myself until then.

June 18, 2024 at 1:42 pm #15749344

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

I just wanted to get back to you and let you know that I did not forget about you 🙂

I am still debugging on this matter and as soon as I have any updates, I will get back to you as I promised.

The ticket remains assigned to me for now.

Mihai

June 18, 2024 at 1:50 pm #15749348

gianfrancoa-3

Sure, thanks for the update 🙂

June 22, 2024 at 8:07 pm #15787453

Mihai Apetrei
Supporter

Languages: English (English )

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

It is my pleasure.

I'm back with some updates for now.

So, outside of the super weird issue that is happening at the moment (the one you reported), I also encountered a good amount of issues when I tried to duplicate the site because I had to go another route and set up the exact same setup with all the exact same versions from your server (your server is using a specific database version and other unique parts, too, and if I was going the default/normal route to duplicate the site, it would result in a fatal error on my local environment.

In regards to the issue that we are investigating, it is obvious that there is no existing translation for the Italian News page because, when you are on it, it won't show the English flag on the top-right area of the site menu.

But, somehow, that other page exists (it is loaded from somewhere, so I'm still working to find out from where). I suspect some caching.

So, if someone doesn't have any idea about the EN URL (hidden link), they won't be able to access it from the front end because there's nothing pointing to that.

I am still investigating.

June 22, 2024 at 9:00 pm #15787738

Mihai Apetrei
Supporter

Languages: English (English )

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

Can you please try to follow the steps here to clear the caching and also disable any existing dynamic caching settings and then see if the /en/news page still exists:
hidden link

I still suspect this issue might be coming from some kind of server/dynamic caching.

So can you try that, too, and let me know the results?

June 24, 2024 at 10:15 am #15805431

gianfrancoa-3

Hi, first of all thank you very much for keep trying 🙂

Now, regarding your questions: unfortunately I don't have direct access to Siteground CPanel, but I guess the cache could be emptied using "Speed Optimizer", the specific plugin made by siteground. I have already emptied cache many times using the "Speed Optimizer" plugin, but nothing changes.

Anyway, if you have issues duplicating the website on your enviroment, I can try to manually duplicate the website on my DEV enviroment (not Siteground) and then give you access to this copy of website. In my DEV enviroment I don't have any cache so it would be a "clean" envirement.

Let me know if this can be helpful, ok?
Thanks again!

June 27, 2024 at 5:43 pm #15845856

Mihai Apetrei
Supporter

Languages: English (English )

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

Thank you very much for offering to help with the environment but I managed to duplicate it locally.

I was just suspecting that the issue might be related to that dynamic caching but in the end I think I will end all my debugging procedure with a further escalation straight to our developers in case I won't be able to fully figure this out by the end of today.

I will keep you updated as I promised.

June 28, 2024 at 7:02 am #15849775

gianfrancoa-3

Hi, thank you very much for the update.
I'll wait for any news 🙂

July 1, 2024 at 9:31 pm #15870565

Mihai Apetrei
Supporter

Languages: English (English )

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

Thank you so much for your AMAZING patience and for your cooperation.

I will go forward and escalate this further to our developers team.

This is a very strange case and I don't seem to figure out what's happening.

I will keep you up to date as usual.

July 2, 2024 at 6:55 am #15872926

gianfrancoa-3

Ok, thanks again for the update.
I'll wait 🙂