The MU forums have moved to WordPress.org

WPMU 2.6.2 + NextGen Gallery + Plugin Commander (3 posts)

  1. VentureMaker
    Member
    Posted 15 years ago #

    Hey, people

    Got a problem with subj.
    I have installed WPMU 2.6.2 and I've setup NextGen Gallery.

    I use Plugin Commander to manage plugins from /wp-content/plugins
    This means I only have Plugin Commander in /wp-content/mu-plugins, all other plugins (including NextGen Gallery) are in /wp-content/plugins.

    I have set NextGen for auto-activation in plugin commander - means that NextGen (and some other plugins) are automatically activated when a new blog is created.

    OK, someone signs up for a new blog, activation email arrives to his mailbox, he clicks on activation link and here's the error that appears:

    Fatal error: Call to undefined function nggallery_install() in blah-blah-blah/wp-content/plugins/nextgen-gallery/nggallery.php on line 215

    Damn it! :)
    Alright, I edited nggallery.php:

    // add_action('activate_' . NGGFOLDER.'/nggallery.php', 'ngg_install');
    // WP recommended function, not used until 2.2.3
    register_activation_hook(NGGFOLDER.'/nggallery.php','ngg_install');
    register_deactivation_hook(NGGFOLDER.'/nggallery.php','ngg_deinstall');
    require_once("ngginstall.php");
    // init tables in wp-database if plugin is activated
    function ngg_install() {
    // Check for tables
    nggallery_install();
    }

    Now the error went away :)

    BUT! When I go to the backend on newly created blog - there're no options for NextGen. Menu item 'Gallery' is there, but only Setup section is available with 'Reset to defaults' and 'Uninstall' buttons.

    BTW, 'Reset to defaults' won't to anything good :(

    Can anyone tell me if there exists a workaround?

  2. VentureMaker
    Member
    Posted 15 years ago #

    Also today this problem also appeared for me:

    http://mu.wordpress.org/forums/topic.php?id=9798

  3. VentureMaker
    Member
    Posted 15 years ago #

    Bumping :)

About this Topic

  • Started 15 years ago by VentureMaker
  • Latest reply from VentureMaker