By benofsky on
I don't know what happened but suddenly I started getting the following:
* warning: array_keys(): The first argument should be an array in /home/benofsky/public_html/index/modules/user.module on line 339.
* warning: implode(): Bad arguments. in /home/benofsky/public_html/index/modules/user.module on line 339.
* 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 /home/benofsky/public_html/index/includes/database.mysql.inc on line 120.
* warning: array_keys(): The first argument should be an array in /home/benofsky/public_html/index/modules/user.module on line 339.
* warning: implode(): Bad arguments. in /home/benofsky/public_html/index/modules/user.module on line 339.
* 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 /home/benofsky/public_html/index/includes/database.mysql.inc on line 120.
At the top of the front page or when I view an individual node, I'm running Drupal 4.7
Comments
what site modifications preceded the error messages?
What were the last few modifications you made to your site before you began to observe these errors?
If you don't keep a log of your site modifications, you may want to consider doing so in the future.
You may want to note that the errors are occuring in user.module, so the changes may relate to modifications you made to the user list.
spritefully yours
spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...
Having Similar Problem
I'm seeing the same errors on a site I just upgraded to 4.7rc2 (from 4.5). In my case it looks like it was the privatemsg module. http://drupal.org/node/50629#comment-89781