I upgraded using the update.php script and it went fine. However, when I browse the site as any user, I get errors whenever I access any one of the nodes.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /usr/local/www/suikoden/modules/user.module on line 349.
* warning: implode() [function.implode]: Bad arguments. in /usr/local/www/suikoden/modules/user.module on line 349.
* 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 /usr/local/www/suikoden/includes/database.mysql.inc on line 120.
The offending line on user.module:349 is:
// To reduce the number of SQL queries, we cache the user's permissions
// in a static variable.
if (!isset($perm[$account->uid])) {
// This line right here breaks.
$result = db_query("SELECT DISTINCT(p.perm) FROM {role} r INNER JOIN {permission} p ON p.rid = r.rid WHERE r.rid IN (%s)", implode(',', array_keys($account->roles)));
// It seems that $account->roles is not an array, or something like that.
$perm[$account->uid] = '';
while ($row = db_fetch_object($result)) {
$perm[$account->uid] .= "$row->perm, ";