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

CommentFileSizeAuthor
#1 drupal_ajax_error.png11.43 KBSonniesEdge-1

Comments

SonniesEdge-1’s picture

Component: image system » ajax system
StatusFileSize
new11.43 KB

I'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.

rfay’s picture

subscribe. Hmm. Thought all these were fixed in #913846: Image/file field breaks after uploading two files Shucks.

rfay’s picture

webchick’s picture

Priority: Normal » Major

Ressin fressin. :(

Thanks for testing. :)

webchick’s picture

Component: ajax system » file.module
rfay’s picture

Component: file.module » ajax system
Priority: Major » Normal

It 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:

The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved.

I do not see the PHP fatal anywhere. Will keep looking.

rfay’s picture

Component: ajax system » file system
Priority: Normal » Major

Hate how that happens. Setting back component and priority.

rfay’s picture

This is not an AJAX issue. It happens just the same with Javascript turned off.

alan d.’s picture

I can confirm this one too, with and without JavaScript. I think it is related to #763376: Not validated form values appear in $form_state.

effulgentsia’s picture

Priority: Major » Critical
Status: Active » Closed (duplicate)

Seems 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".