Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak naprawić błąd: Warning: Division by zero in /home/..........
rafalsr
post
Post #1





Grupa: Zarejestrowani
Postów: 41
Pomógł: 0
Dołączył: 6.07.2007

Ostrzeżenie: (0%)
-----


Witam,
mam taki maly problem. Na swojej stronie wgralem cutenews i jest niby wszystko ok, ale jak wchodze w komentrze to wyskakuje mi pod nimi taki blad:

Warning: Division by zero in /home/rclens/domains/rclens.pl/public_html/cutenews/inc/functions.inc.php on line 259

Warning: Division by zero in /home/rclens/domains/rclens.pl/public_html/cutenews/inc/functions.inc.php on line 259

Warning: Division by zero in /home/rclens/domains/rclens.pl/public_html/cutenews/inc/functions.inc.php on line 259

Warning: Division by zero in /home/rclens/domains/rclens.pl/public_html/cutenews/inc/functions.inc.php on line 259

Warning: Division by zero in /home/rclens/domains/rclens.pl/public_html/cutenews/inc/functions.inc.php on line 259

Warning: Division by zero in /home/rclens/domains/rclens.pl/public_html/cutenews/inc/functions.inc.php on line 259

Warning: Division by zero in /home/rclens/domains/rclens.pl/public_html/cutenews/inc/functions.inc.php on line 259

Warning: Division by zero in /home/rclens/domains/rclens.pl/public_html/cutenews/inc/functions.inc.php on line 259


Moja strona to www.rclens.pl, a oto link do tej strony z bledem: www.rclens.pl/index2.php?subaction=showcomments&id=1183842779&archive=&start_from=&ucat=&

Czekam na odp... niby ten blad nie uniemozliwa dodawania koentarzy, ale szpeci strony.

Pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
domis86
post
Post #2





Grupa: Zarejestrowani
Postów: 255
Pomógł: 5
Dołączył: 20.03.2007
Skąd: Kraków

Ostrzeżenie: (30%)
XX---


% - to jest dzielenie modulo
$a % $b <- $b nie moze byc 0

takze przed tą linijką:
if($i%$break_location == 0 and $break_location) {

dodaj taką linijke:
if($break_location != 0 and $break_location!=FALSE)


EDIT: bez klamry (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Ten post edytował domis86 8.07.2007, 21:10:02
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 18.10.2025 - 13:12