База данных

Главные вкладки

Аватар пользователя Sobaqeee Sobaqeee 19 января 2016 в 22:31

Возникла после установки CKEDITORA
Notice: Trying to get property of non-object в функции user_access() (строка 808 в файле /home/u12321/domains/gg.ru/modules/user/user.module).
Notice: Trying to get property of non-object в функции user_access() (строка 820 в файле /home/u12321/domains/gg.ru/modules/user/user.module).
Notice: Trying to get property of non-object в функции user_access() (строка 821 в файле /home/u12321/domains/gg.ru/modules/user/user.module).
Notice: Trying to get property of non-object в функции user_access() (строка 827 в файле /home/u12321/domains/gg.ru/modules/user/user.module).
Notice: Trying to get property of non-object в функции user_access() (строка 830 в файле /home/u12321/domains/gg.ru/modules/user/user.module).

В этих строчках речь идет о uid админа как я понял. Вот этот кусок с 808 по 830. Подскажите как исправить(

// User #1 has all privileges:
if ($account->uid == 1) {
return TRUE;
}

// To reduce the number of SQL queries, we cache the user's permissions
// in a static variable.
// Use the advanced drupal_static() pattern, since this is called very often.
static $drupal_static_fast;
if (!isset($drupal_static_fast)) {
$drupal_static_fast['perm'] = &drupal_static(__FUNCTION__);
}
$perm = &$drupal_static_fast['perm'];
if (!isset($perm[$account->uid])) {
$role_permissions = user_role_permissions($account->roles);

$perms = array();
foreach ($role_permissions as $one_role) {
$perms += $one_role;
}
$perm[$account->uid] = $perms;
}

return isset($perm[$account->uid][$string]);
}

Комментарии