Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
Operating System: Debian Etch
PHP Version: PHP 5.2.0-8+etch7
Database and version: 5.0.32-Debian_7etch1-log
Browser (and version): Firefox 2
Description
While trying to understand a strange template error, I notice the existence of a "CompileComments" setting available in site.ini (disabled by default).
A fatal error occurs when I set it to "enabled" in the site.ini global override :
---------------
Parse error: syntax error, unexpected '}' in /var/www/ez40/var/ezwebin_site/cache/template/compiled/pagelayout-6866d9f8d01866d86b1ef551109b9c3b.php on line 4172
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.
--------------
The error don't always occur at the same location / in the same template.
The example above comes from a fresh ez4.0+ezwebin installation and occurs in the agelayout.tpl
The initial error I encountered was in a 'folder' node/view/full override.
Is this setting obsolete ?
Steps to reproduce
1) Download ez4.0 and do a simple installation : english (main language) and french optional, ezwebin package, uri mode.
2) Finish install, hit the site frontpage.
3) Add the following in settings/override/site.ini.append.php :
[TemplateSettings]
CompileComments=enabled
4) Clear cache, refresh the site frontpage
5) Kaboom