Skip Navigation

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

Problem:
The client is experiencing an issue where the Elementor editor loads fine for the default language (English) but gets stuck on the loading screen when trying to edit translations manually.

Solution:
First, we recommended the following steps to ensure that the translation is not being hindered by the use of different translation editors:
1) Create a Header Template
2) Duplicate it to secondary languages
3) Switch to a secondary language via the Dashboard language switcher of the top header
4) Open the Duplicated Header Template for edit
5) Click on Translate Independently button
6) Update the Template from Elementor Editor
7) Save the changes
For more details, please refer to our documentation on using different translation editors for different pages.

If the issue persists, it may be due to a conflict with the rewrite rules in the .htaccess file. We found that making the following changes to the .htaccess file resolved the issue on a staging site:

From

#Force trailing slash
<ifmodule mod_rewrite.c>
	RewriteCond %{REQUEST_URI} /+[^\.]+$ 
        RewriteCond %{REQUEST_URI} !^/wp-json
	RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
</ifmodule>

RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

To

# Force trailing slash
#<ifmodule mod_rewrite.c>
#	RewriteCond %{REQUEST_URI} /+[^\.]+$ 
#        RewriteCond %{REQUEST_URI} !^/wp-json
#	RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
#</ifmodule>

#RewriteEngine on
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

If these solutions do not resolve your issue, please open a new support ticket with us.

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.

This topic contains 15 replies, has 2 voices.

Last updated by Bigul 1 year, 4 months ago.

Assisted by: Bigul.

Author Posts
November 22, 2023 at 1:12 pm #14898093

franks-25

Please have a look at the screen recording: hidden link

In this example, I wanted to make some changes to our header. As you can see, I can edit the English version in Elementor just fine. It's a bit slow, but it works. But when I change the language e.g. to German and I want to do some changes to the translation of the header, I am stuck on the loading screen. Even activating Safe Mode doesn't help. I tried this with other translations and other post types, and it's often the same: The English version loads fine, but more often than not, the translations are stuck on the loading screen forever and nothing actually loads.

November 22, 2023 at 1:22 pm #14898137

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

This may be happening because of switching the translation from the WPML Translation Editor to manual translation mode. Please try the following steps and let us know your feedback.

1) Create a Header Template
2) Duplicate it to secondary languages
3) Switch to a secondary language via the Dashboard language switcher of the top header
4) Open the Duplicated Header Template for edit
5) Click on *Translate Independently* button
6) Update the Template from Elementor Editor
7) Save the changes

Please refer to this documentation for more details - https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/#how-to-use-manual-translation

--
Thanks!

Bigul

November 23, 2023 at 6:58 am #14903767

franks-25

Hi there.

Okay, did a new header and translated it as you said - same issue. The Elementor editor won't load for the translated versions...

November 23, 2023 at 6:59 am #14903769

franks-25

As I said, this is not only an issue with the header, the header was just an example. This also often happens with regular pages or posts.

November 23, 2023 at 4:20 pm #14910361

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the feedback. We will debug it further. One request. Please share the FTP credentials to access the staging site files - hidden link. Enabling the private option for the next reply.

--
Thanks!

Bigul

November 24, 2023 at 12:48 pm #14917341

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. We will debug it together with the main ticket and get back to you as early as possible. Please wait.

--
Thanks!

Bigul

November 27, 2023 at 6:29 am #14926493

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

The bug exists after initial troubleshooting steps. So I am consulting with our team for an expert opinion. We will get back to you soon. Please wait.

--
Thanks!

Bigul

December 2, 2023 at 5:12 am #14976621

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

We have a request. It looks like this bug is related to the following tickets. In both cases, the bug resolved after editing the templates using on the site in original language after a minor edit to refresh the translation settings and updating its translation.

https://wpml.org/forums/topic/incompatibility-of-wpml-string-translation-and-elementor-part-2/

https://wpml.org/forums/topic/wpml-is-breaking-elementor-2/

So please try it on the staging site and let us know your feedback - https://wpml.org/forums/topic/wpml-is-breaking-elementor-2/page/2/#post-12346773

--
Thanks!

Bigul

December 4, 2023 at 7:50 am #14982587

franks-25

Hello,

I just tried that (making a small edit on the original/English version), but Elementor still won't load in the secondary languages after that ...

December 4, 2023 at 8:21 am #14982729

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. Just to make sure, have you updated the translated templates(for example in Czech), after updating it in the original language(in English).

--
Thanks!

Bigul

December 4, 2023 at 10:01 am #14984439

franks-25

I tried it again now. This is what I did:
- Made a minor edit in the original English version.
- Updated the translation (I tried several languages, Czech, German, Spanish)
- When I now try to edit the translations, I'm still stuck on the loading screen as before.
So that didn't work. I really hope we can find a solution to this soon since it's been a back and forth for over a month now and we really need to be able to edit our translations.

December 5, 2023 at 4:44 am #14992659

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the feedback. I have shared it with our team. We will get back to you as early as possible. Please wait.

--
Thanks!

Bigul

December 12, 2023 at 1:41 pm #15046565

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

This looks like this error is happening because of a conflict with your rewrite rule in the .htaccess file(of the site root folder).

We are getting the expected results in the staging site after the following change in the .htaccess file. Please check it now and let us know your feedback.

From

#Force trailing slash
<IfModule mod_rewrite.c>
	RewriteCond %{REQUEST_URI} /+[^\.]+$ 
        RewriteCond %{REQUEST_URI} !^/wp-json
	RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
</IfModule>

RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ <em><u>hidden link</u></em>{HTTP_HOST}/$1 [R=301,L]

To

# Force trailing slash
#<IfModule mod_rewrite.c>
#	RewriteCond %{REQUEST_URI} /+[^\.]+$ 
#        RewriteCond %{REQUEST_URI} !^/wp-json
#	RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
#</IfModule>

#RewriteEngine on
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteRule ^(.*)$ <em><u>hidden link</u></em>{HTTP_HOST}/$1 [R=301,L]

--
Thanks!

Bigul

December 13, 2023 at 7:26 am #15051005

franks-25

Thanks, it seems like this has solved the issue!

December 14, 2023 at 7:50 am #15060829
franks-25

Hi Bigul,

Unfortunately I need to re-open this ticket. I tried commenting on the other ticket (https://wpml.org/forums/topic/critical-error-only-on-one-specific-language/) because that error from that ticket unfortunately still persists.

While we are now able to edit in Elementor again (so this ticket is resolved), the other one unfortunately isn't. While everything seemed fine at first, today I went ahead and wanted to delete and re-translate the Czech translations as instructed in the other ticket, but after trying to edit these translations in Elementor again, the Critical Error re-appeared.

So the same error of the other ticket still persists. Could you look into it?

Thanks!

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/critical-error-on-an-one-specific-language/