Results 1 to 6 of 6

Thread: Cutenews Help!

  1. #1
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default Cutenews Help!

    I have installed cutenews and its working fine except for 1 part.

    I get this error

    Warning: Division by zero in /home/habhits/public_html/cutenews/inc/functions.inc.php on line 469

    Warning: Division by zero in /home/habhits/public_html/cutenews/inc/functions.inc.php on line 469

    Warning: Division by zero in /home/habhits/public_html/cutenews/inc/functions.inc.php on line 469

    Warning: Division by zero in /home/habhits/public_html/cutenews/inc/functions.inc.php on line 469

    Warning: Division by zero in /home/habhits/public_html/cutenews/inc/functions.inc.php on line 469

    Warning: Division by zero in /home/habhits/public_html/cutenews/inc/functions.inc.php on line 469

    Warning: Division by zero in /home/habhits/public_html/cutenews/inc/functions.inc.php on line 469

    Warning: Division by zero in /home/habhits/public_html/cutenews/inc/functions.inc.php on line 469
    This is line 469

    PHP Code:
    if( isset($break_location) && $i%$break_location == 
    Is there anything wrong there + rep for help
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  2. #2
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by Lysine View Post

    PHP Code:
    if( isset($break_location) && $i%$break_location == 
    Is there anything wrong there + rep for help
    replace that with this line:

    PHP Code:
    if($i%$break_location == and $break_location
    try that

  3. #3
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default

    It still appears.

    Thanks for trying + Rep.
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  4. #4
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by Lysine View Post
    It still appears.

    Thanks for trying + Rep.
    Hmm wierd, worked for me...
    *edit, that dont work, holdon :p

    my functions .php

    EDIT:

    try this;
    PHP Code:
    if($break_location and $i%$break_location == 0
    Last edited by [Oli]; 19-09-2007 at 06:18 PM.

  5. #5
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    This happens when there's no comments for a news article.
    Either post a comment there, or, the easier way would be to put
    PHP Code:
    error_reporting(0); 
    under your <?php opening tag.
    i've been here for over 8 years and i don't know why

  6. #6
    Join Date
    Jul 2006
    Location
    England
    Posts
    610
    Tokens
    0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •