Error after installation: Unsupported operand types in user.admin.inc

Created on 21 April 2016, almost 9 years ago
Updated 17 February 2025, about 2 months ago

I had a problem with activation of the owa module on Drupal 7.41

After enabling the module, my site was dead (error 500).

Investigation revealed errors in PHP logs:
PHP Fatal error: Unsupported operand types in *mydrupalpath*\modules\user\user.admin.inc on line 712

This was caused by this statement in owa.module:
return array( 'administer open web analytics', 'opt-in or out of tracking in owa', 'use PHP for tracking visibility in owa');

I fixed it with this code:
return array(
'administer open web analytics' => array(
'title' => t('administer open web analytics'),
'description' => t('administer open web analytics'),
),

'opt-in or out of tracking in owa' => array(
'title' => t('opt-in or out of tracking in owa'),
'description' => t('opt-in or out of tracking in owa'),
),

'use PHP for tracking visibility in owa' => array(
'title' => t('use PHP for tracking visibility in owa'),
'description' => t('use PHP for tracking visibility in owa'),
),
);

This resolevd my issue. Hope this helps for others..

🐛 Bug report
Status

Closed: outdated

Component

Code

Created by

🇧🇪Belgium liezie_d

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