Path

ez projects / ezsurvey / forum / general / php fatal error: call to u...


PHP Fatal error: Call to undefined function templateInit()

You need to be logged in to post messages in the forums. New users may register here.

Pierre Tissot

Member since:
09 January 2008

Posts: 2

Thursday 03 June 2010 11:37:29 am

When I was submiting the survey I had a ugly ez publish error, and in the apache I had this error:

PHP Fatal error: Call to undefined function templateInit() in /var/.../ezpublish-4.3.0/..../ezsurvey/datatypes/ezsurvey/ezsurveytype.php on line 377

To solve this i change the line 377 from:



$tpl_email = templateInit();


 

to:



$tpl_email = eZTemplate::instance();


 

and work fine.

Ez survey Version 2.1-1
Ez publish 4.3

PiR
Up

Brendan Pike

Member since:
11 March 2003

Posts: 86

Wednesday 18 August 2010 8:02:30 am

Thanks Pierre

I experienced this also and found your fix worked. Did you report this bug?

Australian eZ publish specialist http://www.dbinformatics.com.au

Up

You need to be logged in to post messages in the forums. New users may register here.