configured as follows

imagefield 5.x-2.4
cck 5.x-1.10
drupal 5.15

I am having a problem where images are dissappearing from a multiple image field. It seems to happen after a node has been edited after saving. I have found the break, but can't find a fix. When dissecting the database tables, I am seeing that all of the rows in the cck field table are referencing the first image uploaded. the rows in the files table is correct. see below for example.

NID = 21630

mysql> select vid,nid,field_article_image_fid,field_article_image_title from groups_content_field_article_image where nid=21630;
+-------+-------+-------------------------+----------------------------------+
| vid   | nid   | field_article_image_fid | field_article_image_title        |
+-------+-------+-------------------------+----------------------------------+
| 31583 | 21630 |                       0 |                                  | 
| 31930 | 21630 |                       0 |                                  | 
| 32425 | 21630 |                   17656 |                                  | 
| 32426 | 21630 |                   17656 |                                  | 
| 32429 | 21630 |                   17656 |                                  | 
| 32432 | 21630 |                   17656 | Jethro Easyfields  | 
| 33102 | 21630 |                   17656 |                                  | 
+-------+-------+-------------------------+----------------------------------+
mysql> select * from groups_files where nid=21630;;
+-------+-------+---------------------------------+------------------------------------------------------+------------+----------+
| fid   | nid   | filename                        | filepath                                             | filemime   | filesize |
+-------+-------+---------------------------------+------------------------------------------------------+------------+----------+
| 17656 | 21630 | jethro_ka.jpg                   | files/article_images/jethro_ka_0.jpg                 | image/jpeg |  9483947 | 
| 17657 | 21630 | 1_3.JPG                         | files/article_images/1_3_0.JPG                       | image/jpeg |   870227 | 
| 17658 | 21630 | zb1.thm.jpg                     | files/article_images/zb1.thm.jpg                     | image/jpeg |     5599 | 
| 17659 | 21630 | SoulBus1.jpg                    | files/article_images/SoulBus1.jpg                    | image/jpeg |  1122575 | 
| 17660 | 21630 | SoulBus2.jpg                    | files/article_images/SoulBus2.jpg                    | image/jpeg |  2496900 | 
| 17662 | 21630 | rob-dixon-1.jpg                 | files/article_images/rob-dixon-1.jpg                 | image/jpeg |  4551483 | 
| 17665 | 21630 | IMG_2499.JPG                    | files/article_images/IMG_2499.JPG                    | image/jpeg |  2542574 | 
| 17666 | 21630 | prn-brenner2008.JPG             | files/article_images/prn-brenner2008.JPG             | image/jpeg |   829308 | 
| 17667 | 21630 | _N2J6996.jpg                    | files/article_images/_N2J6996.jpg                    | image/jpeg |   919745 | 
| 17668 | 21630 | FrankGlover_Jazz_Kitchen_BW.jpg | files/article_images/FrankGlover_Jazz_Kitchen_BW.jpg | image/jpeg |   564917 | 
| 17669 | 21630 | SoulBus1.jpg                    | files/article_images/SoulBus1_0.jpg                  | image/jpeg |  1122575 | 
+-------+-------+---------------------------------+------------------------------------------------------+------------+----------+
11 rows in set (0.00 sec)

Comments

cangeceiro’s picture

bump.

Does anyone have the faintest clue on this? I have exhausted all ideas and im pulling my hair out here.

quicksketch’s picture

I'd suggest first updating to the latest version of ImageField (2.6), the problem may have already been fixed. Support for the Drupal 5 version is pretty minimal, since none of the maintainers are using Drupal 5 any more.

cangeceiro’s picture

I have since upgraded to 2.6 but the issue still persists. The best I can come up with, is that session variables are getting over written, It appears to be some type of javascript issue. But i just cant put my finger on where this is happening or how to fix it.

quicksketch’s picture

Version: 5.x-2.4 » 5.x-2.6
xurizaemon’s picture

I bumped into this issue (or it's identical cousin) today, and noticed that there may be no need to re-upload the file; simply hitting edit => save made the image re-appear. Try it and let me know if it works for you :)

quicksketch’s picture

Status: Active » Closed (won't fix)

Closing out Drupal 5 issues.