WordPress.org

Forums

WP to Twitter
[resolved] Fatal error: Call to a member function add_cap() on a non-object (16 posts)

  1. NathanBlack
    Member
    Posted 2 years ago #

    Just upgraded to the latest version of wp-to-twitter and got the following error message:

    Fatal error: Call to a member function add_cap() on a non-object in /my/site/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 220

    And now I can't access any of my admin settings. Trying to downgrade now, wish me luck.

    http://wordpress.org/extend/plugins/wp-to-twitter/

  2. melissasaywhat
    Member
    Posted 2 years ago #

    Did you also download Jetpack?

  3. melissasaywhat
    Member
    Posted 2 years ago #

    I went to my GoDaddy hosting account, FTP file manager and deleted the plugins Jetpack and WP to Twitter. That fixed the problem! Now I have to figure out which one jacked it up.

  4. NathanBlack
    Member
    Posted 2 years ago #

    Ah! I did just upgrade both WP to Twitter and Jetpack.

    I just replaced WPtoTwitter with 2.3.14 and now the admin section loads, could be a conflict there. Hard to say.

  5. vaughany
    Member
    Posted 2 years ago #

    Just had the same problem NathanBlack reported:

    Fatal error: Call to a member function add_cap() on a non-object in /home/s27vaug/public_html/sgps/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 220.

    This was an automatic upgrade to the latest version (2.4.1).

    A quick fix'd be lovely but for now if someone can asssist with temporary plugin removal that'd be ace!!

  6. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    That was WP to Twitter - not sure xactly why that happened, but I'm making a change which should adjust for it.

  7. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    That was WP to Twitter - but I'm making a change which should adjust for it. The upgrade routine had a bug.

  8. NathanBlack
    Member
    Posted 2 years ago #

    Vaughany, go in via FTP, delete the plugin and reupload the previous version:

    http://downloads.wordpress.org/plugin/wp-to-twitter.2.3.14.zip

  9. vaughany
    Member
    Posted 2 years ago #

    @Nathan, ta. :)

  10. Michael Albers
    Member
    Posted 2 years ago #

    For me too the same problem. Also auto update.

    @vaughany: if you have access to the database with phpadmin or in whatever way, you can deactivate the plugin like this:
    Go to the wp_options table, find the row with option name active_plugins, delete everything in it (i tried just the seperate plugin entry, but it removed everything anyway), save the record.

    All plugins are deactivated, you can login into the backend again and activate plugins except wp-to-twitter.
    Except for this plugin everything should be working fine again.

  11. Michael Albers
    Member
    Posted 2 years ago #

    Someone beat me to my answer. Well, hope some still can use it :)

    Thanks @NathanBlack, cause now i have a link to the previous version served right here.

  12. vaughany
    Member
    Posted 2 years ago #

    Thanks, Michael. I've only ever used WordPress as a user, not as a developer, so that knowledge will be useful for the future. :)

  13. vaughany
    Member
    Posted 2 years ago #

    @Joe, thanks for the speedy resolution. Just reinstalled an older version and upgraded it automatically to 2.4.2 and it worked perfectly.

    Thank you.

    -Vaughany.

  14. larryloo
    Member
    Posted 2 years ago #

    Oh thank you Jebus. I was about to start crying.

  15. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you all for your patience!

  16. NathanBlack
    Member
    Posted 2 years ago #

    2.4.2 works like a charm, thanks Joe!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic