Download & Extend

Call to undefined function when updating

Project:Internationalization
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I've got Call to undefined function after runnig update.php

The error message

Updating

An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page
An error occurred. http://fejos.hu/update.php?id=3&op=do
Fatal error: Call to undefined function to() in /data/www/fejos.hu/vh_www/web/sites/all/modules/i18n/i18nprofile/i18nprofile.install on line 37

The error log page

Drupal database update

The update process was aborted prematurely while running update #2 in i18nprofile.module. All errors have been logged. You may need to check the watchdog database table manually.

Reminder: don't forget to set the $update_free_access value in your settings.php file back to FALSE.

* Main page
* Administration pages

The following queries were executed

My workaround

I was "lucky" because I haven't used i18n seriously before, so I could delete it from my installation.
I droped every i18n related tables from the database and deleted i18n related rows from system and variables tables.
I think Drupal thinks there was no i18n previously and dosent try to update i18n tables rather creating them from scratch.

Comments

#1

Status:active» postponed (maintainer needs more info)

There's a new dependency on this version. Did you follow the upgrade instructions (on the module's main page) and disabled all the modules before upgrading? (that should take care of new dependencies)

#2

Status:postponed (maintainer needs more info)» fixed

#3

Status:fixed» closed (fixed)

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

#4

I'm also getting this error. I did indeed disable all contrib modules before upgrading to Drupal 6.4. I then replaced my i18n folder with the current 6-x dev version, and turned on just the Internationalization module itself and ran the update.php. I am working off a test site but I have lots of translated content and menus from Drupal 5 that I am trying to bring forward. DO NOT want to recreate from scratch if at all possible.