Skip Navigation

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

Problem:
After activating the WPML Plugin, all original content on the site disappears except for the homepage. Deactivating WPML restores the content. The issue is linked to the \WprAddons\Classes\Utilities::get_template_slug in the royal-elementor-addons plugin, where a specific template slug causes the content to disappear when WPML is active.
Solution:/ The is an issue with the Royal Elementor Addons plugin.
To resolve this issue, follow these steps:
1. Back up your site's database.
2. Access your site's database (using the tool provided by your hosting service).
3. In the

wp_options

table, search for the

option_name

'wpr_single_conditions' or run the following SQL query:

SELECT * FROM `wp_options` WHERE `option_name` LIKE '%wpr_single_conditions%'

4. Replace the content of this option from:

{"user-single-travel-blog-v1-post":["single/posts/all"],"user-single-travel-blog-v1-page":["single/pages/all"],"user-single-404":["single/page_404"]}

to:

{"user-single-404":["single/page_404"]}

5. Save the changes.
This adjustment should restore the visibility of your original content while WPML is active.

Please note that this solution might become outdated or may not apply to your specific situation. We recommend checking the related 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 18 replies, has 2 voices.

Last updated by Itamar 9 months ago.

Assisted by: Itamar.

Author Posts
July 4, 2024 at 9:34 am

alinaB-7

Background of the issue:
After installing and activating the WPML Plugin, all original content from my site disappeared, except for the homepage. Deactivating the plugin restores everything to normal. The translated versions of the pages are still visible even when the original content is not.

Symptoms:
Original content disappears after activating WPML, but the homepage and translated versions remain visible.

Questions:
Why does the original content disappear after activating WPML?
How can I ensure that the original content remains visible after activating WPML?

July 4, 2024 at 10:09 am
July 4, 2024 at 10:10 am #15891048

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Please try the minimum environment proceedure I suggested and reply with your findings.

Thanks,
Itamar.

July 4, 2024 at 10:51 am #15891351

alinaB-7

Hey Itamar,

It took a bit longer since I decided to make and use a staging site for this process.

I found out that the problem is the "Royal Elementor Addons"-Plugin - as soon as it's activated, the content disappeares

July 5, 2024 at 6:10 am #15896252

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, and thanks for following my suggestions and finding the culprit plugin.

The Royal Elementor Addons plugin is not officially compatible with WPML. It is not on our list here - Royal Elementor Addons.

To try to help you, we need to replicate this issue on a fresh WordPress installation. Then, I'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link:

hidden link

With this link, you'll be directly logged in.

Could you please install the Royal Elementor Addons plugin and see if the issue is replicable on a clean WordPress installation?

I already configured WPML to have German as the default language and French as the second language. It's the same as on your site. Please also ensure you install the latest version of the plugin. Please let us know when everything is finished, and you can replicate the problem.
Important! Do not import your site to the test site. We must replicate the problem on a fresh, clean WordPress installation.

It would be great if you could contact the authors and urge them to join our Go Global Program. Details about it are here.

https://wpml.org/documentation/theme-compatibility/go-global-program/

We will happily cooperate with the authors to make their plugin officially compatible with WPML.

You can also contact them directly with this issue. I found another recent case with this plugin. You can see it here on this errata page.

https://wpml.org/errata/royal-elementor-addons-nav-menu-widget-renders-menu-language-switchers-in-raw-html/

And this is the related ticket.

https://wpml.org/forums/topic/split-language-switcher-is-rendered-in-raw-html/#post-15755578

You can also write to royalelementoraddons@gmail.com.

Please note that my weekend is Friday-Saturday, and I'll be able to continue to check this issue and help you on Sunday.

Regards,
Itamar.

July 5, 2024 at 9:20 am #15897514

alinaB-7

Hey Itamar,

thanks for the info.

I've added the Royal Elementor Addons Plugin to the site - I also had to add the Elementor Plugin, otherwise RAE plugin could not be activated.

I've also contacted the RAE Team with your request to join the go global program. However, I was wondering if my issue will only be resolved if the authors decide to do so, or if this was just an addition and you will be able to resolve the issue regardless?

Best,
Alina

July 7, 2024 at 3:18 pm #15907618

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Alina.

Thanks for adding Elementorand the Royal Elementor Addons plugin to the test site.

However, we need your help replicating the problem on the test site.
Are you able to replicate it there as well?

We always try to do our best to help our clients. But please know that in compatibility cases with third-party themes and plugins, we might need the author's cooperation to resolve the issue. We still can't know if this is your case. First, we need to understand what is causing the issue.

Regards,
Itamar.

July 10, 2024 at 6:28 am #15925851

alinaB-7

Hey Itamar,

Sorry for the delay, I will try to put some test content on the test site to see if the issue replicates and will let you know today.

Just to let you know, the Royal Elementor Addons Support answered, that they tested compatibility of WPML an RAE and everything worked fine. They forwarded to their technical Team, but said everything should work normally.

Best,
Alina

July 10, 2024 at 8:37 pm #15930188

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Alina.

Thanks for your help and for adding the answer from Royal Elementor Addons Support.

I'll be waiting for your reply.

Regards,
Itamar.

July 15, 2024 at 8:05 am #15952732

alinaB-7

Hey Itamar,

for some reason I cant properly apply credits to the test site - also, I would not like to use our paid credits for this kind of testing.

Site works well so far, but I have not been able to do automatic translations because of the credits, so I wasn't able to replicate this issue.

Is there a way for you to solve this issue in an easier way? We need to get live with translations this week Wednesday, so in the worst case we'd have to change translation plugins

July 15, 2024 at 3:23 pm #15955382

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

The sandbox site has an automatic dummy translation. It does not actually translate into other languages but only adds the language code at the beginning of each string. This is sufficient to debug an issue. I enabled the automatic translation on the sandbox site.

Does the German content disappear after translating the pages with the RAE plugin?

If the problem can't be replicated on the sandbox site, I will need a copy of your site, and then I'll escalate it to our second-tier supporters. For this, I need your permission to install a plugin like Duplicator or All-in-One WP Migration.

Do you allow me to do that?

In any case, I can't promise that we can solve the problem until Wednesday.

Regards,
Itamar.

July 15, 2024 at 6:04 pm #15956143

alinaB-7

Hey Itamar,

ok. No content disappeared on the sandbox site.

I just did an backup of the site, you can go ahead and install the duplicator / migration plugin.

Best,
Alina

July 16, 2024 at 6:16 am #15958186

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Thanks, Alina.

I've installed the All-in-One WP Migration plugin and created a copy of your site. We will investigate this issue and update you once we have news about it.

Regards,
Itamar.

July 18, 2024 at 3:21 pm #15973423

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Alina.

This issue is now escalated to our second-tier supporters. They will investigate it and we will update you on any news regarding this issue.

Thank you for your patience.
Itamar.

July 22, 2024 at 8:55 am #15985698

alinaB-7

Hey Itamar,

is there any update or expected timeline on this?

Best,
Alina