I have a node with an image field. Now when I include some images in the node and then I want to remove the first image it works, but when I try to remove the next image it doesn't work. It can be an ajax problem but I don't know.
best regards Klaus
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drupal_ajax_error.png | 11.43 KB | SonniesEdge-1 |
Comments
Comment #1
SonniesEdge-1 commentedI'm getting the same error. Looking in the error logs I also get the following entry:
[Fri Oct 08 13:42:17 2010] [error] [client 80.254.147.20] PHP Fatal error: Cannot create references to/from string offsets nor overloaded objects in /var/www/aatnewsite.velocit.co.uk/public_html/includes/common.inc on line 5875, referer: http://aatnewsite.velocit.co.uk/admin/structure/types/manage/test-conten...
The image file is not removed following the error.
Comment #2
rfaysubscribe. Hmm. Thought all these were fixed in #913846: Image/file field breaks after uploading two files Shucks.
Comment #3
rfayProbably same as #932648: Ajax warning when uploading to managed_file field
Comment #4
webchickRessin fressin. :(
Thanks for testing. :)
Comment #5
webchickComment #6
rfayIt may be even worse:
1. Add 3 images to a node.
2. Save the node.
3. Edit the node.
4. Remove 1 image by clicking the remove button (OK)
5. Click remove to remove another (it doesn't go away; no error message)
6. Click remove to remove the other remaining (it doesn't go away either)
7. Click submit to see if they *actually* got removed.
Get:
I do not see the PHP fatal anywhere. Will keep looking.
Comment #7
rfayHate how that happens. Setting back component and priority.
Comment #8
rfayThis is not an AJAX issue. It happens just the same with Javascript turned off.
Comment #9
alan d. commentedI can confirm this one too, with and without JavaScript. I think it is related to #763376: Not validated form values appear in $form_state.
Comment #10
effulgentsia commentedSeems to me like a duplicate of #926016: Several bugs when trying to remove files from a multivalued file/image field. Please re-open if it seems there's something new here. If it needs to be re-opened, it reads to me like a "critical".