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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:15:27
Script start
Timing: Jan 18 2025 02:15:27
Module start 'layout'
Timing: Jan 18 2025 02:15:27
Module start 'content'
Timing: Jan 18 2025 02:15:28
Module end 'content'
Timing: Jan 18 2025 02:15:28
Script end

Main resources:

Total runtime0.7405 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1641152.6406
Module start 'layout' 0.00510.0030 741.804739.4922
Module start 'content' 0.00810.7307 781.2969526.6328
Module end 'content' 0.73890.0016 1,307.92978.1250
Script end 0.7405  1,316.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4710160.0002
Check MTime0.00140.1871160.0001
Mysql Total
Database connection0.00090.121710.0009
Mysqli_queries0.694393.7542540.0129
Looping result0.00050.0690520.0000
Template Total0.709495.820.3547
Template load0.00280.380620.0014
Template processing0.706695.413820.3533
Template load and register function0.00020.025510.0002
states
state_id_array0.00090.118810.0009
state_identifier_array0.00120.167420.0006
Override
Cache load0.00220.2978160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.067320.0002
Fetch class attribute name0.00100.138630.0003
XML
Image XML parsing0.00050.072020.0003
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00070.1004160.0000
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs