Scheduled backup not working for 4.40

[ad_1]

Starting with the 4.4.0 version of XCloner I get following error messages in the logs when a scheduled backup is executed:

[2022-08-10 02:00:02] php_system.ERROR: E_ERROR: array (   
    'type' => 1,   
    'message' => 
    'Uncaught Error: Class "XCloner" not found in /home/.sites/122/site793/web/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_Scheduler.php:272
    Stack trace: 
        #0 /home/.sites/122/site793/web/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_Scheduler.php(469): Watchfulli\\XClonerCore\\Xcloner_Scheduler->_xcloner_scheduler_callback(\'2\', Array, \'\') 
        #1 /home/.sites/122/site793/web/wp-includes/class-wp-hook.php(307): Watchfulli\\XClonerCore\\Xcloner_Scheduler->xcloner_scheduler_callback(\'2\') 
        #2 /home/.sites/122/site793/web/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(\'\', Array) 
        #3 /home/.sites/122/site793/web/wp-includes/plugin.php(524): WP_Hook->do_action(Array) 
        #4 /home/.sites/122/site793/web/wp-cron.php(138): do_action_ref_array(\'xcloner_schedul...\', Array) 
        #5 {main}   thrown',   'file' => '/home/.sites/122/site793/web/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_Scheduler.php',   'line' => 272, 
) [] []

I managed to get it running by changed the code in lib/Xcloner_Scheduler.php line 272 to:
$xcloner = new Xcloner();

Originally it was:
$xcloner = new \XCloner();

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer