WordPress.org

Ready to get started?Download WordPress

Forums

Flickr Photo Album
Unable to activate the plugin since WP 3.0.2 (10 posts)

  1. virgi80
    Member
    Posted 3 years ago #

    Since the 3.0.2 update, I'm unable to activate the plugin. It just stays grey in the extensions page.

    Since I'm a heavy user of this plugin, I had to switch back to 3.0.1 to have it working again...

  2. alpinewiz
    Member
    Posted 3 years ago #

    I am having this exact same issue.

  3. longtailrider
    Member
    Posted 3 years ago #

    same problem here

  4. longtailrider
    Member
    Posted 3 years ago #

    There's a fix over on flickr.

    FILE: tantan-flickr/flickr/class-admin.php

    Change add_action to register_activation_hook function as follows.

    add_action('admin_menu', array(&$this, 'addhooks'));
    //add_action('activate_tantan-flickr/flickr.php', array(&$this, 'activate'));
    register_activation_hook(__FILE__, array(&$this, 'activate'));
    //add_action('deactivate_tantan-flickr/flickr.php', array(&$this, 'deactivate'));
    register_deactivation_hook(__FILE__, array(&$this, 'deactivate'));
    add_action('load-upload.php', array(&$this, 'addPhotosTab'));
  5. woisme
    Member
    Posted 3 years ago #

    Still doesn't help. Still not very clear. Can someone please walk me through it. Thanks.

  6. longtailrider
    Member
    Posted 3 years ago #

    Open up /plugins/tantan-flickr/flickr/class-admin.php

    line 16&17 should look like this:

    add_action('activate_tantan-flickr/flickr.php', array(&$this, 'activate'));
     add_action('deactivate_tantan-flickr/flickr.php', array(&$this, 'deactivate'));

    Change it to this:

    register_activation_hook(__FILE__, array(&$this, 'activate'));
    register_deactivation_hook(__FILE__, array(&$this, 'deactivate'));

    Hope this helps.

  7. woisme
    Member
    Posted 3 years ago #

    Your'e the man. I thought it was that but the term "FILE" made me think I had to put something in there. Stupid me. Thank you and a very Merry Christmas.

  8. virgi80
    Member
    Posted 3 years ago #

    Great, it works! Thank you so much.

  9. MLanxess
    Member
    Posted 3 years ago #

    Great! Thanks for the solution!!!

  10. ryanr14
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic