Hello,
The metadata of Elementor plugin was broken.
We’ve fixed that issue with this code:
<?php
/**
* Fix Elementor corrupted metadata
*/
add_action('admin_init', 'fix_elementor_corrupted_meta');
function fix_elementor_corrupted_meta() {
// Only run once
if (get_option('elementor_meta_fixed')) {
return;
}
global $wpdb;
// Fix page settings that are strings instead of arrays
$wpdb->query("
UPDATE {$wpdb->postmeta}
SET meta_value = 'a:0:{}'
WHERE meta_key = '_elementor_page_settings'
AND meta_value NOT LIKE 'a:%'
AND meta_value NOT LIKE 's:0%'
");
// Fix conditions cache that are strings instead of arrays
$wpdb->query("
UPDATE {$wpdb->postmeta}
SET meta_value = 'a:0:{}'
WHERE meta_key = '_elementor_conditions'
AND meta_value NOT LIKE 'a:%'
");
// Mark as fixed
update_option('elementor_meta_fixed', true);
// Clear Elementor cache
if (class_exists('\Elementor\Plugin')) {
\Elementor\Plugin::$instance->files_manager->clear_cache();
}
}
Everything should be fine now.
Can you please double check?
Thank you!















