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
Comment #1
thierry_gd commentedAnd 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
Comment #2
thierry_gd commentedEven after stopping php server and mysql database I still get the same error.
Module is not functionning at all now !!!!
Comment #3
thierry_gd commentedJust hope nothing else is broken !
Comment #4
thierry_gd commentedLink to download the module who cause the problem to help you resolve the issue : http://drupal.org/node/140917
Comment #5
brmassa commentedThierry,
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
Comment #6
brmassa commentedThierry,
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
Comment #7
thierry_gd commentedOK, I will test the module again when the new version will be released on drupal.org
Comment #8
(not verified) commented