agaskar.com

Aug 14 2007

Errors with anonymous users after clearing the cache: possibly user_access issue

Seeing something like this with the anonymous user after the cache is cleared?

warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/development/drupal/modules/user/user.module on line 361.
warning: implode() [function.implode]: Bad arguments. in /var/www/development/drupal/modules/user/user.module on line 361.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)’ at line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /var/www/development/drupal/includes/database.mysqli.inc on line 151.

You passed more than one string to user access. It takes ONE string, and optionally, an account.

Why did I do this? Not sure. Think I copied it from somewhere.

Comments (View)
Page 1 of 1
blog comments powered by Disqus