Updating a site using BackupBuddy from the command line using WP CLI I ran into the following error related to the LayerSlider 5.6.2 plugin on WordPress 4.4.1.
WP CLI Error Running BackupBuddy Backup
The WP CLI Error running BackupBuddy Backup on a GoDaddy Ultimate Linux hosted site was:
Fatal error: Class 'WP_Widget' not found in /home/user/public_html/wordpress/wp-content/plugins/LayerSlider/wp/widgets.php on line 6
Code Scan
When you check that line inside the LayerSlider widgets.php file you will see
class LayerSlider_Widget extends WP_Widget {
Here the plugin builds upon the WP_Widget. That is pretty common when you want to create your own custom widget. See the Codex article on the WP_Widget here. But looking through the code all seemed to be loaded well and there were no issues with including classes.
WP CLI Upgrade
On contacting the author of the plugin I was told it was an issue with the WP CLI version I was using. So following the instructions in my own post I upgraded WP CLI to 0.22.0 and then I was able to backup all again properly.