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];

Comments

layalk created an issue. See original summary.

layalk’s picture

Issue summary: View changes
layalk’s picture

Patch added.

hass’s picture

Status: Active » Needs review
hass’s picture

Version: 7.x-2.6 » 7.x-2.x-dev

  • japerry committed 97bfed98 on 7.x-2.x
    Issue #3081481 by japerry: Fix error on account profile page when...
japerry’s picture

Status: Needs review » Fixed
Issue tags: -

Had to use a slightly different approach, as drupal core sets $account->data to false if its empty. Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.