I had Drupal 5. Disabled all my modules, upgraded to Drupal 6. Downloaded i18n, extracted, enabled it, ran update.php and received the follow message from there:
An error occurred. http://amarok.kde.org/update.php?id=6&op=do <br /> <b>Fatal error</b>: Call to undefined function _system_update_utf8() in <b>/home/amarok/amarok.kde.org/modules/i18n/i18n.install</b> on line <b>100</b><br />

Comments

eean’s picture

I tried the latest i18n snapshot, and received this error instead:
An error occurred. http://amarok.kde.org/update.php?id=7&op=do <br /> <b>Fatal error</b>: Call to undefined function tt() in <b>/home/amarok/amarok.kde.org/modules/i18n/i18nblocks/i18nblocks.module</b> on line <b>197</b><br />

wim leers’s picture

Without having looked at the code, it seems like the .install file is relying on functions that are defined *outside* of the .install file, i.e. somewhere in the i18n module. Copying those into the .install file, renaming them and then using them, should fix that.

eean’s picture

Enabling the Strings module gave me the original error message. So there probably is a bug there, the Strings module needs to be enabled for i18n to update but that dependency isn't explicit.

Doesn't solve my first problem though. :) I'll look to see if I can find where _system_update_utf8() is defined, if anywhere...

eean’s picture

In reference to the _system_update_utf8 function:
<Bdragon> Yeah, you can remove any old updates containing it... It was for the 4.6 to 4.7 conversion. http://drupal.org/node/22218#utf8_sql

So that's what I did, just removed the two calls of that function. The update is now working it looks like.

jose reyero’s picture

Status: Active » Fixed

These were old upgrade scripts from 4.x and 5.x

You should have the module updated to latest 5.x before attempting D6 upgrade.

Removed that obsoleted functions.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.