Skip Navigation

Resolved

Resolved in: 4.4.5

Overview of the issue

When you create a page using Elementor and navigate to Elementor’s revisions tab, you’ll find it empty.

Workaround

Our developers are working on a fix for this issue and it will be released with the upcoming WPML version.

In the meantime, you can use the following workaround to fix the issue on your site:

  1. Please make sure to have a backup of your site database and files.
  2. Go to wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/Hooks/GutenbergCleanup.php
  3. Replace this line 47
    1
    Post::updateMeta( $postId, WPML_Elementor_Data_Settings::META_KEY_DATA, $meta );

    with

    1
    update_metadata( 'post', $postId, WPML_Elementor_Data_Settings::META_KEY_DATA, $meta );

9 Responses to “Elementor revisions are missing when WPML is active”

  1. This solution doesn’t work!
    Even the revisions are visible, you can’t restore anything from them! If you save the page few times and try to restore one of the previous revisions, you’ll just see the empty page then.
    The ‘_elementor_data’ variable stored in the wp_postmeta table is crucial for the page built with Elementor.

  2. I have same problem, not only revisions are missing but if I want to preview my changes in elementor, it displays an empty page. First I was thinking that it may be a preview problem and updated anyway – I lose all my work I did. Now build already new homepage, saved it as templated and activated wpml plugins again – same thing happened, empty preview, this time I did not update anything just to avoid to lose all content. I have build quite many pages with wpml and elementor combo, looks very scary if there are such conflicts.

    • We’ve fixed this issue and the fix will be released in the upcoming WPML version. In the meantime, can you please check the workaround that has been provided in the post?

  3. Hello! I replaced the code, tried and at least for now was working. Could you estimate when the fix will be released, so I know for other sites

    • Glad to hear that the issue is fixed with the workaround.

      The next release is under testing and should be out soon.

  4. Following the advice given by Drazen and Ahmed, I have tried to replace the line of PHP on our server and the issue is still the same. This is pretty frustrating as we were supposed to release our new agency website this week and roll out our advertising campaigns. Is there any other solution you could provide to finally have our french translation display on the front-end? France is the main market that we want to target and we cannot display content for … See screenshot here : https://snipboard.io/2fgFWZ.jpg

    • Hello Mehdi,

      I totally understand your frustration but I have to kindly ask you to continue in our support forum as we have the needed tools to help you better. Please, share your findings in your ticket and we’ll try to help you as soon as possible.
      So far, I can say that we are expecting a fix in our new release, however, I can’t provide you an ETA for it.

      Thank you for your understanding.
      Andrés