Error: Cannot use string offset as an array in googleanalytics_form_user_profile_form_alter() (line 442 of googleanalytics.module)

Created on 16 September 2019, about 5 years ago
Updated 26 January 2023, almost 2 years ago

Got this fatal PHP error when I tried to edit a user.
PHP version is 7.2.22.
I fixed it by replacing:

$account->data['googleanalytics']['custom'] = FALSE;

at line in 442 in googleanalytics.module with:

$account->data['googleanalytics'] = ['custom' => FALSE];
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡±πŸ‡§Lebanon layalk

Live updates comments and jobs are added and updated live.
  • PHP 7.2

    The issue particularly affects sites running on PHP version 7.2.0 or later.

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