Title: Error while auto-updating with WP Cli
Last modified: October 14, 2022

---

# Error while auto-updating with WP Cli

 *  [cvh-design](https://wordpress.org/support/users/cvh-design/)
 * (@cvh-design)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-while-auto-updating-with-wp-cli/)
 * Hi Phil,
    the Plugin throws an fatal error when i try to update it with wp_cli.
 * We are using “/bin/bash” with a file containing “wp –path=$site plugin update–
   all” that utilizes the wp_cli to update all the plugins.
    In this updating process
   AgeGate throws a fatal error which stops the execution of the update.
 * The thrown error:
    Parse error: syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW),
   expecting ‘,’ or ‘)’ in …/wp-content/plugins/age-gate/vendor/agegate/common/src/
   Admin/AbstractController.php on line 73
 * I already had a quick look at the code but everything seemed fine, maybe changing
   this to a normal anonymous function will work.
 * I hope you can fix this.
 * Thanks,
    Elko Keil from CvH Design

The topic ‘Error while auto-updating with WP Cli’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 0 replies
 * 0 participants
 * Last reply from: [cvh-design](https://wordpress.org/support/users/cvh-design/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/error-while-auto-updating-with-wp-cli/)
 * Status: not resolved