Skip Navigation

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 5 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 7 months ago.

Assisted by: Mohamed Sayed.

Author Posts
October 24, 2023 at 9:20 am #14644729

mariusR-10

Some page in Elementor cannot be edited, even with safe mode ON.

To debug this I created a staging env and disabled theme and plugins until I found the culprit.

I expected to find a shady plugin or a old plugin not up to date that would create issues with Elementor but instead I found out that it was the latest version of WPML that caused the issue.

I can have 100% of all the others plugins and the main theme activated, I only need to disable WPML and Elementor works again.

I don't know how to debug this, because I thought Elementor and WPML were compatible, everything is updated and the website is in 4 langages I cannot just remove WPML...

Any idea of how can I resolve this issue ?

October 24, 2023 at 4:44 pm #14649911

Mohamed Sayed

Hi Marius,
Thanks for contacting WPML support.

I couldn't replicate this issue on a clean installation with the latest version of WPML.

- Could you please tell me if you see this issue with the original pages or translations?

- Also, please provide me with the WordPress debug.log, this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

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

define('WP_DEBUG', false);

And 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 which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory.

If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great!

Kind regards,
Mohamed

October 25, 2023 at 3:09 pm #14662701

mariusR-10

Hello, the translations are working in Elementor safe-mode only, the original is not working at all even with safe mode.

I only have a warning in my wordpress logs and it does not look linked in any way to WPML or Elementor (When I desactivate Jetpack it does not work, but when I desactivate WPML in staging it does)

https://pastebin.com/7H6bx1bM

Jsyk I also have a support ticket open with Elementor support itself

thanks for your time

October 25, 2023 at 8:23 pm #14664685

Mohamed Sayed

To best troubleshoot the issue, kindly create a copy of your site and provide a link to download it. You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/) or the All-in-One WP Migration plugin (https://wordpress.org/plugins/all-in-one-wp-migration/).

The plugin will create a package file that you can download then upload again to Google Drive or Dropbox and share the download link in the next reply which I have marked as private. Then I’ll escalate this issue to our developers for further investigation.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/

October 29, 2023 at 2:57 pm #14686829

Mohamed Sayed

Hi,
Sorry for the late reply due to the weekend.

I imported the site and found a JS error in the browser console comes from Elementor Pro (Please check the attached screenshot)

When Elemntor Pro is disabled, I can create and edit the new pages with Elemntor (free version).

I escalated this issue to the 2nd tier support developers for further investigation, I will update you once I get their reply.

Screenshot_274.png
November 1, 2023 at 6:16 am #14705301

Mohamed Sayed

Hi,

Our developers found that this caused due to an issue with duplicated posts, there are a lot of posts with post_name = "160-city"

One of the posts is even an attachment and Yoast plugin was directly creating a redirect (because that was the post with lower ID in wp_posts table and it got priority over the others)

As a workaround, you can change the post slug with the following steps:

Please try the following steps after creating a full database and website backup:

- Go to your database manager (Like phpMyAdmin)
- Go to the SQL tab and run the following query:

UPDATE `BK5uuXZpO_posts` SET
`post_name` = '160-city-test'
WHERE `ID` = '41659';

- Clear the cache

For the other posts, you can use this query:

SELECT `ID`, `post_name` FROM `BK5uuXZpO_posts` WHERE `post_name` LIKE '160-city'

I tested the above steps on the local site copy and it works as you can see here hidden link

Please note that this issue is not caused by WPML and we can see the same behavior even when WPML is disabled. We recommend reporting this to the Elementor's support.

Kind regards.