• Resolved MarioKnight

    (@marioknight)


    I use WP-CLI to help manage WordPress sites server wide, however lately when I am running scripts, sites that use this plugin receive the following error instead of having the commands run:

    Fatal error: Call to a member function getConfigs() on a non-object in /home/XXXXXXXX/public_html/wp-content/plugins/addthis/addthis_addjs_new.php on line 57

    Thankfully, this doesn’t appear on the live sites, just when attempting to run WP-CLI commands in a terminal. Please let me know what can be done about this, and if you need any additional information from my end. Thank you.

    https://wordpress.org/plugins/addthis/

Viewing 15 replies - 1 through 15 (of 20 total)
  • I’m having exactly the same issue.
    I am running WP 4.4 and using wp-cli to switch themes.

    Same problem here!

    Thread Starter MarioKnight

    (@marioknight)

    For your 4.4 site(s), is it also just within WP-CLI? I want to be sure before updating said sites to 4.4 which I would have done already before seeing this.

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hello.

    What version of wp-cli are you using?

    There’s an incompatibility with older versions of wp-cli and WordPress 4.4. That might be causing the issue.

    http://wp-cli.org/blog/versions-0.21.1-and-0.20.4.html

    Thanks,
    Julka

    I use 21.1 and created a Github issue about it, which was merged and closed.

    Thread Starter MarioKnight

    (@marioknight)

    I am using WP-CLI 0.21.1. Interestingly, this error didn’t pop up until I updated to the newer WP-CLI in prep for the 4.4 core update.

    Same here. Updated wp-cli to 0.21.1 because of WP4.4 and now this error pops up in regard to the Addthiss plugin.

    Same as everyone else. I’m running the latest wp-cli from github; and I don’t have this problem with other 4.4 sites.

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hello all.

    Thanks for letting us know about your issues with wp-cli.

    This issue was introduced by wp-cli 0.21.0. We have an enhancement to our plugin going through quality assurance now that will stop these errors from happening with wp-cli 0.21.0. We expect to release this change early next week. If you’d like a copy of the new version ahead of time, feel free to reach out to our support team at help@addthis.com.

    Another alternative is to downgrade to wp-cli 0.20.4. This issue is not present with that version of wp-cli.

    Thanks,
    Julka

    Hi Julka,

    Do you know why this would be affecting me then? I’m using Odin Plesk.

    Bob

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi Mangoma.

    I’m not familiar with Plesk, but from some quick googling it looks like Plesk uses wp-cli for its “WordPress Toolkit”.

    Julka in addthis/addthis_addjs_new.php
    i get this problem sow i make this change:

    if( is_objetc( $addThisConfigs) ) $this->_options = $addThisConfigs->getConfigs();

    can you commit this? or make fix for the problem?

    best regards

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi mesaquesoares.

    Thanks reaching out.

    That change will only solve the problem with wp-cli 0.21.0 under some circumstances. We have an enhancement to our plugin going through quality assurance now that will stop these errors from happening with wp-cli 0.21.0. We expect to release this change early next week. If you’d like a copy of the new version ahead of time, feel free to reach out to our support team at help@addthis.com.

    Thanks,
    Julka

    Hey Julka,

    thanks for looking into this and working on a fix!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Fatal error: Call to a member function getConfigs() on a non-object’ is closed to new replies.