I installed the new version of i18n (including i18ncontent). When I run the update.php script of Drupal, it tries to upgrade various modules from i18n, but one of them fails. The error I have is this:

An error occurred. http://arco.esi.uclm.es/update.php?id=35&op=do
Fatal error: Call to undefined function i18ncontent_locale_refresh() in /usr/local/stow/drupal-6.3/sites/xxxxxxxxx/modules/i18n/i18ncontent/i18ncontent.install on line 36

I search a little on the code of that module and the function i18ncontent_locale_refresh is defined in i18ncontent.module. I don't know why it is not visible to i18ncontent.install script.

Comments

cpelham’s picture

I also get this error:

An error occurred. http://xxxxx/drupal/update.php?id=17&op=do
Fatal error: Call to undefined function i18ncontent_locale_refresh() in /xxxxxx/drupal/sites/all/modules/i18n/i18ncontent/i18ncontent.install on line 36

cpelham’s picture

Status: Active » Needs review

I overcame this problem by copying function i18ncontent_locale_refresh() from i18ncontent.module and pasting it at the top of i18content.install. When I ran the update again, it was able to find the function and proceed. After successfully running the update, I then removed the function from the install file so it would not later through a duplicate function definition error. Does this have any negative ramifications?

jose reyero’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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