Fatal error: Cannot use string offset as an array in ../sites/all/modules/i18n/i18n_field/i18n_field.inc on line 165

Created on 31 August 2017, almost 8 years ago
Updated 26 January 2023, over 2 years ago

I can't reopen #1805066: Fatal error: Cannot use string offset as an array in ../sites/all/modules/i18n/i18n_field/i18n_field.inc on line 165 , so starting this as a new issue.

Fatal error: Cannot use string offset as an array in ../sites/all/modules/i18n/i18n_field/i18n_field.inc on line 165

The problem is that if you have broken field default value exports then i18n_field can trigger a PHP fatal error. Usually the text feild default value is in $object['default_value'][0]['value'], but if it is directly in $object['default_value'] then the fatal error will occur.

Not sure about the best solution - the field config needs to be fixed in this case, but on the other hand i18n should not blow up with a fatal error.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Fields

Created by

🇦🇹Austria klausi 🇦🇹 Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024