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

eZ debug

Timing: Jan 17 2025 22:47:18
Script start
Timing: Jan 17 2025 22:47:18
Module start 'content'
Timing: Jan 17 2025 22:47:18
Module end 'content'
Timing: Jan 17 2025 22:47:18
Script end

Main resources:

Total runtime0.0165 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0096 590.0234180.8125
Module start 'content' 0.00960.0036 770.835994.0547
Module end 'content' 0.01320.0033 864.890670.7031
Script end 0.0165  935.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.5073120.0002
Check MTime0.00106.2217120.0001
Mysql Total
Database connection0.001911.373910.0019
Mysqli_queries0.003420.454640.0008
Looping result0.00000.254020.0000
Template Total0.003018.010.0030
Template load0.00084.612510.0008
Template processing0.002213.316510.0022
Override
Cache load0.00053.215510.0005
General
dbfile0.00021.3696100.0000
String conversion0.00000.060630.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs