“Division by Zero Error”

  • Anna Korniyets
    I'm getting a Division by zero in /homepages/3/d258208462/htdocs/wp-content/themes/yin_and_yang/function-includes/theme-functions.php on line 93 - when I click on a portfolio item to see a larger image - lines 84-108 read as follows "
    $desired_width ) { ?> <?php the_title(); ?> <?php the_title(); ?>
    " I don't know about PHP so I'm not sure how to fix the error

    2:04 on May 11, 2013

  • Zlatan Halilovic

    Hi Anna,

    thanks for buying the theme! Appreciate it. :) 

    As far as your issue goes, the database entries that hold the information about your portfolio images seem to be corrupt, so you are going to have to remove the images from the Media tab of your WordPress admin panel, and then reupload them there. Once you do that, you are going to have to go inside of every portfolio item and reselect the links to the images via the "Browse" buttons. I know this sounds like a tedious task, but I'm afraid it's the only way to go now. 

    Also, please make sure you optimize your images for the web before reuploading them because some of them weight almost up to 400KB, which is unacceptable for the web. You can do the optimization in an image manipulation software like photoshop to drive the weight of your images down. 

    Sincerely,

    OnionEye

     

    2:04 on May 13, 2013

Updating...