Steps to reproduce:
1. Set up an email action at admin/config/system/actions
2. Include a URL field in it using the standard field token (e.g. [node:field_website])
3. Attach the action to trigger "After saving new content"
4. Create a node and provide a value for the URL field (e.g. http://www.example.com)
5. you will receive this error: Recoverable fatal error: Argument 1 passed to drupal_attributes() must be of the type array, null given, called in /var/www/walkfor.myelitis.org/includes/common.inc on line 2485 and defined in drupal_attributes() (line 2377 of /var/www/walkfor.myelitis.org/includes/common.inc).

Comments

john franklin’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new945 bytes

When node_save() or user_save() is called in the middle of a page load, the $item['attributes'] field may be cooked by url_field_presave() to a format suitable for the database API. Until #1801238: Remove serialized column data from Schema API is resolved, we'll need to check and possibly uncook it during the view code.

Attached patch does exactly that.

damienmckenna’s picture