• Resolved ljkeashly

    (@ljkeashly)


    Hi,

    I have been using Xcloner for a number of months now and it has been working properly. But since the latest WordPress update I am not getting the following message in my external cron job:

    Fatal error: Uncaught Error: Class “XCloner\WP_CLI” not found in /home/customer/www/xxx/public_html/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php:50 Stack trace: #0 /home/customer/www/xxx/public_html/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php(43): XCloner\Watchfulli\XClonerCore\Xcloner_cli->do_wp_cli_execution() #1 /home/customer/www/xxx/public_html/wp-content/plugins/xcloner-backup-and-restore/xcloner.php(43): XCloner\Watchfulli\XClonerCore\Xcloner_cli->run() #2 /home/customer/www/xxx/public_html/wp-settings.php(545): include_once(‘/home/customer/…’) #3 /usr/local/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1375): require(‘/home/customer/…’) #4 /usr/local/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1294): WP_CLI\Runner->load_wordpress() #5 /usr/local/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #6 /usr/local/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState)) #7 /usr/local/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #8 /usr/local/wp-cli/wp-cli.php(13): include(‘/usr/local/wp-c…’) #9 {main} thrown in /home/customer/www/xxx/public_html/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php on line 50

    I have tried clearing the caches. I have deactivated and re-install the XCloner plugin but am still getting this message in my cron job output.

    Any idea what else to try to fix this issue?

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • Same error on one of my instances too.

    Plugin Support jimiero

    (@jimiero)

    Hello,

    Can you please check you have latest XCloner version installed, and also if you have Watchful Client installed make sure you update it to latest version also.

    Regards

    I have both plugins updated to the latest version.

    Plugin Support jimiero

    (@jimiero)

    Hello,

    Can you provide me the steps to reproduce your issue?

    Regards

    Thread Starter ljkeashly

    (@ljkeashly)

    Hi,

    I have Xcloner 4.8.0 and Watchful 2.0.7.

    Stop the WordPress automatic cron jobs and make an external cron job for WordPress. This is the external cron job code I am using:

    cd /home/customer/www/xxx/public_html; wp cron event run –due-now

    I run it twice a day.

    Thank you

    Same for me:

    # wp cron event run –due-now

    PHP Fatal error: Uncaught Error: Class "XCloner\WP_CLI" not found in /var/www/vhosts/mysite.de/blog.mysite.de/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php:50
    Stack trace:
    #0 /var/www/vhosts/mysite.de/blog.mysite.de/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php(43): XCloner\Watchfulli\XClonerCore\Xcloner_cli->do_wp_cli_execution()
    #1 /var/www/vhosts/mysite.de/blog.mysite.de/wp-content/plugins/xcloner-backup-and-restore/xcloner.php(43): XCloner\Watchfulli\XClonerCore\Xcloner_cli->run()
    #2 /var/www/vhosts/mysite.de/blog.mysite.de/wp-settings.php(545): include_once('...')
    #3 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1394): require('...')
    #4 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1313): WP_CLI\Runner->load_wordpress()
    #5 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #6 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process()
    #7 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
    #8 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/boot-fs.php(17): require_once('...')
    #9 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wpt-wp-cli.php(28): require_once('...')
    #10 {main}
    thrown in /var/www/vhosts/mysite.de/blog.mysite.de/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php on line 50
    Fatal error: Uncaught Error: Class "XCloner\WP_CLI" not found in /var/www/vhosts/mysite.de/blog.mysite.de/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php:50
    Stack trace:
    #0 /var/www/vhosts/mysite.de/blog.mysite.de/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php(43): XCloner\Watchfulli\XClonerCore\Xcloner_cli->do_wp_cli_execution()
    #1 /var/www/vhosts/mysite.de/blog.mysite.de/wp-content/plugins/xcloner-backup-and-restore/xcloner.php(43): XCloner\Watchfulli\XClonerCore\Xcloner_cli->run()
    #2 /var/www/vhosts/mysite.de/blog.mysite.de/wp-settings.php(545): include_once('...')
    #3 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1394): require('...')
    #4 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1313): WP_CLI\Runner->load_wordpress()
    #5 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #6 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process()
    #7 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
    #8 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/boot-fs.php(17): require_once('...')
    #9 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wpt-wp-cli.php(28): require_once('...')
    #10 {main}
    thrown in /var/www/vhosts/mysite.de/blog.mysite.de/wp-content/plugins/xcloner-backup-and-restore/lib/Xcloner_cli.php on line 50
    Error: Es gab einen kritischen Fehler auf deiner Website.Erfahre mehr über die Problembehandlung in WordPress. Es gab einen kritischen Fehler auf deiner Website.

    < exit code: 1 >
    #

    Löschen

    There is a patched version available on Github, if s.o. needs a fix now. I think they will release the fix soon 🙂

    Edit: removed link, updated version is released.

    Plugin Support jimiero

    (@jimiero)

    Hello,

    Sorry for the inconvenience, yes we have released a new XCloner version addressing this issue.

    Thread Starter ljkeashly

    (@ljkeashly)

    Hi,

    Thank you for releasing the new version. This has fixed the errors on my sites.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Fatal error: Uncaught Error: Class “XCloner\WP_CLI” not found’ is closed to new replies.