Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had this problem already 2 times. All files I uploaded to Galleries dissapeared.
I cannot tell how to reproduce it bit this is how it looks for me.
1. Upload pictures to Gallery
2. everything works fine, files are shown
3. After several days you go to gallery and instead of thumbanails and pictures see just filenames.
4. When you check Gallery Assist folder: \gallery_assist\ it has no files.
Any ideas?
You can check how it looks here:
http://ephototips.com/gallery-light-painting-pictures
I will keep this gallery broken for a while for you.
Comment | File | Size | Author |
---|---|---|---|
#10 | ScreenHunter_01 Apr. 03 15.12.gif | 26.51 KB | almalino |
#10 | ScreenHunter_02 Apr. 03 15.13.gif | 7.31 KB | almalino |
Comments
Comment #1
almalino CreditAttribution: almalino commentedNow it happend 3rd time. All pictures dissapeared from gallery assist folder :(
Comment #2
almalino CreditAttribution: almalino commentedA bit more information:
In my case Gallery assist stores files into directories:
/sites/default/files/gallery_assist/1/gallery_assist31/
/sites/default/files/gallery_assist/1/gallery_assist32/
At some point all subdirectories under /sites/default/files/gallery_assist/1/ got deleted and I can see only one empty folder:
/sites/default/files/gallery_assist/1/
:(
I cannot understand at what point it dissapears. It is there for day or two and siddenly it vanished.
Comment #3
jcmc CreditAttribution: jcmc commentedPlease almalino,
give me a time to investigate this point under different aspects of installations. I not get so a issue.
please wait.
Comment #4
almalino CreditAttribution: almalino commentedJuan,
I found the way to reproduce it.
I have "WLW Blog API" module installed to support Windows Live Writer for Blog posts.
http://drupal.org/project/wlw_blogapi
Live Writer is configured so that it uses "WLW Blog API" to post message text and FTP to post blog pictures according these instructions:
http://www.tributemedia.com/education/tutorials/windows_live_writer_and_...
http://www.tributemedia.com/education/tutorials/windows_live_writer_and_...
I use following FTP folder for Blog Images:
/sites/default/files/blog
it is different from folder where Gallery Assit keeps its images:
/sites/default/files/gallery_assist/
Now , whenever I press a "Publish" button in Windows Live Writer client and post get's published ALL Gallery Assist folders gets erased.
Cheers,
Alexei
Comment #5
almalino CreditAttribution: almalino commentedOne thing I noticed that might not be related but it is interesting. Gallery Assit picture folder
/sites/default/files/gallery_assist/
has 775 access right and all
all other folders in
/sites/default/files/
have 755 access right
Comment #6
almalino CreditAttribution: almalino commentedAs a temporary solution for myself I do following:
1. Compress Gallery assit folder
2. Publish blog post
3. Uncompress Gallery assit folder
This way I restore files that are deleted during posting the blog post.
Comment #7
jcmc CreditAttribution: jcmc commentedThis is but a very critical issue, almalino
I will install the wlw_api and try to reproduce this issue.
The point about permitions: I use to create a directory the Drupal function "file_check_directory()" and I not set folder permitions. This is a core function and I think this is not the cause of the error.
I give feedback asap
Regards and many thanks
Juan Carlos
Comment #8
almalino CreditAttribution: almalino commentedOk. It looks like it is not WLW problem but publishing any content type problem.
Here how I loose all the data in other way:
1. I have one UNPUBLISHED node (Content Type = Page) that I see in Content management > Content > List
2. I mark it as PUBLISH and press UPDATE button
3. Node gets PUBLISHED and I also get following messages on the screen from Gallery Assist
* The directory sites/default/files/gallery_assist/1/gallery_assist30 has been created.
* The directory sites/default/files/gallery_assist/1/gallery_assist30/img has been created.
* The directory sites/default/files/gallery_assist/1/gallery_assist30/thm has been created.
* The directory sites/default/files/gallery_assist/1/gallery_assist30/prev has been created.
* The new owner of this gallery is user: almalino
* The update has been performed.
* The directory sites/default/files/gallery_assist has been created.
* The directory sites/default/files/gallery_assist/1 has been created.
Look at last 2 messages. It seems Gallery Assist recreates folder sites/default/files/gallery_assist and, I guess, this erases all it content.
So, problem even mo severe - any Content publishing just erase Gallery Assit folder.
Note - I have Gallery Assit enabled for all Content Types including Pages, Blog Posts etc.
Cheers,
Alexei
Comment #9
almalino CreditAttribution: almalino commentedWLW is only one way to publish content that erase galleries. Any other publishing seems to erase all galleries as well as explained above :( Now, I must recover Gallery Assist folder any time I do any modifications to Content :(
Comment #10
almalino CreditAttribution: almalino commentedI've done some hunting for this bug in my Drupal instalation and here what I found out.
1. I disabled ALL modules in Drupal except Gallery assit
2.I switched to default Drupal theme
2. I have Gallery assist enabled for Blog posts
3. Still Whenever I publish or unpublish blog post whole gallery assit image folder is DELETED
So, it make me think it is Gallery Assit internal problem since bug exists even whith all other modules disabled.
Then i tried:
1. I disabled Gallery Assit for Blog posts
2. Problem dissapeared!!! Now, when i publish or unpublish blog post gallery assit folder is not deleted.
Inetersting messages I get when publishing and unpublishing blog posts - see attached file:
1. When I publish Blog post warning is shown that RMDIR function is applied for non empty directory on line 2034 of gallery_assit.module
2. When I check this line it is "gallery_assist_delete_directory" function. Why do you need to delete directory for already existing node with gallery? According function description it must be run only when node is deleted. But I do not delete the node, I Publish and Unpublish it.
Hope this will help,
Alexei
PS: The one thing I have not tried though is a fresh Drupal installation with Gallery assist enabled for blog posts. I thinks there should be the same bug.
Comment #11
almalino CreditAttribution: almalino commentedI upgraded Gallery Assist to 6.x-1.9 and problem dissapeared. Now direcories is not deleted when I publish any content. I guess bug can be closed?
Comment #12
jcmc CreditAttribution: jcmc commentedI change the status to fixed and let it open in case some one find or have the same issue or open questions about.
Comment #13
JedahsMinistry CreditAttribution: JedahsMinistry commentedSame problem here. Upload the images, they start out fine, then a few hours later the normal images disappear, followed by the thumbnails. Doesn't seem related to cron running, since that runs hourly and it takes longer than that to disappear. I see it starts looking for the files in the imagecache folder, I go in there on FTP and some are created in there, but not all.
Images were uploaded with the importer.
*note - I have the private download file system enabled in Drupal, I notice this seems to cause endless problems with most modules but unfortunately it is needed.
Comment #14
jcmc CreditAttribution: jcmc commentedComment #15
JedahsMinistry CreditAttribution: JedahsMinistry commentedSome more info -
The display images go in /sites/default/files/gallery_assist/(uid)/gallery_assist(nid)/prev, but eventually it just starts looking for them in /sites/default/files/gallery_assist/(uid)/gallery_assist(nid)/ . I moved the pictures there and it worked for a bit, but when I go to edit the main gallery page, none of the images show up and if I hit save, then the entire gallery becomes blank. No thumbnails, no anything.
The "Gallery: Add and edit gallery items (30)" part seems to know there are supposed to be 30 images, but it doesn't display them.
I had copies of the images in both gallery_assist(nid) and under /prev, but it still won't display anything.
Comment #16
jcmc CreditAttribution: jcmc commentedHello JedahsMinistry,
before we start with a investigation about your issue, please make a backup your files/gallery_assist folder.
So as I understand, the images exist only in prev folder?
Are you using ImageCache presets and Gallery Assist ImageCache?
Regards
Juan Carlos
Comment #17
JedahsMinistry CreditAttribution: JedahsMinistry commentedHello,
Yes, I have imagecache installed. There are files in /img, /prev and /thm, but not in the main directory. I copied some files there and it worked for a bit, but then the entire gallery became blank later on, without any error message. That's happened about three times.
I made a new gallery, same setup (import a directory of images, copied files manually into gallery_assist(nid) as well as having them in all the subdirs, after they were automatically made there), now the images show up but I'm getting some errors like -
warning: getimagesize(sites/default/files/gallery_assist/1/gallery_assist217/image02.JPG) [function.getimagesize]: failed to open stream: No such file or directory in /home/(user)/public_html/sites/all/modules/taxonomy_image/taxonomy_image.module on line 466.
Images are now still showing up in the thumb and single image view now, with a path of -
/system/files/imagecache/Minimini/gallery_assist/1/gallery_assist217/image02.JPG (thumb, custom imagecache preset)
/system/files/imagecache/gallery_assist-gallery_assist-preview-550/gallery_assist/1/gallery_assist217/image02.JPG (single image, GA imagecache default)
but those errors are on top of all the pages, images set with downloads, the downloads don't work, and the gallery_assist217/ (non imagecache) has no images in it again (but the subdirectories are still populated)
Comment #18
jcmc CreditAttribution: jcmc commented@ JedahsMinistry,
which version of Gallery Assist you are using???
The error here have nothing to do with Gallery Assist.
/home/(user)/public_html/sites/all/modules/taxonomy_image/taxonomy_image.module
The behavior you explain here is stronge and I can't reproduce it for investigations because we do not know how.. Can I have a link to your page or better a temporary admin account to check self?
Regards
Juan Carlos
Comment #19
JedahsMinistry CreditAttribution: JedahsMinistry commentedThe versions are -
gallery_assist-6.x-1.10
and also
gallery_assist_upport-6.x-1.x-dev
gallery_assist_lightboxes-6.x-1.3
gallery_assist_ic-6.x-1.1
I disabled the taxonomy image module, but there are still no files in sites/default/files/gallery_assist/1/gallery_assist217/ so images set with downloads don't work.
The main gallery page won't show images again now in edit mode. I went to edit a single image, saved it and all the images are gone again. The HTML of the page doesn't show any images, it shows nothing being output at all, just a blank paragraph -
I've looked in phpmyadmin and everything is still there, all the files are still in the directories (except for sites/default/files/gallery_assist/1/gallery_assist217/, but it's subdirs are ok), but nothing is getting output at all again.
I have to clear it with the site owner first about giving access, plus the site itself is adult/not safe for work content.
Comment #20
grung CreditAttribution: grung commentedHi,
I want to add that I have the same issue as JedahsMinistry. I have created galleries some time ago and suddenly images from them disappeared. In edit window I see:
(...)
Gallery: Add and edit gallery items (25)
Click Update to upload a new file or to save your changes in this section.
* 1
* 2
* 3
* następna ›
* ostatnia »
Add new item:
(...)
If some developer is interested I can admin give access to this website.
Comment #21
vidichannel CreditAttribution: vidichannel commentedI thought it may have been Imagecache related, so I made a different preset that sized to 1024. Pictures still disappeared. I am running Win2008R2. Still cannot determine what is causing the problem.
Comment #22
jcmc CreditAttribution: jcmc commentedHello people,
excuse my delayed answer.
please read my last answer to this thema at http://drupal.org/node/795960#comment-3129962
I need feedbacks.
Thanks in advance
Juan Carlos
Comment #23
richy1975 CreditAttribution: richy1975 commentedHallo Juan,
auf einer Webseite habe ich das gleiche o. g. Problem - Schwierigkeit: bis jetzt kann ich dieses Verhalten nicht provozieren. Mir ist aber aufgefallen, dass die Datensätze aus der Tabelle files gelöscht werden, aber nicht in gallery_assist_item - da bleiben sie stehen. Vielleicht hilft es dem Fehler auf die Schliche zu kommen.
Danke und Grüße
Richy
Short for english speakers:
The the entries of files in the table "Files" are deleted; but the the table gallery_assist_item have all items.
Comment #24
richy1975 CreditAttribution: richy1975 commentedHi Juan,
I have found the cause of deleting files.
The second look to the files -Tables:
The columns of new gallery images have follow values: size: 0 and status=0
And look at: http://api.drupal.org/api/group/file/6
files width status=0 are temporary and will delete all the files in garbage collection.
Non deleted files have status 1
I hope this help.
Regards
Richy
Comment #25
deggertsen CreditAttribution: deggertsen commentedI was posting to a duplicate issue #849844: Galleries are created, disappear hours later. Subscribing.
Comment #26
kevinquillen CreditAttribution: kevinquillen commentedhttp://drupal.org/node/852898
Comment #27
deggertsen CreditAttribution: deggertsen commentedDuplicate of #852898: Are your images disappearing?
Comment #28
Tran CreditAttribution: Tran commentedIs this the solution?
Comment #29
deggertsen CreditAttribution: deggertsen commentedAs far as I know there is no solution yet.
Comment #30
almalino CreditAttribution: almalino commentedv 1.15 has no such problem anymore for me. So, it might be a solution to start using latest version.