Apache PHP warning

Found a bug? Tell us!!
Post Reply
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

Apache PHP warning

Post by JACOBKELL »

Not sure is this bug,but this error in error_log keep repeating.
This is what i get:
[08-Dec-2008 10:06:40] PHP Warning: Division by zero in /home/honr/public_html/bundled-libs/Smarty/libs/plugins/function.math.php(65) : eval()'d code on line 1
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Apache PHP warning

Post by garvinhicking »

Hi!

Could you try this: open your include/functions_entries.inc.php file, search for the function "serendipity_printArchives" (at around line 1483) and change:

Code: Select all

$max  = 0;
to

Code: Select all

$max  = 1;
and tell us if that helps?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply