CW3.5 also dies with:
/xxx/cartoweb35/coreplugins/layers/common/Layers.php (line 88)
Looks like complaining about a layer missing or misconfigured?
To make the thing even more odd:
As long as CW templates are created by mapscript 5.2.1, the projects
are Ok, even using mapscript 5.4.2 later
After cw3setup.php --clean, CW3.3 and CW3.5 with mapscript 5.4.2 are
unable to produce a working template.