Old 07-08-2007   #1 (permalink)
Registered User
 
Join Date: Jul 2007
Posts: 1

Fatal Error Message

Does anyone know what cause this error mess in Autorank PHP (2.02):

Error Division by zero
From /home/bgm/public_html/php/autorank/arphp.php line 302

Line 302 looks like this in the arphp.php:
if( $tpl['OVERALL_RANK'] % $GLOBALS['COMPACT_BREAK'] == 0 && $tpl['OVERALL_RANK'] != $GLOBALS['COMPACT_SITES'] )

It all started when my host upgrade the PHP software on the server to 4.47.

The toplist it self works if I disable the compactlist. So someting is wrong there.

The only thing I could think of was the registrar_globals but its enable and it didnt solve the problem.

It must be some setting in PHP but what?

Thanks in advance
Erro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-08-2007   #2 (permalink)
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,026

Send a message via MSN to notjustgraphics
try chaning the code to this:

PHP Code:
if (($tpl['OVERALL_RANK'] % $GLOBALS['COMPACT_BREAK'] == 0) && ($tpl['OVERALL_RANK'] != $GLOBALS['COMPACT_SITES'])) { 
I suspect your problem is a nesting error... adding the ('s as above should help.

Mike.
__________________
notjustgraphics is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 08:27 AM.
Content Relevant URLs by vBSEO 3.2.0 RC7

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT