MU Advanced: Issues and Discussion
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • March 16, 2010, 08:01:45 AM
Home Forums Contact Tags FAQ Links News Login Register
* *
Navigation Menu
Search

Random Quotes
Never discourage anyone...who continually makes progress, no matter how slow.
- Plato
Pages: [1]   Go Down
  Print  
Author Topic: WPMU 2.6.2 + NextGen Gallery + Plugin Commander  (Read 416 times)
0 Members and 1 Guest are viewing this topic.
VentureMaker
Newbie
*

Karma: 0
Offline Offline

Posts: 1


View Profile
« on: October 07, 2008, 04:36:59 AM »

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! Smiley
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 Smiley

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 Sad

Can anyone tell me if there exists a workaround?

Also, I'm not sure why, but if I open the activation URL of a newly created blog - it tells me 'Access denied'.
Opening the same URL again works OK.
Logged
Tags: nextgen  nextgen gallery  plugin commander 

Pages: [1]   Go Up
  Print  
 
Jump to:  


Login
 
 
Recent Posts
Recent Topics
No new topics.
Hot Tags
Whos Online
5 Guests, 0 Users
Home Forums Contact Tags FAQ Links News Login Register