PHP Error Any Ideas to fix this?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   PHP Error Any Ideas to fix this?
50mb
CZ Newbie
50mb has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 26, 2005
0.00 posts per day
Posts: 13
Points: 656
   
I recieve this error in the downloads under the catagories

Warning: Division by zero in /home/plasma/public_html/modules/Downloads/index.php on line 1006


this is the code on that line
$downloadpagesint = ($totalselecteddownloads / $ns_dl_num_per_page);

i tried everything to fix it any ideas how to fix it be really appreciated. thanks


Back to top Reply with quote
#2   re: PHP Error Any Ideas to fix this?
pepcfreakx
CZ Newbie
 Codezwiz Site Donator
pepcfreakx has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Nov 22, 2005
0.00 posts per day
Posts: 20
Points: 2,026
   
which file is that might be able to help if i knew!



Back to top Reply with quote
#3   re: PHP Error Any Ideas to fix this?
50mb
CZ Newbie
50mb has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 26, 2005
0.00 posts per day
Posts: 13
Points: 656
   
its in the platinum nuke system, under modules/downloads folder



Back to top Reply with quote
#4   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Change it too:


$downloadpagesint = @($totalselecteddownloads / $ns_dl_num_per_page);




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: PHP Error Any Ideas to fix this?
50mb
CZ Newbie
50mb has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 26, 2005
0.00 posts per day
Posts: 13
Points: 656
   
thanks for the reply, that fixed the error from showing up, but the downloads arent the catagories are there but the files arent when you enter the catagory, any idea why? thanks in advanced.



Back to top Reply with quote
#6   re: PHP Error Any Ideas to fix this?
50mb
CZ Newbie
50mb has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 26, 2005
0.00 posts per day
Posts: 13
Points: 656
   
I believe it isnt recording to the database, I just tried to add another catagory and it didnt record, what I have to do to fix this problem?



Back to top Reply with quote
#7   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Make sure you have the nuke_downloads_downloads table. Same for the nuke_downloads_categorys or something like that.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum