The compile all command stops compiling templates when it
hits the first error. Instead, it should go on to compile the
rest of the templates in the directory.
(Also, the way it it is structured now, it can re-compile the
same template several times.)
Added a quick fix using a constant WACT_ERROR_CONTINUE which
is defined in framework/template/compiler/compileall.inc.php
and if found by framework/util/debugerrorhandler.inc.php,
disables the exit()s.
Templates with errors do get compiled more than once so this
is not a complete fix.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK implemented a better hack by reorganising
debugerrorhandler a little. CompileAll now only generates
one error message per error but continues to compile all
templates.
The main issue in debugerrorhandler seems to be the
relationship between the BareBonesErrorHandler (which is
what is actually getting called when an error happens in a
single template - that probably needs fixing) and a call to
ImportVarFile() which results in further parsing (notes in
source of debugerrorhandler).
Current state is probably acceptable for new release.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=569780
Added a quick fix using a constant WACT_ERROR_CONTINUE which
is defined in framework/template/compiler/compileall.inc.php
and if found by framework/util/debugerrorhandler.inc.php,
disables the exit()s.
Templates with errors do get compiled more than once so this
is not a complete fix.
Logged In: YES
user_id=569780
OK implemented a better hack by reorganising
debugerrorhandler a little. CompileAll now only generates
one error message per error but continues to compile all
templates.
The main issue in debugerrorhandler seems to be the
relationship between the BareBonesErrorHandler (which is
what is actually getting called when an error happens in a
single template - that probably needs fixing) and a call to
ImportVarFile() which results in further parsing (notes in
source of debugerrorhandler).
Current state is probably acceptable for new release.