PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Mon Oct 05, 2009 2:54 am Reply with quote Back to top

I just upgraded one site to 2.40 from 2.30.02 and there is a problem when I try to edit groups. I get the following error message:
Quote:
It appears that NSN Groups has not been configured correctly. The most common cause is that you either have an error in the syntax that is including includes/nsngr_func.php FROM your mainfile.php, or you have not added the NSN Groups code to your mainfile.php. This code must be placed immediately before the closing ?> tag in mainfile.php. So your first 7 lines in mainfile.php must look like this:

if(defined('FORUM_ADMIN')) {
include_once("../../../includes/nsngr_func.php");
} elseif(defined('INSIDE_MOD')) {
include_once("../../includes/nsngr_func.php");
} else {
include_once("includes/nsngr_func.php");
}
?>

If I add that code to the end of mainfile.php I get a completely white page with this error:
Quote:
Fatal error: Cannot redeclare in_group() (previously declared in /home/me/public_html/modules/Groups/includes/nsngr_func.php:67) in /home/me/public_html/includes/nsngr_func.php on line 80


This did not happen with the test site.

NOTE: The first error says this "So your first 7 lines in mainfile.php must look like this:" Shouldn't it say LAST 7 lines?


Last edited by Doulos on Tue Oct 06, 2009 12:09 pm; edited 1 time in total
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Oct 05, 2009 7:43 am Reply with quote Back to top

Don't follow that message. It is old and needs to be removed (thought it was).

This file should exists (/home/me/public_html/includes/nsngr_func.php) let alone be included. Are you sure you replaced all the files, namely mainfile.php?
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Mon Oct 05, 2009 2:28 pm Reply with quote Back to top

I uploaded all files, and a few failed, but I reloaded them. I have been having trouble with FTP, though. Mainfile.php shows the same size but I will compare mainfile.php to the 2.4 release file.

Thanks
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Mon Oct 05, 2009 2:33 pm Reply with quote Back to top

Mainfile.php identical.
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Tue Oct 06, 2009 5:22 am Reply with quote Back to top

Delete this file. Then tell me what the error is.

/html/includes/nsngr_func.php
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Tue Oct 06, 2009 12:01 pm Reply with quote Back to top

Hmm, I thought I had already checked and found that file did not exist, but obviously I was wrong.

After deletion of that file -- same result as original post.

Also, I just noticed that the "Edit Groups" icon is in both the Main admin area, and in the Modules area. My test site only has it in the Modules section. Same error no matter which one I click.
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Tue Oct 06, 2009 12:07 pm Reply with quote Back to top

Ok, I got it working. There was an old file called "editgroups" and a new file uploaded from the 2.4 pkg. I deleted the editgroups.php file and now Groups works as expected.

Thanks for your help.
View user's profile Send private message
sak
Worker
Worker


Joined: Jul 06, 2005
Posts: 167

PostPosted: Wed Oct 07, 2009 11:00 pm Reply with quote Back to top

Confirmed what Doulos said:

Quote:
/html/admin/modules/nsngroups/ - this entire directory can be removed if you upgraded

/html/admin/modules/editgroups.php - delete if you upgraded

/html/includes/nsngr_func.php - doesn't appear to be needed anymore either


Any other needless files that can be removed??


Last edited by sak on Thu Oct 08, 2009 9:31 am; edited 1 time in total
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Thu Oct 08, 2009 4:47 am Reply with quote Back to top

I don't understand do you have a problem?
View user's profile Send private message
sak
Worker
Worker


Joined: Jul 06, 2005
Posts: 167

PostPosted: Thu Oct 08, 2009 9:30 am Reply with quote Back to top

My groups admin was not working either after upgrading from 2.30.02 to 2.4. I did the three things listed in my post above and it works fine now.
View user's profile Send private message Visit poster's website
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Thu Oct 08, 2009 2:29 pm Reply with quote Back to top

yo have to also remove...

/root/admin/links/links.editgroups.php
/root/admin/case/editgroups.php

Am missing another one i just can't remember... Confused
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum