Home›Support›English Support›[Resolved] I have a "News" section that should be active and visible only in italian
[Resolved] I have a "News" section that should be active and visible only in italian
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.
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.
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.
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.
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.
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.
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?
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!
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.