Author |
Message |
Doulos
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/181553f049aa2a5924cda.jpg)
Joined: Jun 06, 2005
Posts: 732
|
Posted:
Mon Oct 05, 2009 2:54 am |
|
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 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Mon Oct 05, 2009 7:43 am |
|
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? |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Doulos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 05, 2009 2:28 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Doulos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 05, 2009 2:33 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 06, 2009 5:22 am |
|
Delete this file. Then tell me what the error is.
/html/includes/nsngr_func.php |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Doulos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 06, 2009 12:01 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Doulos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 06, 2009 12:07 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sak
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/0cddf1ff43222768be81b.jpg)
Joined: Jul 06, 2005
Posts: 172
|
Posted:
Wed Oct 07, 2009 11:00 pm |
|
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?? |
_________________ www.ICarry.org
www.GunOwnersFellowship.com
Last edited by sak on Thu Oct 08, 2009 9:31 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Oct 08, 2009 4:47 am |
|
I don't understand do you have a problem? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sak
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Oct 08, 2009 9:30 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jestrella
Moderator
![](modules/Forums/images/avatars/bea6a62d4db43637aa29d.jpg)
Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic
|
Posted:
Thu Oct 08, 2009 2:29 pm |
|
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](modules/Forums/images/smiles/icon_confused.gif) |
_________________ "For those whom have not reach the sky... Every mountain seems high"
Best Regards
Jonathan Estrella
http://about.me/jestrella04 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|