When changing a fields widget type to read only the following error is output.
Notice: String offset cast occured in _field_invoke_multiple() (line 321 of modules/field/field.attach.inc).
It's fine with the hidden option. Using 7.23 and on a long text and summary field with profile2.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | field_extrawidgets_notice_string_offset_cast-2097901-3.patch | 925 bytes | Jan van Diepen |
Comments
Comment #1
sashkernel commentedAny clue what's causing this?
All I have in my case is simply module enabled. Did not do any configure any validation on fields at all yet.
Comment #2
interdruper commentedNotice is raised if PHP 5.4+, due to a pending bug in core, see https://drupal.org/node/1824820 .
Until it is fixed, try this workaround: add these 3 lines before line 195:
Comment #3
Jan van Diepen commentedWe need this patch to be added to our devtrac install profile.
So here's that patch.
Comment #4
james.williams#1824820: String offset cast notice in field_invoke_method_multiple() was fixed in Drupal core, so this should only be needed on unsupported versions of core. Plus, it causes its own notice(s) on forms for entities that don't have the language property (e.g. terms), so would have needed further work anyway.