Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues with previewing pages where old versions appear or updates are not immediately visible to all users, and disabling WPML Multilingual CMS resolves the issue, this might be due to excessive post revisions stored in your database.
Solution:
We recommend performing the following steps:
1. Use a database cleaner plugin to remove excessive revisions from your wp_posts table. This action has resolved similar issues in the past.
2. To prevent this issue from recurring, consider limiting the number of post revisions WordPress retains. You can do this by adding the following line to your wp-config.php file:

define('WP_POST_REVISIONS', 3);

If this solution does not resolve your 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.

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 6 replies, has 0 voices.

Last updated by kerryP 1 month, 2 weeks ago.

Assisted by: Kor.

Author Posts
July 21, 2025 at 10:03 am #17254636

kerryP

Background of the issue:
I am trying to preview a page, but I am encountering issues. Disabling WPML Multilingual CMS resolves the issue. I have tried clearing all cache, updating my theme (Salient) and the Salient WPBakery page builder, and selected various settings in WPML troubleshooting.

Symptoms:
When I preview a page, I see very old versions of the page, sometimes from years ago. Additionally, when I update the page, some people see the changes immediately, while for others it can take a couple of hours, even after clearing cache.

Questions:
Why am I seeing very old versions of pages when previewing?
Why do some users see updates immediately while others do not, even after clearing cache?

July 21, 2025 at 10:15 am #17254801

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. Here is the ticket and please let me know how it goes.

July 22, 2025 at 11:53 am #17259079

kerryP

Hello, I think the staging site is now stable so you can now take a look into the request (login details in the transcript).

July 22, 2025 at 7:09 pm #17260994

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I need the "authentication popup" credentials as shown in the attached screenshot. Could you provide that?

Screenshot_241.png
July 24, 2025 at 2:30 pm #17268035

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've checked and could you check out this screen recording hidden link to see if this is what you're trying to explain?

This is what I've done.

1. With WPML activated, I've edited this page hidden link and inserted a new module at the bottom.

2. Clicking on preview directly will not display the module that I've added.

3. But when I deactivated WPML plugin, the preview showed the module that I've added even before I saved/updated the page.

July 28, 2025 at 2:14 pm #17275707

kerryP

Hi Kor, yes the screen recording shows the exact issue we're having

July 28, 2025 at 4:20 pm #17276282

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. This reminds me of a similar issue we encountered with the Avada theme https://wpml.org/forums/topic/avada-preview-not-working/ , and here’s what our 2nd Tier Support discovered:

When you click "Preview," WordPress saves a revision of the post in the wp_posts table, which is then used to display the preview.

On your client’s site, a large number of these revision posts had accumulated, as they aren’t automatically deleted.

After deleting the revisions for one of the affected pages, the preview started working correctly again—even with WPML active.

To resolve this on the client’s staging site, I used a database cleaner plugin to remove the excessive revisions, and everything now functions as expected.

To prevent this from recurring, you might consider limiting the number of post revisions WordPress retains by adding the following line to the wp-config.php file:

define('WP_POST_REVISIONS', 3);

Could you please try applying the workaround from our 2nd Tier Support and see if it works?

July 29, 2025 at 2:39 pm #17279540

kerryP

I've applied those changes and it is working correctly now thank you!