Home›Support›English Support›[Resolved] The WPML Multilingual CMS plugin is clashing with the elementor plugin.
[Resolved] The WPML Multilingual CMS plugin is clashing with the elementor plugin.
This thread is resolved. Here is a description of the problem and solution.
Problem: When trying to 'Add new page' in Elementor with only the WPML Multilingual CMS plugin active, the page does not load and displays a grey spinning page. A JavaScript error appears in the console indicating an 'Uncaught TypeError: Cannot convert undefined or null to object'. Solution: We recommend adding the following code to your theme's functions.php file to address this issue:
If this solution does not resolve your issue, or if it seems outdated or irrelevant 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. Additionally, you can open a new support ticket for further assistance 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.
Background of the issue:
I am trying to 'Add new page' when editing using Elementor. I have deactivated all plugins except the WPML Multilingual CMS plugin and still getting the error until I deactivate the CMS plugin. Link to a page where the issue can be seen: hidden link
Symptoms:
The page doesn't load. I just get a grey spinning page with error:
Uncaught TypeError: Cannot convert undefined or null to object at Function.entries () at loopBuilderModule.createDocumentSaveHandles (editor.min.js?ver=3.26.2:2:68348) at loopBuilderModule.onElementorFrontendInit (editor.min.js?ver=3.26.2:2:67586) at p (load-scripts.php?c=1&load%5Bchunk_0%5D=underscore,jquery-core,jquery-migrate,backbone,jquery-ui-core,jquery-ui-mouse,wp-api-request,wp-hooks&ver=6.7:10:3644) at f (load-scripts.php?c=1&load%5Bchunk_0%5D=underscore,jquery-core,jquery-migrate,backbone,jquery-ui-core,jquery-ui-mouse,wp-api-request,wp-hooks&ver=6.7:10:3497) at a (load-scripts.php?c=1&load%5Bchunk_0%5D=underscore,jquery-core,jquery-migrate,backbone,jquery-ui-core,jquery-ui-mouse,wp-api-request,wp-hooks&ver=6.7:10:692) at e.trigger (load-scripts.php?c=1&load%5Bchunk_0%5D=underscore,jquery-core,jquery-migrate,backbone,jquery-ui-core,jquery-ui-mouse,wp-api-request,wp-hooks&ver=6.7:10:3380) at Editor.initFrontend (editor.min.js?ver=3.26.3:3:547605) at Editor.onPreviewLoaded (editor.min.js?ver=3.26.3:3:559900) at editor.min.js?ver=3.26.3:3:1223080
Thank you for contacting WPML support. I'd be happy to assist you on this issue.
To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.
So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link
I replicated your site on my localhost and couldn’t reproduce the issue—it opens without any problems on my end. The key difference is that I didn’t use the mu-plugins from WP Engine.
I suspect the issue might be related to caching. Could you please disable all caching, clear the existing cache, and check if the problem persists?
Also, do you have used any settings for role management in wpengine?
I haven't used any settings as such, but since on my localhost, if I disable mu-plugins it works so I wanted to make sure there is not an conflict with some server settings.
You can upload the csv file on google drive and share the links with me.
Today we have deployed the wordpress and plugin upgrades on our production website and server and we can still getting the issue now on our live and staging environments. Deactivating the WPML Multilingual CMS plugin fixes the issue.
Just to let you know I am able to reproduce the error and I have escalated this to our compatibility team, I will update you as soon as I will receive any further feedback from them.
Our compatibility team checked the issue and suggested the following workaround, can you please add the following in your theme functions.php and see if it helps.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.