Forums / Setup & design / Survey: submit error with «Form receiver» attribut

Survey: submit error with «Form receiver» attribut

Author Message

Pascal France

Sunday 04 April 2010 6:09:45 am

Hi,

Each time I add a «Form receiver» attribut in a survey I get this error message:

Fatal error:  Call to undefined function templateInit() in /var/www/test/ez43webin/extension/ezsurvey/datatypes/ezsurvey/ezsurveytype.php
 on line 377

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

when a user submits the form.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Nicolas Pastorino

Tuesday 06 April 2010 2:37:29 am

HI Pascal,

It seems the ezsurvey extension has not been updated to comply with eZ Publish 4.3. If you take a look at the release annoucement ( http://share.ez.no/blogs/ez/ez-publish-4.3.0-released ), it reads :

templateInit() has been deprecated, so in the future calls to  to get template instance should go via ezTemplate::factory()

So, as a short-term solution you can replace the calls to templateInit() accordingly. As a proper solution, i'd suggest to modify the extension itself in there http://projects.ez.no/ezsurvey_ezp4. Should be at least suggested in the forums.

Thanks for pointing this Pascal,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye