• Resolved liamdempsey

    (@liamdempsey)


    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

    (@liamdempsey)

    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 4 years, 2 months ago by liamdempsey.
    Plugin Support jaysupport

    (@jaysupport)

    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 4 years, 2 months ago by jaysupport.
    Thread Starter liamdempsey

    (@liamdempsey)

    Hi @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

    (@liamdempsey)

    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.