Title: PHP error notice when using wp-cli
Last modified: May 1, 2020

---

# PHP error notice when using wp-cli

 *  Resolved [liamdempsey](https://wordpress.org/support/users/liamdempsey/)
 * (@liamdempsey)
 * [6 years ago](https://wordpress.org/support/topic/php-error-notice-when-using-wp-cli/)
 * I have this great plugin running on a client site. At the front end of the site,
   the plugin seems to be running smoothly. Yet, when I use SSH to run wp-cli commands,
   I get the follow error notice in the terminal. The site is hosted by WP Engine.
 * `PHP Fatal error: Uncaught Error: Call to a member function check_permission()
   on null in /sites/clientname/wp-content/plugins/good-reviews-wp/includes/Settings.
   class.php:213`
 * I’m running the most recent version of the plugin.
 * Can you shed any light on how we might address this issue?

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

 *  Thread Starter [liamdempsey](https://wordpress.org/support/users/liamdempsey/)
 * (@liamdempsey)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-error-notice-when-using-wp-cli/#post-13339415)
 * Hi folks – Any chance that you’ve had time to look into this issue? It still 
   persists.
 * When I disable the plugin, the wp-cli error and error notice no longer appear.
 * It would be helpful to know if anyone else is even able to replicate the error.
    -  This reply was modified 5 years, 8 months ago by [liamdempsey](https://wordpress.org/support/users/liamdempsey/).
 *  Plugin Support [jaysupport](https://wordpress.org/support/users/jaysupport/)
 * (@jaysupport)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-error-notice-when-using-wp-cli/#post-13356738)
 * HI Liam,
 * I really don’t know how I never saw your first post. Really sorry about that.
 * It looks like, for some reason, in your case, the function that loads the settings
   panel is/was being called before the plugin finished its normal setup, which 
   means the object that pointed to that didn’t exist. Very strange. Anyway, we 
   added in a check/condition to see if that object exists first. We just released
   an update that includes this.
    -  This reply was modified 5 years, 8 months ago by [jaysupport](https://wordpress.org/support/users/jaysupport/).
 *  Thread Starter [liamdempsey](https://wordpress.org/support/users/liamdempsey/)
 * (@liamdempsey)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-error-notice-when-using-wp-cli/#post-13356816)
 * Hi [@jaysupport](https://wordpress.org/support/users/jaysupport/),
 * Thanks for your reply. Please, no worries on missing my previous ticket. That
   happens. C’est la vie.
 * I appreciate you taking the time to update the plugin. I’ve just uploaded my 
   version of the plugin to 2.0.4. And then I ran a few wp-cli commands. It all 
   worked! Yay!
 * Thanks for the great work to get this working for me. Much appreciated.
 *  Thread Starter [liamdempsey](https://wordpress.org/support/users/liamdempsey/)
 * (@liamdempsey)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-error-notice-when-using-wp-cli/#post-13357823)
 * I missed the “reply and mark as resolved” box. Ticking that with this short comment.

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

The topic ‘PHP error notice when using wp-cli’ is closed to new replies.

 * ![](https://ps.w.org/good-reviews-wp/assets/icon-128x128.png?rev=2205475)
 * [Five Star Restaurant Reviews](https://wordpress.org/plugins/good-reviews-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/good-reviews-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/good-reviews-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/good-reviews-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/good-reviews-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/good-reviews-wp/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [liamdempsey](https://wordpress.org/support/users/liamdempsey/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/php-error-notice-when-using-wp-cli/#post-13357823)
 * Status: resolved