WordPress.org

Support

Support » Plugins and Hacks » NextGEN Scroll Gallery » nggScrollGallery Error Message

nggScrollGallery Error Message

Viewing 15 replies - 1 through 15 (of 22 total)
  • I got the same error and resolved it by going to Manage Galleries and under Bulk Options select Import Metadata. Once it was updated, the error message went away. Not sure if that is the exact solution but it worked for me.

    Thank you so much, thats the Solution.

    Hello, I have an angry client and I’m hoping you can help me.

    Here is his site:
    http://jeffgreenphoto.com

    Basically, three of the galleries keep breaking (residential architecture, commercial architecture, and food & beverage). I fix them, but whenever he changes images in his gallery (adding, deleting, and changing tags) the gallery breaks and we get Warning: Division by zero error.

    I think we may have it narrowed down to something within the tags. The galleries work after I fix them if I don’t put any tags in. Client adds images and tags and the galleries break.

    The current problem gallery page:
    http://jeffgreenphoto.com/portfolios/commercial-architecture/?preview=true&preview_id=25&preview_nonce=90d46d9635

    Thanks so much for any help you can offer!! I am at the end of my rope here. -Ann

    I have the same message
    Warning: Division by zero in /home/content/20/9755120/html/laketahoe/wp-content/plugins/nextgen-scrollgallery/nggScrollGallery.php on line 296

    I have version 1.8.2 have checked all my photo sizes and settings.

    Here’s the link http://daveandjen-sept12.com/add-your-photos/

    I have the same message
    Warning: Division by zero in /home/content/20/9755120/html/laketahoe/wp-content/plugins/nextgen-scrollgallery/nggScrollGallery.php on line 296

    I have version 1.8.2 have checked all my photo sizes and settings.

    I tried the import meta data and instead of one warning, I recieved a warning for all images

    Here’s the link http://daveandjen-sept12.com/add-your-photos/

    ’til now it works with “import metadata”, but since yesterday the Warning appears by creating a new Gallery.
    Has anybody find a Solution about this Problem?

    ScrollGallery 1.8.2 / WP 3.9.2

    The Warning appears only on new created Galleries, the older ones are not affected.
    Should i maybe return to a older Version of this Plugin?

    @daveandjen: It seems you solved this Problem. How you get clear with that?

    And now, by and by the Error appears on other Sites. It’s a bit frustrating, because it’s a running Galery-Site with many Visitors.
    Questions: Is this Problem maybe because of a newer WordPress Installation? Or a newer NextGen Gallery Plugin-Version?
    Has anybody any Idea?

    Having the same issue here. Tried importing meta data, all data seems to be correct.

    Now it works after this Workaround:

    Link

    First i replaced the hole Code, but then i get an Error in the Backend.
    So be sure to Backup the nggScrollGallery.php File before starting this.
    After i only replaced Lines 288 – 297 it works!

    Hope it helps on other Sites too. Thanks to PASTEBIN anyway.

    ^ Thank you emiglio! That worked for me.

    The error was kinda annoying. Even tho there were new updates, it still wouldn’t go away. The “import metadata” would work before, now it doesn’t anymore. But again, thanks to emiglio for finding that solution.

    Thank-you Emiglio! I was tearing my hair out yesterday trying to figure this out. Works perfectly now!

    Thank you thank you thank you

    Thanks again that worked for me. Had the same problem. However a word of warning, I used the PASTEBIN site and copied all the lines into my nggScrollGallery.php file, but with it it copied a PASTEBIN banner that hacked my wordpress website!
    Had to reinstall nggallery…

    So best to copy over carefully the differences in lines 288-297.

    Still this works now!

    Erik

    @evantklooster

    Don’t know if above is the best solution to this.

    What happend is that meta_data isn’t stored as serialized data anymore, but as json encoded as base_64 in the meta_data DB field.

    I found this solution to work:

    open up nggScrollGallery.php

    Go the part where the $pictures array is filled (from line 198).

    Replace

    $serialized_data = unserialize($picture->meta_data);
    			  $aux["width"]  = $serialized_data["width"];
    			  $aux["height"]  = $serialized_data["height"];

    with:

    $base64_data = json_decode(base64_decode($picture->meta_data), TRUE);
    			  $aux["width"]  = $base64_data["width"];
    			  $aux["height"]  = $base64_data["height"];

    I have taken this code from an original function included with the next gallery plugin. So should be ok.

    Don’t forget to rewrite all your metadata of the images (to make sure it is stored as json and decoded as base64).

    good luck 😉

    @erik,

    I was having this problem too, and tried your code and it worked. Thank you!

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘nggScrollGallery Error Message’ is closed to new replies.
Skip to toolbar