The l10n_client (5.x) throws an error when a new string is loaded into the l10n_client. The actual error I get is:
recoverable fatal error: Object of class stdClass could not be converted to string in /drupal5/sites/all/modules/l10n_client/l10n_client.module on line 319.
The $lid comes in as an object, but _l10n_client_dom_strings is prepared to handle just a string for $lid. I was not sure sure whether this should be fixed in _l10n_client_dom_strings or whether $lid should not be an object by the time it gets here. A potential fix could be on line 316 of l10n_client.module:
Changing:
$lid = $values[2]
to...
is_object($values[2]) ? $lid = $values[2]->lid : $lid = $values[2];
unless everything in the array of $l10n_strings[] built in l10n_client_footer() should be a string to begin with. I was not sure.
Comments
Comment #1
Gábor HojtsyHow is it becoming an object?
Comment #2
Jose Reyero CreditAttribution: Jose Reyero commented@Gabor,
My fault, this is some integration from i18n to l10n client, nothing you should worry about, I'll take care of this one
Comment #3
Jose Reyero CreditAttribution: Jose Reyero commentedJust fixed, it was a but in the locale module replacement (l10n_client/locale/locale.module).
It was difficult to track because it only happened when the string was first found on the site.
Comment #5
Gábor Hojtsy#363258: recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/html/drupal5/sites/all/modules/l1 was just marked duplicate of this. It would probably be nice to release a new version of the 5.x module, so people will not stumble on this issue.
Comment #6
janusman CreditAttribution: janusman commentedsubscribing