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];
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | google_analytics-php-fatal-error-edit-user-3081481-3-d7.patch | 591 bytes | layalk |
Comments
Comment #2
layalkComment #3
layalkPatch added.
Comment #4
hass commentedComment #5
hass commentedComment #7
japerryHad to use a slightly different approach, as drupal core sets $account->data to false if its empty. Fixed.