Closed (fixed)
Project:
Internationalization
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2008 at 11:58 UTC
Updated:
6 Oct 2008 at 19:36 UTC
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
Comment #1
cpelham commentedI 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
Comment #2
cpelham commentedI 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?
Comment #3
jose reyero commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.