Error updating
HXn - July 12, 2007 - 16:11
| Project: | Internationalization |
| Version: | 5.x-2.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
I got the following errors upon updating from i18n-5.x-1.x-dev to i18n-5.x-2.1
array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /var/www/html/drupal/update.php on line 309.
Invalid argument supplied for foreach() in /var/www/html/drupal/update.php on line 540.
Will this affect the site?

#1
I too got the same error today for the same upgrade. I am noticing some weird effects, including:
1. Blocks screen doesn't save new Multilingual Block
2. After I create a new content Page in English, the language switch (Francais) button brings me to an unrelated French page. Always the same one. Every time I create new content.
For the record, here was the message after I updated:
Drupal database update
* warning: array_merge() [function.array-merge]:
Argument #2 is not an array in
/home/cote/public_html/update.php on line 309.
* warning: Invalid argument supplied for foreach() in
/home/cote/public_html/update.php on line 540.
Updates were attempted. If you see no failures below, you
may proceed happily to the administration pages. Otherwise,
you may need to update your database manually. All errors
have been logged.
Reminder: don't forget to set the $access_check value at
the top of update.php back to TRUE.
* main page
* administration pages
The following queries were executed
i18n module
Update #6
* No queries
Update #7
* UPDATE {system} SET weight = -10 WHERE name = 'i18n'
AND type = 'module'
* UPDATE {system} SET weight = 10 WHERE name =
'translation' AND type = 'module'
Update #8
* ALTER TABLE {i18n_variable} DEFAULT CHARACTER SET
utf8
* ALTER TABLE {i18n_variable} CHANGE `name` `name`
varbinary(48) DEFAULT '' NOT NULL, CHANGE `language`
`language` varbinary(12) DEFAULT '' NOT NULL, CHANGE
`value` `value` longblob DEFAULT '' NOT NULL
* ALTER TABLE {i18n_variable} CHANGE `name` `name`
varchar(48) CHARACTER SET utf8 DEFAULT '' NOT NULL, CHANGE
`language` `language` varchar(12) CHARACTER SET utf8
DEFAULT '' NOT NULL, CHANGE `value` `value` longtext
CHARACTER SET utf8 DEFAULT '' NOT NULL
#2
Only critical bugs for 5.x.
Upgrade paths are safe only between stable versions.