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?
- The topic ‘Nextgen Gallery Bug Found’ is closed to new replies.