I am getting this error message:

warning: Illegal offset type in isset or empty in /home/www/xxxxx/modules/user/user.module on line 511.

Anyone no why and how to rectify?

Comments

nicksanta’s picture

What modules have you installed? have you made a custom module?

open.emspace.com.au

----------------------
Nick Santamaria

Rockmeister’s picture

Through trial and error I determined that my other modules had an issue with the color_scheme module. I removed it and the problem seemed to have been eliminated. Need to do a bit more testing before I am sure though. Thanks for replying.

Rockmeister’s picture

The error is back: warning: Illegal offset type in isset or empty in user.module on line 511.

toddchris’s picture

Did you ever figure out what causes this? I'm also getting the same error.

Rockmeister’s picture

Nope, but I managed to get rid of this thru trial and errror.

darthcheeta’s picture

anyone find any solutions to this? i've been clicking modules on and off for a while and can't shake it.

cleverhoods’s picture

Hi all

I've had this error too, and first i could not solve this.

I have some modules what i developed so i start there. I check the d 6.15 user modul's 511 row and i've found out, the problem is with the permission handling.

After that i've checked again my modules and i've found the error: in my hook_menu at the access controlling.

function hook_menu() {
  $items = array();
  $access[] = array('access content');

  $items['problem'] = array(
    'title' => t('Problem'),
    'page callback' => 'display_problem_page',
    'access arguments' => $access,
    'type' => MENU_NORMAL_ITEM,
  );

  return $items;
}

I have an array for the permission but when i gave it the menu item, i forget to set the exactly value of my $access array.

The solution was simple:

    'access arguments' => $access[0],

i hope you can use this ^^