[resolved] Nextgen Gallery Bug Found (5 posts)

  1. bloggerDude343
    Posted 5 years ago #


    I installed Nextgen Gallery 1.7 (network activated) on a local multisite blog. I found that when I try to upload images (through the html uploader not the flash one) to a gallery, that the image gets uploaded but a thumbnail is not created and it is not added the ngg_pictures table. I found the offending sql in functions.php at about line 593:

    $result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES (%s, %s, %s, 0)", $galleryID, $picture, $alttext) );

    mysql> INSERT INTO wp_ngg_pictures (galleryid, filename, alttext, exclude) VALUES ('1', 'dsc01875.jpg', 'dsc01875', 0);
    ERROR 1364 (HY000): Field 'image_slug' doesn't have a default value

    The image slug column is required but not included in this query.

    any thoughts on a fix?

  2. Alex Rabe
    Posted 5 years ago #

    Should be already fixed in 1.7.2

  3. bloggerDude343
    Posted 5 years ago #

    wow u are freaking fast. i actually just saw the new version and upgraded. and it worked. thanks!

  4. TyCooNX
    Posted 5 years ago #

    Thumbnails are still not being created with version 1.7.2. Maybe there will be another fix?

  5. Alex Rabe
    Posted 5 years ago #

    Please open a new thread, it's not related to this error report

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.