[SOLVED] Illegal string offset 'en_US' in DataObject.inc.php on line 133

I get the following in the httpd error log every time when I press Save in Settings->Site Setup:

[Sun Sep 23 23:39:34.324039 2018] [:error] [pid 23960] [client 5.20.xx.xx:34706] PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs3/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: https://lmaleidykla.lt/ojs3/index.php/index/admin/settings
[Sun Sep 23 23:39:34.324485 2018] [:error] [pid 23960] [client 5.20.xx.xx:34706] PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs3/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: https://lmaleidykla.lt/ojs3/index.php/index/admin/settings
[Sun Sep 23 23:39:34.702035 2018] [:error] [pid 23960] [client 5.20.xx.xx:34706] PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs3/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: https://lmaleidykla.lt/ojs3/index.php/index/admin/settings
[Sun Sep 23 23:39:34.702308 2018] [:error] [pid 23960] [client 5.20.xx.xx:34706] PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs3/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: https://lmaleidykla.lt/ojs3/index.php/index/admin/settings
[Sun Sep 23 23:39:34.705398 2018] [:error] [pid 25253] [client 5.20.xx.xx:34710] PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs3/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: https://lmaleidykla.lt/ojs3/index.php/index/admin/settings
[Sun Sep 23 23:39:34.705678 2018] [:error] [pid 25253] [client 5.20.xx.xx:34710] PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs3/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: https://lmaleidykla.lt/ojs3/index.php/index/admin/settings

I got similar errors when I imported the db from OJS 2.4.8. Is it because of some problematic articles?

These were errors when running php tools/upgrade.php upgrade:
[schema: dbscripts/xml/ojs_schema.xml]
[data: dbscripts/xml/indexes.xml]

[code: Installer Installer::installDefaultNavigationMenus]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133

PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133

[code: Installer Installer::migrateStaticPagesToNavigationMenuItems]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133

[code: Installer Installer::migrateSRLocale]

[code: Installer Installer::migrateNOLocale]

[code: Installer Installer::concatenateIntoAbout]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/db/SettingsDAO.inc.php on line 35
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/db/SettingsDAO.inc.php on line 35

[code: Installer Installer::concatenateIntoMasthead]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/db/SettingsDAO.inc.php on line 35
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/db/SettingsDAO.inc.php on line 35

[code: Installer Installer::migrateCounterPluginUsageStatistics (skipped)]

[code: Installer Installer::migrateArticleMetadata]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/db/SettingsDAO.inc.php on line 35
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/db/SettingsDAO.inc.php on line 35
[data: dbscripts/xml/upgrade/3.0.0_update.xml]

[code: Installer Installer::clearDataCache]

[code: Installer Installer::migrateUserRoles]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133

[code: Installer Installer::fixReviewForms]

[code: Installer Installer::htmlifyEmailTemplates]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/db/SettingsDAO.inc.php on line 35
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/db/SettingsDAO.inc.php on line 35
[note: docs/release-notes/README-BEACON]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]

[code: Installer Installer::installEmailTemplate]
[data: dbscripts/xml/upgrade/3.0.0_scheduledTasks.xml]

[code: Installer Installer::localizeCustomBlockSettings]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133

[code: Installer Installer::convertEditorDecisionNotes]

[code: Installer Installer::convertQueries]

[code: Installer Installer::migrateFiles]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133

[code: Installer Installer::convertSupplementaryFiles]

[code: Installer Installer::provideSupplementaryFilesForReview]

[code: Installer Installer::setFileUploader]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133

[code: Installer Installer::setFileName]
PHP Warning: Illegal string offset ‘en_US’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Illegal string offset ‘lt_LT’ in /var/www/html/ojs33/lib/pkp/classes/core/DataObject.inc.php on line 133
[data: dbscripts/xml/upgrade/3.0.0_postupdate.xml]

It was because of my old experiments - I had 2 mailingAddress rows with locale defined, when I tried to make mailingAddress multilingual. After I deleted those 2 records, I have no more warnings.

2 Likes