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:
//compsupp_7780 workaround add_action( 'elementor/document/after_save', 'compsupp_7780_after_document_save' ); function compsupp_7780_after_document_save( $document ) { $wpml_page_id = $document->get_post()->ID; wp_update_post(array('ID' => $wpml_page_id));= return $document; }
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.
This topic contains 1 replies, has 1 voice.
Last updated by 6 months, 2 weeks ago.
Assisted by: Shekhar Bhandari.