I've installed the module and configured plupload. Here are my steps:
1.) create gallery
2.) upload images to the gallery
3.) view the 'manage images' tab and find all those images in that gallery
4.) click 'upload new images' tab and upload some more images
5.) view the gallery and see all of them there (under 'view' tab)
6.) view the 'manage images' tab and find only the original uploaded images, not the added ones
Comments
Comment #1
justintime commentedHmmm... can't duplicate locally doing those exact steps. Can you duplicate it on the demo site: http://ng3demo.sysadminsjourney.com ?
The code operates like this:
After plupload, stick the ids for the nodes just added into your session.
When you hit the manage images tab, it looks for those ids in your session, if there, it displays just those nodes.
Once you hit the manage images page, it removes the ids from your session.
Do you have anything that would prevent your session from being modified? Cookies blocked, etc.?
Marking as a support request until we confirm it's truly a bug - I think it's something specific to your case.
Comment #2
bjsomers commentedI'll try to duplicate on the test site when I have more time, but the manage image page is now also giving me this error (maybe related?)
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in /mysite/includes/form.inc on line 376.
Comment #3
justintime commentedYikes. That indicates you've got nodes that don't have a type. Did you remove a content type? I would go into admin/content/node, and see if you see any nodes without a content type. If so, delete them.
Comment #4
bjsomers commentedhmm, all my nodes have content types associated. I think I'm going to reinstall the module and start over. Having a lot of issues with the manage images page:
1.) When thumbnails are clicked I get an error stating that memory has been exhuasted
2.) Can't delete images, get this error:
An error occurred. /batch?id=17&op=do { "status": true, "percentage": 0, "message": "Processed 0 out of 3.\x3cbr/\x3e\x26nbsp" }
Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 12833500 bytes) in mysite/includes/database.mysql-common.inc on line 41
Also get warning after the delete fails:
Division by zero in /mysite/sites/all/modules/node_gallery/node_gallery.module on line 689.
after the error with trying to delete the images.
3.) original issue with it not updating with new pictures
Thanks!
Comment #5
Tilt_11 commentedMy problem is similar, but worse. I created a gallery and uploaded 5 photos. That works perfectly.I tried to upload another one later.
The upload seemed to be complete (I am using plupload and the interface shows the file has been uploaded) but the new photo doesn't appear anywhere. And it turns out it is not even on the server. It might be an issue with plupload integration, but I'm not sure...Tried again a few hours later...The photo appears now. I think it was a problem with my server. Didn't get an error message though...It really looked like the upload had been completed.
Anyway, problem is solved, sorry for the message.
Comment #6
scroogie commentedbjsomers: Clicking a thumbnail on the manage images page should just send you to the drupal core node edit screen. Can you try to reach that screen the normal way and report back please?
Comment #7
bjsomers commentedSorry, I've since reverted to 6.x-3.0-alpha1 and all my problems were fixed. When I was using the dev version I would click the thumbnail and instead of going to the core node screen I received a WSOD with: 'Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 12833500 bytes) in mysite/includes/database.mysql-common.inc on line 41' on it.
Comment #8
justintime commentedWell, that's no good - dev will become alpha2, so if there's a bug in dev we need to track it down.
@bjsomers, this really seems like maybe your server was having "issues", because a lot of the problems you were having were relating to Drupal core, not NG.
Huge favor to ask - I've updated http://ng3demo.sysadminsjourney.com with the latest dev code, can you try to duplicate the issue there? If you can't, we'll just mark this as can't reproduce. If you can, we'll get it fixed up ASAP.
Comment #9
justintime commentedNot quite for sure how yet, but I've duplicated this. Marking as a critical bug.
Comment #10
justintime commentedWell, clearing the caches resolved the issue, so I know it's a cache bug, but haven't been able to trigger it again. In alpha1, there was no caching on two functions that now have caching in dev. Here's a diff of the commit:
http://drupalcode.org/viewvc/drupal/contributions/modules/node_gallery/n...
#993332: warning: array_chunk() expects parameter 1 to be array, null given in node_gallery.pages.inc on line 165. is caused by a cache bug, and scroogie's patch in #991212: node_gallery_get_image_count quickfix addresses it a bit too. I'm going to go over it with a fine tooth comb and see what I can dig up.
Anyone running into this, clear caches and you are good to go, but if you find a sure-fire way to duplicate this, please post how.
Comment #11
scroogie commentedPerhaps its #993832: Caches not cleared in recent dev
Comment #12
justintime commentedWow. There was a lot of stuff fubar with the caches in dev - can't believe that went so long undetected. Since it was so broken, I'm sure that whatever I have now is better that what was there, so I went ahead and committed it without review. If you're running dev after alpha1 and before Dec 10, please upgrade ASAP. Note that #993832: Caches not cleared in recent dev is part of this fix.