• I’m using NextGEN Gallery 1.7.3. Currently I can’t add new images anymore. I’m not sure if this is related to an update of WordPress or NextGEN. I updated both without trying to add images in between.

    I can still create a new gallery. But I cannot add images to either the new gallery or existing ones. I checked the folder on the server and the folder for the created gallery (wp-content/gallery/…) does contain the uploaded images. But the plugins states something like “0 pictures uploaded successfully” (I don’t have the English version installed) when uploading pictures. And the pictures are also not shown within WordPress.

    What could be the problem?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter ghp1

    (@ghp1)

    Does nobody have an idea? Is there some kind of logfile I could check for errors?

    I am having the same issues, however, I can’t add Galleries, either. My client is using a Yahoo Small Business hosting site and I have been unable to access the settings. From what I’ve read, you may have the PHP Safe Mode set to ON. It should be OFF. I don’t know if that will help, though. I can’t even find it on Yahoo…

    ip00

    (@ip00)

    You should look into your servers error log after you try uploading and look for a problem. Have you tried turning glash uploader off?
    It could also be a mod_security issue, but you will see it in you error log.

    Thread Starter ghp1

    (@ghp1)

    PHP Safe Mode is set to OFF. I have tried turning the flash uploader off. That didn’t make any difference. Unfortunately I don’t have access to the apache logs (if you mean that). The webhosting is just rented.

    buemonet

    (@buemonet)

    Hallo, I have the same problem with WordPress 3.04 and WordPress 3.05 German version.

    If I add a picture to a existing gallery, the picture and thumbnail picture is missing in the gallery. Only the entries in the gallery are found.

    Is it necessary to change some checkmods for directories or files.

    I have PHP Memory Limit: 512 MB.

    Thank you for help

    Thread Starter ghp1

    (@ghp1)

    …Version 1.7.4. still the same. Too bad. I loved NextGEN. But not being able to add new galleries/pictures is not really the goal of a gallery plugin. Since there seems to be no way to check why this happens (without having full-control of the server-logs), I will have find another solution ??

    Thread Starter ghp1

    (@ghp1)

    @buemonet: By the way. I think I described a totally different problem to what you described. There are no entries within the gallery listed. The files are on the server, but 0 entries in the gallery. Please read my initial post.

    buemonet

    (@buemonet)

    Hallo,

    with the new NextGEN Gallery Vesion 1.74 my problem is solved:

    If I add a picture to a existing gallery, the picture and thumbnail picture is missing in the gallery. Only the entries in the gallery are found.

    Thank you for help NextGEN Gallery team.

    I think I have the same issue as ghp1 I am running wordpress 3.1 NextGen Gallery 1.7.4 and I have checked the plugin from the Gallery overview page:

    Check plugin/theme conflict
    No conflict could be detected

    Test image function
    Could create image with 4048 x 3040 pixel

    Check theme compatibility
    Your theme should work fine with NextGEN Gallery

    Everything is all good in the hood!

    PHP Safe Mode : Off
    GD Version : 2.0 or higher

    But it still doesn’t want to upload photos. It says 0 Image(s) successfully added. When I check the server the photos are up there but the website doesn’t display.

    Now I have completed a

    chown [apache]:[apache] /wp-content/gallery/ – command on it which looks like it allows wordpress to create the images although it still comes back with 0 photos successfully added.

    I have also:
    Chmod 777 /wp-content/gallery/

    Which I think is utterly stupid but I’m just doing this to test it out but this doesn’t work either it just gives me the same message.

    Has any one figured this out yet?
    Does /wp-content/ need to be chowned as well?

    I’m having the same issue as the original poster. I posted a help request a couple of weeks ago, but I still haven’t been able to figure anything out. I’ve waited as long as I can now, will be installing a different gallery today.

    In ngg-db.php – function add_image

    if ( false === $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->nggpictures (image_slug, galleryid, filename, description, alttext, meta_data, post_id, imagedate, exclude, sortorder) VALUES (%s, %d, %s, %s, %s, %s, %d, %s, %d, %d)", $slug, $id, $filename, $description, $alttext, $meta_data, $post_id, $imagedate, $exclude, $sortorder ) ) ) {
    
    }

    on my site I have the same error of 0
    addes images. I made a dump of the table then I saw ngg_pictures image_slug field does not exist in my current table.
    maybe this makes the function fail insertion into database. The images arrive at the server but not added to the database.

    I have the same installation of this site in localhost in my pc and works well with wp 3.1 and 1.7.4 NGG and works well. perhaps in the last update for some reason do not update the database table with the new field image_slug.

    in upgrade.php line 98 aprox.

    // v1.4.0 -> v1.7.0
            if (version_compare($installed_ver, '1.7.0', '<')) {
                // add slug fields
                ngg_maybe_add_column( $wpdb->nggpictures, 'image_slug', "VARCHAR(255) NOT NULL AFTER pid");
                ngg_maybe_add_column( $wpdb->nggalbum, 'slug', "VARCHAR(255) NOT NULL AFTER name");
                ngg_maybe_add_column( $wpdb->nggallery, 'slug', "VARCHAR(255) NOT NULL AFTER name");
            }

    This code creates the field image_slug but for some reason my database server does not let you change the script permissions can be my database users do not allow me to add fields to tables.

    I resolved to remove the insertion image_slug field temporarily.
    in add_image (), add_album () and add_gallery functions.

    Manually create the fields for the pluggin campatible not break,
    my server is at work tendre q wait until Monday. And the code will come back to where it was

    Thread Starter ghp1

    (@ghp1)

    Hi, the field “image_slug” existed in my db/table. I tried to do some further debugging (inserting debug messages in the add_image functions, looking to the nggdb functions etc.). No success! Finally I deleted the plugin and reinstalled it. Now everything works fine again.

    So I guess this problem has been related to some faulty update/upgrade routine.

    I’m not sure if I will stick to NGG. I use it for a private blog. So it is not “business critical”. I know it is free and others put a lot of effort into it. But still this annoyed me a lot…

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: NextGEN Gallery] Add Images doesn't work’ is closed to new replies.