[Resolved] Outdated HTML shown in Preview mode with WPML activated
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where pages and posts in Preview mode display outdated HTML code when the WPML Multilingual CMS plugin is activated. This affects both original and translated content, and the issue does not occur when WPML is deactivated. Solution: We recommended updating the WPML plugins to the latest version (v4.7.5) to address this issue. If the problem persists after updating, we advised the client to ensure that all plugins and themes are up-to-date by checking https://nektony.com/wp-admin/update-core.php. Additionally, we suggested creating a staging site to safely test updates if the client is uncomfortable updating the plugins on the production site.
If this solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to your case, we highly 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 the problem persists, 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.
Background of the issue:
I’m experiencing an issue with the WPML Multilingual CMS plugin on my website hidden link. When WPML is activated, pages and posts in Preview mode display outdated HTML code instead of the most recent version. This affects both original and translated content. If I deactivate WPML, the Preview works correctly and shows the updated content. I’ve tried clearing the cache and deactivating other plugins, but the issue only persists when WPML is active.
Symptoms:
Pages and posts in Preview mode display outdated HTML code when WPML is activated.
Questions:
Could you please advise on how to resolve this issue?
I kindly ask you to share a link to a screencast showing the issue and the steps to reproduce it. This will help me to have a better understanding of the problem you are describing.
Hi,
Thank you very much for sharing the screenshots.
Today, we released a new WPML version (v4.7.5). I kindly ask you to update the WPML plugins in Plugins -> Add new -> Commercial tab and double-check if the issue has disappeared.
If the issue persists, share the access credentials to the site in your next message, which I have set private so that I can reproduce it. Also, confirm you created a full site backup that you can use to restore the site if necessary.
We will be using the Temporary Login Without Password plugin to provide you with access to the site.
Could you please let us know the email address you'd like us to use for creating the temporary login?
Also, please specify how long you will need access to the site.
I’m using the Astra theme on my WordPress website together with WPML. Astra provides per-page settings (like Disable Title, sidebar settings, etc.) that can be configured individually for each page.
The issue I’m facing is that these Astra Settings are automatically duplicated from the original page to the translated page. This means I can't configure them independently per language.
For example, I would like to disable the page title on the original page, but show it on the translated page. Currently, this is not possible, as the translated page inherits all Astra settings from the original.
Is there a way to make Astra Settings independent for translated pages?
If so, could you please let me know how to configure this?
I ran some troubleshooting steps to fix a problem with the languages in the database. Before we continue, I kindly ask you to update all outdated plugins and themes that appear outdated in this link: hidden link
The outdated functionalities can cause conflicts in the code.
If you don't feel comfortable updating the plugins in the production site, you can create a staging site with a copy of the live site and run all the tests there.
I edited the Store page (hidden link..%2A_ga%2AODA3OTA4OTQ5LjE3NDkyMTIxOTE.%2A_ga_8SY1NS3R78%2AczE3NDkyMTIxOTEkbzEkZzAkdDE3NDkyMTIxOTEkajYwJGwwJGgw), but it is not translated. The preview mode you are referring to seems to correspond to the content on the page in EN.
We are observing this issue across all pages, regardless of whether they have translations or not. It seems that the page is displaying one of its older revisions instead of the current version with the recently made changes.