Support » Plugin: All in One SEO Pack » OAuth error in 2.1 breaks main settings page

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Peter Baylies

    (@pbaylies)

    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?

    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).

    Plugin Contributor Peter Baylies

    (@pbaylies)

    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.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘OAuth error in 2.1 breaks main settings page’ is closed to new replies.