I got the following error : Invalid marker content in modules/zipcode/zipcode.module : line 147 when I try to refresh the translation of one of my modules.

The code line on which "Live Translation" block is
$form[$field['field_name']]['#title'] = t($field['widget']['label']);

Comments

thierry_gd’s picture

Priority: Normal » Critical

And now after I have got that error for each module which I try to get the translation status I get the following error :

warning: Invalid argument supplied for foreach() in ...\modules\perso\live_translation\lt_extractor.module on line 59.

==> seem completely broken now

thierry_gd’s picture

Priority: Critical » Normal

Even after stopping php server and mysql database I still get the same error.

Module is not functionning at all now !!!!

thierry_gd’s picture

Priority: Normal » Critical

Just hope nothing else is broken !

thierry_gd’s picture

Link to download the module who cause the problem to help you resolve the issue : http://drupal.org/node/140917

brmassa’s picture

Assigned: Unassigned » brmassa

Thierry,

thanks a lot for reporting and helping.

2 problems:
* t() function should be only used for literal strings. not variables. thats why the extractor gives a warning.
* i dont know why it crashed. im gonna look more deeply into the code. soon i will report some fixes. im gonna download zipcode and test it.

regards,

massa

brmassa’s picture

Status: Active » Fixed

Thierry,

i fixed a bug about foreach. on my system, ZipCode and every module after it did worked. Altought, the warning is still there, as i told it will.

regards,

massa

thierry_gd’s picture

OK, I will test the module again when the new version will be released on drupal.org

Anonymous’s picture

Status: Fixed » Closed (fixed)