Skip Navigation

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

Problem:
You are trying to translate a page into French using WPML, but nothing is displayed on the website. This issue is due to an incompatibility between Royal Elementor Addons and WPML.
Solution:
The problem occurs in the

\WprAddons\Classes\Utilities::get_template_slug

function within the

wp-content/plugins/royal-elementor-addons/classes/utilities.php

file. Royal Addons is attempting to find a non-existent template, which leads to a NULL return. To resolve this, access your database, locate the 'wpr_single_conditions' option in the WordPress Options table, and delete its value. After making this change, the issue should be resolved.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum 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 24 replies, has 2 voices.

Last updated by Andreas W. 1 year ago.

Assisted by: Andreas W..

Author Posts
May 29, 2024 at 1:54 am #15681399

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, I just realized that there was an error in my last comment.

I wrote I would "not" escalate the issue, but I meant "now".

The issue has been escalated internally and I will contact you again, once I receive feedback from the team.

May 29, 2024 at 8:07 am #15682018

alexandreN-10

if i change the addons what about the data migration i will not loose my work so far i have done ?
because that plugin royal elementor concerns 90% of work i have done ?

May 29, 2024 at 10:05 am #15682676

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you for your message!

If most of your content is using widgets from Royal Elementor Addons then I can not suggest that you use another addon.

If you disable Royal Elementor Addons then the widgets from this plugin will no longer show up on the site. I suppose you would need to replace all widgets using widgets from another addon.

Also, we are constantly working on making all available Elementor Addons compatible, and we assure you that if issues occur, then we are here to help.

For now, please wait for the feedback from our team, as this seems to be a kind of an edge case, which I was not able to replicate on a new install of WordPress using the same plugins and the same content.

May 31, 2024 at 9:32 am #15691410

alexandreN-10

okay i am still waiting your feedback to the issue

May 31, 2024 at 5:39 pm #15693620

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, as I could not find a solution. I am still waiting for feedback from second- tier support.

June 5, 2024 at 10:43 pm #15708996

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Here is the reply from our Second Tier Support Team:

---

The issue occurs in

\WprAddons\Classes\Utilities::get_template_slug

in the file

wp-content/plugins/royal-elementor-addons/classes/utilities.php

In this case, Royal Addons is trying to find a template called "user-single-dance-studio-v1-page" by doing:

		if ( ! $templates_loop->have_posts() ) {
			if ( defined('ICL_LANGUAGE_CODE') ) {
				$original_post = get_page_by_path($template, OBJECT, 'wpr_templates');

But this returns 'NULL' for $original_post and hence instead of returning '$template = null;' it returns '$template = "user-single-dance-studio-v1-page";'

As far as I can see, the template is defined in the option key "wpr_single_conditions"

Removing that option key fixes the issue.

---

This means you need to connect to the database, look for the option name "wpr_single_conditions" and delete its value from the table.

If you would like me to take another look into this, please let me know.

The issue is related to the plugin's code and it seems that this occurs if a template was deleted from the site, could this be?

I have seen similar requests on their support forum. Maybe you should open a ticket ton their forum and report our findings.

Best regards
Andreas

June 6, 2024 at 9:10 am #15709929

alexandreN-10

yes Andreas take a look again and change what i want to make things work perfectly thanks

according to our different time zone it seems i am lacking of get back to you or respond in quick time can i share my WhatsApp number so if you reply in this support forum just let me know so i can come to respond you quickly because this issue take a lot time and we want a website to be up and run in next few days and we are stuck because we cant translate the content which is not seen on front end

June 6, 2024 at 6:13 pm #15713048

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The problem is now solved after I removed this specific entry from Royal Addons for Elementor from the WordPress Options table.

I suggest that you report this issue to Royal Addons for Elementor including the findings from our second-tier support team.

elementor.jpg
June 10, 2024 at 7:38 am #15720427
alexandreN-10

hello Andreas i hope you are doing well big thanks for the support the problem is solved but there is one simple issue can you take a look on navbar assist us again i think it lacks the css class

New threads created by Andreas W. and linked to this one are listed below:

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

Sot 207.png
June 11, 2024 at 2:57 pm #15727508

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I am glad to hear that we found a solution for the issue.

About the language switcher:

I need to investigate this issue further and would like to split it into a new ticket. You will receive an e-mail notification once I reply to this new ticket shortly.