Spotted endlessly in production:
390 Invalid argument: function: not string, closure, or array in /srv/mediawiki/php-1.25wmf21/includes/TemplateParser.php on line 203 202 error: syntax error, unexpected T_STRING in /srv/mediawiki/php-1.25wmf21/includes/TemplateParser.php(136) : eval()'d code on line 1
Two bugs here:
- The broken template causing parse errors needs fixing ASAP
- We need a way to keep broken templates from hitting prod
It was suggested on IRC earlier this week that we could help avoid this happening by adding a unit test to test template compilation prior to committing. The other option would be catching the error condition and failing more gracefully.