I'm trying hard to upgrade my Drupal 6.28 to 7.22 with no success.

I have followed all the steps, but when I try update.php this error happens.

PDOException: in system_update_files_database() (line 2268 of /home/.../modules/system/system.module).
The website encountered an unexpected error. Please try again later.

The function referred is this one, but I don't even know what to do with that. Any idea will be appreciated, I have searched thoroughly but I haven't found much on this error and certainly not a solution.

// Update the record.
if (count($updated_fields)) {
db_update('system')
->fields($updated_fields)
->condition('filename', $old_filename)
->execute();
}

Comments

sprnknwn’s picture

Still stuck. Any idea?

Thanks in advance.

sprnknwn’s picture

I keep trying things. I forgot to revert the site to English (it's in Spanish) and made another attempt carefully following each and every step. Unfortunately that didn't change a thing.

I can't believe my site simply can't be upgraded. Please, help.

drlipodron’s picture

I have the sme mistake when I enter Admin (admin/*) path at my site.
Ver. Drupal 7.22
I have different php version on server and home PC. On my server version of php is 5.4 (Admin's page are not working); on my home PC version of php is 5.3 (Admin's page are working).
What php version have you?

sprnknwn’s picture

Hi, thanks for replying.

Mine is 5.2.17

I've read in the documentation it says that Drupal 7 needs "PHP 5.2.5 or higher (5.3 recommended)" and that would be a good reason why my site isn't working, but the fact is that I've got another production site perfectly working with Drupal 7 in the same account! So I don't understand.

sprnknwn’s picture

Ok, I've just discovered that "5.2.17" is higher than "5.2.5", thought it was 5.2.1.7

So, that is discarded from the issue. Other than that, still stuck.