By bubuk.gabrok on
I'm having this problem with the webserver_auth module. A user logs in for the first time- webserver_auth creates the new user alright but gives errors of this manner:
warning: array_keys() [function.array-keys]: The first argument should be an array in /home/html/modules/user.module on line 352.
warning: implode() [function.implode]: Bad arguments. in /home/html/modules/user.module on line 352.
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/html/includes/database.mysql.inc on line 121.
No such errors on subsequent logins. Any ideas?
Comments
Also getting errors when user account is created.
I'm looking at using Drupal for my organizations Intranet. I'm running on Win2003, IIS, PHP5, MySQL, Drupal 6.4, Webserver_auth 1.2. When a user hits the site for the first time with Webserver_auth activated they get logged in and the account is created in the users table but the user gets the following errors.
Once the navigate away or do a simple refresh the seem to be fine. I can't go to production with this kind of error.
- warning: array_fill() [function.array-fill]: Number of elements must be positive in E:\Inetpub\wwwroot\UBIWIKI\includes\database.inc on line 240.
- warning: implode() [function.implode]: Invalid arguments passed in E:\Inetpub\wwwroot\UBIWIKI\includes\database.inc on line 240.
- warning: array_keys() [function.array-keys]: The first argument should be an array in E:\Inetpub\wwwroot\UBIWIKI\modules\user\user.module on line 500.
- 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 p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in E:\Inetpub\wwwroot\UBIWIKI\modules\user\user.module on line 500.
I'm wondering if this is just a problem related to running PHP on IIS? Any advice would be apprciated.
Have Same errors
Same error's pops up when I try to login first time using Webserver authentication, need help here :'-(