Give Missing argument 1 for locale() after installed in drupal 5.6.

"warning: Missing argument 1 for locale(), called in /mnt/w0511/d44/s22/b02bd24d/www/max-pt.net/sites/all/modules/l10n_client/l10n_client.module on line 73 and defined in /mnt/w0511/d44/s22/b02bd24d/www/max-pt.net/modules/locale/locale.module on line 163."

Comments

int’s picture

With 5.x-1.x-dev version give two error, one is the same.

 * warning: Missing argument 1 for locale(), called in /mnt/w0511/d44/s22/b02bd24d/www/max-pt.net/sites/all/modules/l10n_client/l10n_client.module on line 142 and defined in /mnt/w0511/d44/s22/b02bd24d/www/max-pt.net/modules/locale/locale.module on line 163.
    * warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /mnt/w0511/d44/s22/b02bd24d/www/max-pt.net/sites/all/modules/l10n_client/l10n_client.module on line 147.
gábor hojtsy’s picture

Status: Active » Postponed (maintainer needs more info)

Did you apply the patch supplied with l10n_client?

int’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (fixed)

No... Sorry.

hack the core, and manualy, is really a bad thing.

"This 6.x functionality depends on features only available in Drupal 6.x, so
to make it work with Drupal 5, you need to apply the locale_module.patch file
provided. This makes the module useable with Drupal 5."

ya :)