skip to Main Content
WP CLI Error Running BackupBuddy Backup

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.

Jasper Frumau

Jasper has been working with web frameworks and applications such as Laravel, Magento and his favorite CMS WordPress including Roots Trellis and Sage for more than a decade. He helps customers with web design and online marketing. Services provided are web design, ecommerce, SEO, content marketing. When Jasper is not coding, marketing a website, reading about the web or dreaming the internet of things he plays with his son, travels or run a few blocks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top