Skip Navigation

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

Problem:
The client was unable to open the Elementor editor for a translated page/template, resulting in a 403 Forbidden error and an uncaught TypeError.
Solution:
The client said he had found a folder named /he/ on the server. Removing this folder solved the problem.
If this solution is 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 issues persist, 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.

This topic contains 2 replies, has 0 voices.

Last updated by יניב פרץ 23 hours, 8 minutes ago.

Assisted by: Itamar.

Author Posts
December 25, 2024 at 7:06 pm #16545901

יניב פרץ

Background of the issue:
I am trying to edit a translated page/template with Elementor. The issue can be seen at the following link: hidden link

Symptoms:
Elementor editor won't open, resulting in a 403 Forbidden error. Additionally, there is an uncaught TypeError: Cannot convert undefined or null to object.

Questions:
How to resolve this?

December 25, 2024 at 8:20 pm #16545996

יניב פרץ

No solution

December 25, 2024 at 8:20 pm #16545997

Itamar
Supporter

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

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

Hi,

The standard and recommended workflow when working with WPML and Elementor is explained in our guide here.

https://wpml.org/documentation/plugins-compatibility/elementor/

This means you use WPML's Translation Editor to edit the translation of pages created with Elementor.

However, you also have the option to use the Elementor editor for the translations. This method is mentioned also in the same guide here.

https://wpml.org/documentation/plugins-compatibility/elementor/#creating-different-designs-per-language

The detailed guide can be found here.

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

Were you using this manual method for translations?

If not, it is expected that you can't edit with Elementor the translations that were done with WPML's Translation Editor.

Regards,
Itamar.

December 25, 2024 at 8:22 pm #16545998

יניב פרץ

i tried everything, can't open elementor in the translated templaes/pages

December 25, 2024 at 8:27 pm #16546013

Itamar
Supporter

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

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

Hi,

If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

December 25, 2024 at 9:06 pm #16546043

Itamar
Supporter

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

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

Hi, and thanks for the access details.

You wrote that the problem can be seen here:
hidden link
However, when I try this link, I get redirected here:
hidden link
Please see the attached screenshot.

I can't see the problem that you mention.
Which post, page, or template must I edit to see this problem?
Please send the original post, page, or template because my expectation is that I can edit the original and face problems when I try to edit the translation.

Thanks,
Itamar.

2024-12-25_23-02-27.jpg
December 25, 2024 at 9:35 pm #16546072

יניב פרץ

it was before i tried every possible solution on the planet, you can try to open any translated page/template with elementor, for example:
hidden link

hidden link

December 26, 2024 at 11:02 am #16546678

Itamar
Supporter

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

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

Thanks.

I've consulted our second-tier supporter about this problem. He said that the opening of the safe mode is showing when trying to edit the translated page. Please see the attached screenshot. The second-tier supporter said it might indicate a theme or a plugin conflict. So he suggests trying the following:

1. Go to WPML -> Language -> Language URL format, and change it to 'Language name added as a parameter'. Click the save button and try to edit the translation with Elementor.

2. If it does not help, go to Settings -> Permalink and change the permalinks to 'Plain'. Click the save button and try to edit the translation with Elementor.

3. If it does not help, try a minimum environment. First, you must check if the problem persists when switching to the Hello parent theme. If it persists, deactivate all plugins except WPML and its add-ons and Elementor + Pro without any extensions (Crocoblock plugins). Then, please check if the problem persists. If it does not continue, start by activating the plugins individually and checking when the issue comes back, then report to me which plugin was the culprit.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****


*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***

4. If the problem persists, please share WordPress's debug log (not WPML debug information) with us. Please check this page for instructions.

https://wpml.org/documentation/support/debugging-wpml/

To enable it, open your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);

After this, repeat the action that causes the problem on your site - try to edit the translated page with Elementor. The errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us. (Please share only the errors from the time you tested this.

Regards,
Itamar.

2024-12-26_12-59-25.jpg
December 26, 2024 at 11:19 am #16546708

יניב פרץ

Thanks!!! i found the problem, thank you for your time.
thanks to that you said url format i remembered that i have a custom foldder named /he/ in the server, i deleted it =)