| Author |
Message |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
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 |
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 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? |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
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 |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Mon Oct 05, 2009 2:33 pm |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Tue Oct 06, 2009 5:22 am |
|
Delete this file. Then tell me what the error is.
/html/includes/nsngr_func.php |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
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. |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
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. |
|
|
|
 |
sak Worker


Joined: Jul 06, 2005 Posts: 167
|
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?? |
Last edited by sak on Thu Oct 08, 2009 9:31 am; edited 1 time in total |
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Thu Oct 08, 2009 4:47 am |
|
I don't understand do you have a problem? |
|
|
|
 |
sak Worker


Joined: Jul 06, 2005 Posts: 167
|
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. |
|
|
|
 |
jestrella Moderator

Joined: Dec 01, 2005 Posts: 535 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...  |
|
|
|
 |
|
|
|
|