Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

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

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: 2583
Location: Pittsburgh, Pennsylvania

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

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. 
View user's profile Send private message
Doulos







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

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







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

Mainfile.php identical.
 
Palbin







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

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

/html/includes/nsngr_func.php
 
Doulos







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

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







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

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
Worker



Joined: Jul 06, 2005
Posts: 172

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

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 
View user's profile Send private message Visit poster's website
Palbin







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

I don't understand do you have a problem?
 
sak







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

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: 593
Location: Santiago, Dominican Republic

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

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

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella
http://about.me/jestrella04 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©