I'd love to be able to edit Addressfield data in a view, but although the form and content display correctly, when I try to use it I get a 500 error.

If I select the "Click to edit" option, when I click that button I get this:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /system/ajax
StatusText: Internal Server Error
ResponseText:

If I don't select that option, the form appears correctly but when I click the Save button I get this:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /system/ajax
StatusText: Service unavailable (with message)
ResponseText: EntityMalformedException: Missing bundle property on entity of type node, in entity_extract_ids() (line 7501 of /var/www/phaidon/includes/common.inc).

I don't know which module is causing the problem, but I'm starting here...

Comments

adam_b’s picture

Title: Editablefields + Addressfield + View = 500 error » Editablefields + View = Ajax 500 error

I've just realized that it's happening now with regular text fields also :( so nothing to do with Addressfield.

adam_b’s picture

Tried it using a rendered node in the view rather than fields, and I got a more exotic error message this time:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /system/ajax
StatusText: Service unavailable (with message)
ResponseText: Recoverable fatal error: Argument1 passed to drupal_array_get_nested_value() must be an array, boolean given, called in /var/www/pxxxxxx/sites/all/modules/editablefields/editablefields.module on lilne 315 and defined in drupal_array_get_nested_value() (line 6452 of /var/www/pxxxxxx/includes/common.inc).

ETA: despite the message, the text changes are actually saved, so I'm using this for the time being.

adam_b’s picture

Status: Active » Closed (duplicate)

I've just found that the latter error condition is discussed in #1206656: Error on Node view page: Argument 1 passed to drupal_array_get_nested_value(). The first one isn't, but I'm hoping that it's related.