Imagefiled image disapearing!!!
| Project: | Flexifield |
| Version: | 6.x-1.0-alpha5 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Drupal 6.13
filefield-6.x-3.1
imagefield-6.x-3.1
I have these module installed and fieldgroup enabled. I created a content type(A) being tempate and add a flexifield in another content type(B). A has a imagefield, textfield, textarea. B has a fieldgroup which is including A in unlimited number of value.
Recently i found the images are keep disapearing with no reason. After i reupload the images it saved. Can see from files table in the database. But later on. It disapeared! both deleted from files table and sites/default/files folder. Maybe after i added some new content and use imagefields? But why is that? Even i clear the cache the images still there. It's kinda randomly happend.
Does anyone might have any clue about this?
Thanks!

#1
By the way, where is the flexifield values saved in the database? After i post a page in B type. The imagefields value not saving in the content_field_image and content_type_A also! Only can see the uploaded file in the files table. Where it goes? But later on got deleted! So weird!
Thanks !
#2
With flexifield alpha4 and below, the data for all child fields (such as the imagefield in your example) is stored as a serialized string in the flexifield field's storage. With the dev snapshot of flexifield, so starting with alpha5 when I release it, data for child fields is being stored with the child fields.
Filefield 3.1 got released recently. I'm going to do some more testing of the latest flexifield code with filefield 3.1, and hope to soon release a flexifield alpha5 that fixes this bug of files being deleted (presumably on cron run).
#3
Fixed in alpha5. Make sure you have CCK 2.3 or later if upgrading to Flexifield alpha5. Files already deleted can't be recovered. Sorry. I hope you still have them so as to re-upload them. Files not yet deleted, but uploaded with an earlier version of flexifield, are still in danger of being deleted. If you edit and re-save the node containing those files, then the file will no longer be in danger of being deleted (unless there's a separate bug that I'm not aware of yet).
#4
Hi!
Thank for the fast fixed! i already upgrade to your new version. I think it's fixed! But i found another issue. The add another item button in node edit page is not working anymore! After click this button no new fieldgroup added. even kinda break the page! Can you look it up? I can only add new fieldgroup by re-edit the page.
Here's another suggestion:
This is the array that i got from flexifields imagefield and imagefield. The array structure doesn't have view. I figured it might be more convenient to have it. Otherwise i have to call them_image() again. It's only a suggestion.
[field_class_image] => Array
(
[0] => Array
(
[fid] => 133
[list] => 1
[data] => Array
(
[description] =>
[alt] =>
[title] =>
)
[uid] => 1
[filename] => falls.jpg
[filepath] => sites/default/files/falls.jpg
[filemime] => image/jpeg
[filesize] => 24009
[status] => 1
[timestamp] => 1247032747
)
)
[field_title_image] => Array
(
[0] => Array
(
[fid] => 14
[list] => 1
[data] => Array
(
[description] =>
[alt] =>
[title] =>
)
[uid] => 1
[filename] => flora-title.gif
[filepath] => sites/default/files/flora-title.gif
[filemime] => image/gif
[filesize] => 2111
[status] => 1
[timestamp] => 1246612223
[nid] => 149
[view] => <img class="imagefield imagefield-field_title_image" width="310" height="35" alt="" src="" />
)
)
#5
@chill8331: In my testing, I'm not finding the "Add another item" to be broken. Can you send me a personal message with admin level login to your website (preferably a test site, with a dummy account that you can delete when I'm done), so I can see what you're describing?
#6
Sorry, I would like to give an account but i can't. My website is still working in progress and not online yet. So i can only show you some screenshot. This is what happends and maybe ahah break down? I really don't know. Or should i disable this module and re-install it? If that will help? You know this is a great module for me and really useful. If it can working properly that will be excellent! Thanks for your help again!
#7
@chill8331: You should open a seperate issue for each of the problems you are experiencing. It gets a little confusing when there are several issues and suggestions all mixed together.
I am also experiencing the same problem with
Add another itemwithin Groups. I created a new issue Here.#8
@chill8331: I agree with comment #7. I'm marking this issue as fixed, since I believe the original issue is fixed. Regarding your new issue, please check the same steps that I listed for a different issue, but that I think might be relevant to yours as well: http://drupal.org/node/540852#comment-1917448. If you still have the problem you're describing after checking those steps, please open a new issue.
#9
#10
Automatically closed -- issue fixed for 2 weeks with no activity.