I'm getting the following error on a Views page:

warning: Illegal offset type in /home/NAME/public_html/sites/all/modules/l10n_client/l10n_client.module on line 267.

I've no idea what's causing it, what it means, or what to do about it.

Thanks.

Comments

Gábor Hojtsy’s picture

What is on that line in l10n_client.module?

chianti’s picture

Thanks for your reply.

 function l10_client_add_string_to_page($source = NULL, $translation = NULL, $textgroup = 'default') {
 static $strings = array();
 if (isset($source)) {
    $strings[$textgroup][$source] = $translation; <--------------- line 267
  }
  else {
    return $strings;
  }
}

This warning is happening on two Views pages, one initially cloned from the other.
There's nothing special about the Views though - they're very simple.
One thing to note is that I'm using Views 3.x Dev for D6.

Also note, the default (English) url of the View is /dept/news. But I have made
an alias where this path is aliased to is /dept/noticias when Spanish is selected.

Thanks.

pbonnefoi’s picture

I'm having the exact same issue. Any solution to the problem yet ?

Thanks.

SebCorbin’s picture

Status: Active » Postponed (maintainer needs more info)

Can you try some debug on it to know what is in $textgroup and $translation on that line ?

Gábor Hojtsy’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

Drupal 6 is not supported. The same problem was not reported for Drupal 7.