Note: This has bug involves both the Filefield/Imagefield and Link modules and has is based on the original bug: http://drupal.org/node/634002
I have a custom type that is configured with 2 single image fields, 1 unlimited image field, 1 single link field and 1 unlimited link field. All image fields have been configured to allow custom Alt and Title properties to be set.
I have an existing node for this type that has "Authored by" and "Authored on" fields populated and is set to Published.
After the 2 single image fields and 10 of the unlimited image fields are populated, upon hitting Save the node saves (confirmed by entry in Recent log entries) but in the content list the Author appears as "Anonymous" and State as "Not published". Upon clicking to edit this node, the "Authored by" field has been blanked out, the "Authored on" field has been reset to the current time and "Published" is now unticked! Making any changes from hereon in and clicking Save, Preview or Delete has no effect!
Further checking and I noticed that its URL alias has also been deleted!
The bizarre thing is that it seems to happen more frequently for nodes that have a period in the title, for example, "No.1"
To recreate:
- Click to create a node for a content type that has 2 single Imagefield fields and 1 unlimited Imagefield field.
- Set title as "No.1"
- Upload images for 2 single Imagefield fields and fill in the Alt and Title properties
- Upload 5 images for the unlimited field
- Click save
- Click to edit and upload another 3 images for the unlimited field
- Click save
- Click to edit and upload another 2 images for the unlimited field
- Click save
- Now should appear as Anonymous and Not published. Its URL alias would also have been deleted
I can confirm that this issue arises when the Filefield/Imagefield and Link fields coexist on a content type because I have done tests with every other module deactivated. For completeness, here is my setup:
Drupal version: 6.14
CCK version: 6.x-2.5
Imagefield version: 6.x-3.2
Filefield version: 6.x-3.2
Permissions for tmp and files directory: 775
Download method: public
File system path: files
Installed contributed modules:
admin menu 6.x-1.5
admin role 6.x-1.1
cck 6.x-2.5
custom pagers 6.x-1.10-beta1
date 6.x-2.4
filefield 6.x-3.2
global redirect 6.x-1.2
image api 6.x-1.6
imagecache 6.x-2.0-beta10
imagefield 6.x-3.2
link 6.x-2.6 (also tried 6.x-2.8)
pathauto 6.x-1.2
textformatter 6.x-1.0
token 6.x-1.12
views 6.x-2.6
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | dvd_content_type.txt | 11.11 KB | domotun |
Comments
Comment #1
jcfiala commentedCan you export this node type? If nothing else, installing features and creating a feature around this node type would give you a module you could then tar up and post to both of these modules, which would help both of us with re-creating exactly your problem.
Alternately, constructing a simpletest that reproduces this problem would also be very helpful.
Comment #2
domotun commentedI have exported the content type and attached it as a text file. It is simple to recreate: Disable all modules except for the CCK components. Make sure Filefield/Imagefield and Link modules are enabled and the steps above will recreate the problem. Let me know if you need more info. Thanks :)
Comment #3
domotun commentedThis bug has now been resolved. It was due to a Suhosin issue manifesting in Filefield/Imagefield (see other mentioned link for details)
Comment #4
jcfiala commentedThank you for following up and letting us know that it had been resolved!