here is log file –
https://www.idraulico-brescia-24h.it/wp-content/uploads/2021/04/log_file_2021-04-01__04-50-57.txt
here is my code :
<?php
function zozo_import_files()
{
return array(
array(
'import_file_name' => esc_html__('Main Demo Import', 'mover-pro'),
'import_file_url' => get_template_directory_uri() . '/inc/core/demo-data/demo.xml',
'import_customizer_file_url' => get_template_directory_uri() . '/inc/core/demo-data/customizer-export.dat',
'import_preview_image_url' => 'https://wp.zozotheme.com/wp-moverproe/plugins/main-demo.jpg',
'preview_url' => 'https://wp.zozotheme.com/wp-moverproe/',
),
);
}
add_filter('pt-ocdi/import_files', 'zozo_import_files');
if (!function_exists('zozo_after_import')):
function zozo_after_import($selected_import)
{
//Set Front page
$page = get_page_by_title('home-2');
$blog = get_page_by_title('Blog');
update_option('page_on_front', $page->ID);
update_option('page_for_posts', $blog->ID);
update_option('show_on_front', 'page');
if (class_exists('revslider')) {
$slider_array = array(
get_template_directory() . "/inc/slider1.zip",
get_template_directory() . "/inc/slider2.zip",
get_template_directory() . "/inc/slider3.zip",
);
$slider = new RevSlider();
foreach ($slider_array as $filepath) {
$slider->importSliderFromPost(true, true, $filepath);
}
echo ' Slider processed';
}
}
add_action('pt-ocdi/after_import', 'zozo_after_import');
endif;
add_filter('pt-ocdi/disable_pt_branding', '__return_true');
===========================================================
kindly check this.