On submission of a fairly simple webform I am getting:
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/mysite/modules/user/user.module on line 378.
* warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/mysite/modules/user/user.module on line 379.
* warning: implode() [function.implode]: Invalid arguments passed in /home/mysite/modules/user/user.module on line 379.
* 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/mysite/includes/database.mysql.inc on line 172.
I did have phplist installed, but removed it and reset settings.php to stock standard just in case it was related.
But same error occurs.
I have browsed the issues for hours and found nothing that matches.
PHP 5.2.6/Mysql 5/Apache 2.
Any ideas?
Comments
Comment #1
quicksketchCould you be more specific about what lead up to the problem arising? I'm not able to reproduce from a stock Webform installation.
Comment #2
typehost commentedI have the exact problem - but related to submitting all content types - maybe it is not related to webform?
Comment #3
typehost commentedI patched the user module with the code on this page:
http://drupal.org/files/issues/165642-D5_0.patch
seems to have solved the issue.
Comment #4
quicksketchIt seems the general solution was to upgrade to at least Drupal 5.8 or later. It also doesn't seem to have anything to do with Webform.
Comment #5
quicksketch