Support » Plugin: NextGEN Scroll Gallery » [Plugin: NextGEN Scroll Gallery] Error on page: Warning: Division by zero in..

Viewing 15 replies - 1 through 15 (of 15 total)
  • mary-rtd


    error gone! ??

    I have the same problem, it’s displaying that message error in the top of the post i tried the plugin :

    Warning: Division by zero in /home/orbie/public_html/portfolio/wp-content/plugins/nextgen-scrollgallery/nggScrollGallery.php on line 296

    i looked at that line and the line look ok :

    i don’t understand …
    How can i fix it ?

    thank you !

    I’m also having this problem.

    Anyone have a fix?

    Plugin Author Benedikt Mo


    Hm, seems that variable newimageheight is null or 0.
    Witch version of nextgen Gallery do you have installed?
    The newest one?

    yeah, last week, the latest version ๐Ÿ™

    oups, sorry nextgen gallery was not up to date, i juste updated it
    it’s nextgen scroll gallery that was the last version

    NextGEN Gallery
    Version 1.9.12

    NextGEN Scroll Gallery
    Version 1.8.1

    i’ll try again with your plugin in the page wich causes problem

    still not working :
    Warning: Division by zero in /home/orbie/public_html/portfolio/wp-content/plugins/nextgen-scrollgallery/nggScrollGallery.php on line 296

    but it do work on some pages and not on others, that’s strange

    Plugin Author Benedikt Mo


    Hi Orble,
    thanks for your fast reply.
    Ok. I think the problem is, that one or more of your images in your nextgen gallery has no correct hight information in the database.
    Please go to your nextgen admin interface and open the gallery with the problem.
    Please check if all images has a width and hight information under their title.
    Normally each image has a title, a date and a dimension, for example:

    “Karlsruhe at night
    18. Juni 2011
    532 x 800 pixel”

    I think one or more images has no correct size information in the database.
    If you find such images in your gallery. Try to upload that images again.
    Regards Benedikt

    I’ll look for that ๐Ÿ™‚
    Thank you !

    Note I tried what Benedikt Mo said, but all my images appeared with the correct width and height information. I was still getting all the eroor messages about dividing by 0.
    HOWEVER I did a bulk “Import Metadata” in the NextGenGallery “Manage Gallery” area for all the images, and voila! scrollgallery now works.

    Happy days.

    ^ @frednat: Thanks so much! How lucky I am that you posted just a day ahead of me!

    Iยดm using NextGen Gallery Version 2.0.27 and NextGEN Scroll Gallery Version 1.8.1.

    Since update to Version 2.0.27 an new galleries I get with Scroll Gallery Version 1.8.1. many warnings (one for every picture!)

    Warning: Division by zero in /www/htdocs/…/…/wp-content/plugins/nextgen-scrollgallery/nggScrollGallery.php on line 296

    All pictures in the new gallery have a title, a date and dimension, Alt & Title Text / Description and Tags (comma separated list)

    Without NextGEN Scroll Gallery and the shortcode [nggallery id=xx template=caption] the pictures are seen on the page.

    Thank you for help

    Thank you @frednat it worked for me too. this was the quickest problem that I solved with WP. nowadays it seems that I spend twice as much formating and fixing than actual writing.

    @benedikt Mo nice plugin, have been using it for about a year.


    I just updated my word-press to 3.6.1 and have the latest version of the

    @benedikt Mo – All the images have correct info
    @frednat – did what you suggested, but didn’t work

    This is the exact error that I’m getting. You can see it at our homepage

    Warning: Division by zero in /home/content/m/i/c/microbiz/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/adapter.nextgen_basic_slideshow_controller.php on line 35



    FYI – I re-installed 1.9.13 and don’t get the error and have my gallery back

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: NextGEN Scroll Gallery] Error on page: Warning: Division by zero in..’ is closed to new replies.