Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Groups
Author Message
Nomad
Client



Joined: Jan 21, 2006
Posts: 87
Location: Arizona

PostPosted: Thu Jul 27, 2006 12:34 pm Reply with quote

I was tinkering with WS subscriptions adding to groups,

when all of a sudden, when I went to check my nsn groups, i got this error
Warning: Division by zero in /home/mysite/public_html/includes/nsngr_func.php on line 140 .....it reports no groups in database, or users, but that is not true.

My last action was to use ws subscriptions to set up a trial subscription to a group. This worked, the member was added. When I went into nsn groups to remove the user from the group, i couldnt access it, and got that error.

Now, when I check the function, I get this line:
$pagesint = ($totalselected / $perpage);

any hints.....where is the $perpage defined? or what could have went wrong?
is there a database table that i need to check or reset?

_________________
Nomad!~!

Last edited by Nomad on Thu Jul 27, 2006 7:08 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website AIM Address
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Thu Jul 27, 2006 1:43 pm Reply with quote

im not saying this is your fix but has to do with the same line.... [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6433

PostPosted: Thu Jul 27, 2006 1:45 pm Reply with quote

$perpage appears to be a configuration option for the NSN Groups module.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
Nomad







PostPosted: Thu Jul 27, 2006 7:07 pm Reply with quote

Thanks guys. Here is what I found:

I read the post Hitwalker gave me and I try the suggested fix. I put a @ in front of ($totalselected / $perpage) so that it reads $pagesint = @($totalselected / $perpage). This got rid of the division by zero error, but nsn groups wouldnt let me view groups or view users. It said that there wasnt any in the database.

Next I checked the configuration options as suggested by kguske. Here I was able to fix the problem, and duplicate the problem.

There are 3 options in the NSN Groups configuration menu. If you change the Send Expiring Notice without setting the # items in lists field (i.e. leave it blank & dont touch it) then you get this error. To fix the error, you have to just go back and choose an option for # items in lists.

I think you need to mark this as a bug. See if you can duplicate the problem


Thank you guys for you help...I feel enlightened Groovy
 
kguske







PostPosted: Thu Jul 27, 2006 7:11 pm Reply with quote

Thanks for the details.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Jul 28, 2006 7:02 am Reply with quote

Quote:

I think you need to mark this as a bug. See if you can duplicate the problem


I have captured this as a potential bug. Given where we are at in the release cycle, it may not get reviewed for RavenNuke 2.10.00.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
montego







PostPosted: Sat Jul 29, 2006 6:37 pm Reply with quote

I just fixed this in 2.10.00. Turns out, under admin/modules/nsngroups, find within the files all references to the array $gr_config and change it to $grconfig.

I believe what may have happened is when you save the config and then come back into it, you will not see your previously saved values. If you accidentally save at this point, without changing the values on the page, the row limit gets to be zero.
 
kguske







PostPosted: Sat Jul 29, 2006 6:41 pm Reply with quote

The needle in the haystack, so to speak. Well done, montego!
 
Nomad







PostPosted: Sun Jul 30, 2006 1:18 am Reply with quote

Wave
It works perfect now. You The Man!
 
leo51
Worker
Worker



Joined: Sep 09, 2004
Posts: 106
Location: Canada

PostPosted: Thu Aug 03, 2006 9:22 pm Reply with quote

montego wrote:
I just fixed this in 2.10.00. Turns out, under admin/modules/nsngroups, find within the files all references to the array $gr_config and change it to $grconfig.


Thanks for this fix. End up on this thread because I was told by "kguske" to do a search for division by zero erro. However, could you please guide me how exactly do I set the Date Display Format: I am not too familar with these things: as this ('l dS \of F Y h:i:s A') or l dS \of F Y h:i:s A

I found this "// Prints something like: Monday 15th of August 2005 03:12:46 PM
echo date('l dS \of F Y h:i:s A');" and would be able to do it in a page but not sure how to do it in this case.
 
View user's profile Send private message Visit poster's website MSN Messenger
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Fri Aug 04, 2006 11:56 pm Reply with quote

Im a little confused as to exactly your question.

If youd like to change the format throughout the site, Its a language edit, other then that, I think a more specific approach may be helpfull.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
montego







PostPosted: Sat Aug 05, 2006 9:05 am Reply with quote

leo51, I would look here for the endless combinations of potential date formatting options:
[ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Groups

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 ©