ah, right, 4images v1.7.1 chokes on any combinations of <? and in this mod mistakely treat code between <?xml and ?> as php
In includes/templates.php find: error_reporting($old);
Insert below: $str = preg_replace(
"/<!--\\\\ open tag (.+) \\\\-->(.*)<!--\\\\ close tag \\\\-->/siU",
"<?\\1\\2?>",
$str
);
Then find: // Compile variables in PHP code
Insert above: $template = preg_replace(
"/<\?+((?!php )(?!=)(?! ).+ )(.*)\?+>/siU",
"<!--\\\\ open tag \\1 \\\\-->\\2<!--\\\\ close tag \\\\-->",
$template
);