In the view.php, line 108, templateInit() is not recognize.
Add that : require_once( 'kernel/common/template.php' );
Found trying to make an embedded survey work (see my other issue)
EZP-15814 embeded survey doesn't work
EZP-15817 ez survey store from an embedded survey