This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

Upgrad errors with user.module and database.mysql.inc

I just upgraded my test site from version 4.6.6 to version 4.7.2. With the exception of a couple of errors on the upgrade log, everything seemed to go through without a hitch.

When I logged into the site as a user other than user number 1 after the upgrade, however, I was presented with the following errors:

* warning: array_keys() [function.array-keys]: The first argument should be an array in [my site path]/modules/user.module on line 349.
* warning: implode() [function.implode]: Bad arguments. in [my site path]/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 [my site path]/includes/database.mysql.inc on line 120.

FYI, line 349 in the user.module file reads as follows:

$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)));

And line 120 in the database.mysql.inc file is:

trigger_error(check_plain(mysql_error($active_db) ."\nquery: ". $query), E_USER_WARNING);

Has anyone else encountered these (or similar) errors? Or does anyone have any thoughts as to what I need to do to resolve them?

Can someone other than UID=1 Upgrade Drupal?

This is more of a question than a problem. I have a client who uses the UID=1 account as his primary account. I have an account on his site where I have all administrative priviledges possible through the access control menu. My question, would an account with all administrative priviledges selected, but not UID=1 be able to to update Drupal to a newer version (4.6 to 4.7)?

Thanks, Bryan

Database only upgrade from MySQL 4.0.x to 4.1.x

My webhost has recently upgraded the MySQL database server from 4.0.x to 4.1.x. I am currently running Drupal 4.7.2 with the old MySQL 4.0 database schema (i.e. charsets are latin). I would like to upgrade the database to the 4.1 schema (i.e. utf-8 charsets) but am not sure what the smoothest way to do it would be.

I am guessing I would;

1. back up all files and the database.
2. drop the old database then run the 4.1 script
3. replace all the druapl files.
4. reinstall all modules
5. import content back into the database

Update to 4.6.8 from 4.6.6

Upgrading 4.6.6:

Should I upgrade to 4.6.7 and then to 4.6.8, or can I upgrade directly from 4.6.6. to 4.6.8?

Thanks,
Mikkel

Block mod doesn't work after 4.7.1 to 4.7.2

Hey all,

I am wondering if anyone has experienced the block module not working after upgrading from 4.7.1 to 4.7.2 ...

What is happening for me: When I attempt to administer blocks from the administer menu, i just keep getting a blank page at admin/block , no error or anything.

I tried replacing the block module with old one from 4.7.1, but got the same results.

I know it must still be working somehow, because the majority of my site content is displayed in the blocks generated by the views module.

Gworks theme for 4.7 ?

Has anyone updated the gworks theme to work with 4.7?

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal