Results 1 to 5 of 5

Thread: Warning division by 0

  1. #1
    Join Date
    May 2011

    Default Warning division by 0

    Hi, I use open-realty 3.1.3 with php 5.3.4 and it works fine just that i get this error:
    I used the search to find a fix but no success.

    Warning: Division by zero in /usr/local/www/apache22/data/birotec/plaiasgrup/include/ on line 2738

    Warning: Division by zero in /usr/local/www/apache22/data/birotec/plaiasgrup/include/ on line 2740

    This error appears in the admin section at All listings and in the frontend in index.php&action=searchresults. The images are there, they are displaying corectly but the worning is there. I set open-realty to use GD libs for images, ImageMagick doesn't seem to work with open-realty but it works perfectly with many typo3 installations that i have in the server.
    I tried to delete the images and upload them again, but still the same error appears after re-upload of the images.


    Any ideeas?

    Edit: This 2 errors appear for every thumbnail generated in the list .. for example the errors do not appear for the featured listing on the first page

  2. #2
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann
    Join Date
    Apr 2003

    Default Re: Warning division by 0

    What version of OR exactly? v3.x is not a specific version.
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519

    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

  3. #3
    Join Date
    May 2011

    Default Re: Warning division by 0

    Sory for that, I use Open-Realty version 3.1.3

  4. #4
    Join Date
    Jun 2004

    Default Re: Warning division by 0

    Check your site config "Uploads/Images" settings, and make sure that yoru thumbnail width and height are not empty or set to 0.

  5. #5
    Join Date
    May 2011

    Default Re: Warning division by 0

    It seams i had set only the dimensions for the thumbnails but not for image display, now it's all perfect!

    Thank you!!

Similar Threads

  1. Warning: Division by zero in
    By ican in forum Installation/Configuration Help (CLOSED)
    Replies: 10
    Last Post: 02-18-2009, 10:17 PM
  2. Division by zero error.
    By ehomes in forum General Help (CLOSED)
    Replies: 2
    Last Post: 02-14-2008, 09:23 AM
  3. Warning: Division by zero errors, because of images?
    By serge06 in forum General Help (CLOSED)
    Replies: 1
    Last Post: 01-21-2008, 11:31 PM
  4. Replies: 5
    Last Post: 12-23-2006, 03:11 PM
  5. "Warning: getimagesize" and "Warning: Division by zero "
    By asitudela in forum HELP (CLOSED)
    Replies: 2
    Last Post: 06-06-2005, 07:37 PM


Posting Permissions

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