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?