Hi, after a fresh install of drupal on my provider's server, I got these errors: * warning: array_keys() [function.array-keys]: The first argument should be an array in /home/newstyle/domains/newstyle.lt/public_html/tt/modules/user.module on line 351. * warning: implode() [function.implode]: Bad arguments. in /home/newstyle/domains/newstyle.lt/public_html/tt/modules/user.module on line 351. * 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/newstyle/domains/newstyle.lt/public_html/tt/includes/database.mysql.inc on line 120.
I created the database, it's accessible, so this can't be the cause.
The one suspect (at least to me) is the fact that the server does not support the 'user' session save handler, so I'm forced to use 'files'. The software on the server is mysql 4.0.26 and php 4.4.4, the db schema was created from the correct (4.0) dump.
The phpinfo() is here : http://dobilas.serveriai.lt/PHP/
If anybody's got any ideas as to why this may be so, I'm open to suggestions.
Thanks in advance, Domas
Domas Monkus wrote:
Hi, after a fresh install of drupal on my provider's server, I got these errors: * warning: array_keys() [function.array-keys]: The first argument should be an array in /home/newstyle/domains/newstyle.lt/public_html/tt/modules/user.module on line 351. * warning: implode() [function.implode]: Bad arguments. in /home/newstyle/domains/newstyle.lt/public_html/tt/modules/user.module on line 351. * 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/newstyle/domains/newstyle.lt/public_html/tt/includes/database.mysql.inc on line 120.
I created the database, it's accessible, so this can't be the cause.
The one suspect (at least to me) is the fact that the server does not support the 'user' session save handler, so I'm forced to use 'files'.
Sorry, but then you can't use Drupal on that server. Setting the session save handler to "user" is a requirement.
Cheers, Gerhard
Sorry, but then you can't use Drupal on that server. Setting the session save handler to "user" is a requirement.
it seems you were right. The error WAS caused by the fact that there was no 'user' session save handler available. Once I got it enabled, it started working.
Thanks, Domas