Home › Forums › WoodMart support forum › Home is broken › Reply To: Home is broken
July 23, 2020 at 2:12 pm
#213547
Artem Temos
Keymaster
We found the problem and it is because of the latest Elementor update. Try to edit the file wp-content\plugins\woodmart-core\importer\wordpress-importer.php
and replace the following code
if ( '_elementor_data' === $key ) {
$wp_importer = get_plugins( '/wordpress-importer' );
if ( $wp_importer ) {
$wp_importer_version = $wp_importer['wordpress-importer.php']['Version'];
if ( $wp_importer_version && version_compare( $wp_importer_version, '0.7', '>=' ) ) {
add_post_meta( $post_id, wp_slash( $key ), wp_slash_strings_only( $value ) );
} else {
add_post_meta( $post_id, $key, $value );
}
} else {
add_post_meta( $post_id, $key, $value );
}
} else {
add_post_meta( $post_id, $key, $value );
}
with this one
if ( '_elementor_data' === $key ) {
$value = wp_slash_strings_only( $value );
}
add_post_meta( $post_id, $key, $value );
Then try to import our dummy content again.