WordPress.org

Ready to get started?Download WordPress

Forums

WP Bitly
[resolved] [Plugin: WP Bit.ly] Fatal error after upgrading to 0.2.5 (5 posts)

  1. Rodrigo M
    Member
    Posted 4 years ago #

    I've ugraded to the latest version and when I try to reactivate I'm getting a fatal error:
    Fatal error: Cannot redeclare pr() in /var/www/vhosts/pandeblog.org/httpdocs/wp-content/plugins/wp-bitly/wp-bitly.php on line 290

    http://wordpress.org/extend/plugins/wp-bitly/

  2. Mark Waterous
    Member
    Plugin Author

    Posted 4 years ago #

    That's interesting, are you running it alongside CakePHP by any chance? Cake is the only other place, and actually where I got the idea for my pr(), prd() and vrd() debug functions.

    That aside, I apologize for leaving that code in there without wrapping it in function_exists() calls, but if you open the wp-bitly.php main file and scroll down you will see a comment that says // DEBUG, TO BE REMOVED - delete this and everything below it and the plugin should activate for you.

  3. Rodrigo M
    Member
    Posted 4 years ago #

    Great Mark!!
    Is working now!
    Great Plugin.. .

  4. elraidor
    Member
    Posted 3 years ago #

    Hi

    I also have a problem - WordPress 2.9.2 and version 0.2.6 of the plugin
    When I try to activate I get the message

    Plugin could not be activated because it triggered a fatal error.

    Any idea how I can get more debug info for you?

    Regards

    Elraidor

  5. Mark Waterous
    Member
    Plugin Author

    Posted 3 years ago #

    I just took a quick look - I added a deprecated.php file to maintain support for pre-3.0 versions of WordPress but I fudged one of the methods and I'm almost positive this is causing your issue. Is there any reason you haven't upgraded your copy of WordPress? It's known to work on 3.0 quite well according to other reports.

    PS: Apologies for the slow response. It's been a hectic week and I'm traveling a lot right now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags