cutenews divide by zero?

All Other Tutorials

Tutorial

Click on thumbnailed images to enlarge

warning YOUR SITE/CUTENEWS/FUNCTION......ERROR LINE 469 something similar to this? well you came to the right place

you press the comment link on you site and you see these warning signs, well to get rid of them first got to you cutenews folder then open up the inc folder, after that find function.inc.php

open your code editor

1. go to line 469 of the code

2. you will see
if($i%$break_location == 0 and $break_location)


3. change this into
if($break_location and $i%$break_location == 0)


4. what i did was switch the first break_location with the second one, dont erase the and

5. if this is not your code, then I also have a solution.Does you code say
if isset($i$bre.....
? then all you need to d0 is erase the isset and you should be fine

6. so there are two possible scenarios for cutenews problem :] and here these are the solutions:]

Tutorial Comments

No comments yet. Be the first one to comment!

Tutorial Details

Author synatribe View profile
Submitted on Jan 30, 2008
Page views 7,143
Favorites 1
Comments 0
Reviewer sweetasphyxia View profile
Approved on Jan 31, 2008