Title: PHP Warning with WP-CLI
Last modified: August 21, 2016

---

# PHP Warning with WP-CLI

 *  Resolved [jruizcantero](https://wordpress.org/support/users/jruizcantero/)
 * (@jruizcantero)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-with-wp-cli/)
 * Hi,
    Suggestion for next plugin version:
 * > PHP Warning: wp backwpup: addCommand is deprecated. use WP_CLI::add_command()
   > instead. in /root/.wp-cli/vendor/wp-cli/wp-cli/php/class-wp-cli.php on line
   > 280
 * Best regards
 * [http://wordpress.org/plugins/backwpup/](http://wordpress.org/plugins/backwpup/)

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

 *  Plugin Author [Robert Windisch](https://wordpress.org/support/users/nullbyte/)
 * (@nullbyte)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-with-wp-cli/#post-4452905)
 * Hi jruizcantero,
 * thank you for the hint. We will fix this message in one of the next versions 
   of BackWPup.
 * regards,
    Robert
 *  [Daan Kortenbach](https://wordpress.org/support/users/daankortenbach/)
 * (@daankortenbach)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-with-wp-cli/#post-4453055)
 * What is the status of this? Have a pressing need 😉
 * Anyway I can help out?
 *  [Daan Kortenbach](https://wordpress.org/support/users/daankortenbach/)
 * (@daankortenbach)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-with-wp-cli/#post-4453058)
 * Here are the fixes for:
    1) deprecated warning 2) Error: Parameter errors: unknown–
   jobid parameter
 * 1) backwpup.php:
 *     ```
       102 - WP_CLI::addCommand( 'backwpup', 'BackWPup_WP_CLI' );
       102 + WP_CLI::add_command( 'backwpup', 'BackWPup_WP_CLI' );
       ```
   
 * 2) inc/class-wp-cli.php:
 *     ```
       12 - * @synopsis start  --jobid=<ID of job to start>
       12 + * @synopsis start  --jobid=<ID>
       ```
   
 *  Thread Starter [jruizcantero](https://wordpress.org/support/users/jruizcantero/)
 * (@jruizcantero)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-warning-with-wp-cli/#post-4453127)
 * New version solve it.
 * Regards.

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

The topic ‘PHP Warning with WP-CLI’ is closed to new replies.

 * ![](https://ps.w.org/backwpup/assets/icon-256x256.png?rev=3236141)
 * [BackWPup – WordPress Backup & Restore Plugin](https://wordpress.org/plugins/backwpup/)
 * [Support Threads](https://wordpress.org/support/plugin/backwpup/)
 * [Active Topics](https://wordpress.org/support/plugin/backwpup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/backwpup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/backwpup/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 4 replies
 * 3 participants
 * Last reply from: [jruizcantero](https://wordpress.org/support/users/jruizcantero/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/php-warning-with-wp-cli/#post-4453127)
 * Status: resolved