WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
OAuth error in 2.1 breaks main settings page (5 posts)

  1. Brade
    Member
    Posted 7 months ago #

    After upgrading to 2.1 the main settings page here is just a white page: /wp-admin/admin.php?page=all-in-one-seo-pack/aioseop_class.php

    Looking at logs, here is the error message:
    PHP Fatal error: Cannot redeclare class OAuthException in /usr/share/php/OAuth.php on line 8

    I guess this is b/c the update comes with the OAuth library but doesn't first check that it's already installed on the server? Hopefully it's a quick fix for the developer.

    http://wordpress.org/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    Brade,

    This is already fixed in 2.1, actually; you can verify that here. All in One SEO Pack does check to see if these classes are already declared, and if they are, it doesn't redeclare them. I'd guess that you have other code in your plugin or theme that isn't as well-behaved, and is including another OAuth.php library later on, after All in One SEO Pack has already loaded?

  3. Brade
    Member
    Posted 7 months ago #

    Very bizarre... I did a case-insensitive search for "oauth" within my site, and there are no other plugins that directly call an OAuth function. I also verified that your code works correctly, and it is not mistakenly re-declaring the class in your module.

    Somehow the existing OAuth module on my server is triggering the error (as can be seen from the file location in the Fatal Error). Since I can't stack trace fatal errors, I have no idea what's going on. I even tried disabling all other plugins. But I do know that only the "general settings" page triggers the error ("performance" and "feature manager" show up fine).

  4. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    Brade,

    For debugging purposes, you could try putting a call to debug_print_backtrace() (or something more subtle) in that file to see where it's getting included.

  5. Brade
    Member
    Posted 7 months ago #

    Grrr, too hard to figure out right now! =(

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.