Forums / General / ezsurvey - function not registered
Nathalie Grimaud
Tuesday 02 May 2006 1:37:16 am
I use ezsurvey extension into two different environments (eZ 3.7.2 for both of them).With the first one there's no problem, with the second one I've got a strange behaviour at three places.
1 - in the public siteaccess the survey is not displayed but I've got the Submit and Cancel button displayed several times.There is a parser error and Function "survey_question_view_gui" is not registered.
2 - in the admin siteaccess when I want to preview the survey only the survey name and the sentence "Questions marked with * are required" are displayed.There is also a parser error.
3 - in the admin siteaccess when I want to edit the survey, the survey attributes are displayed but not the questions and I've got the Add question, Remove selected, Publish, Apply... displayed several times.There is also a parser error and Function "survey_question_view_gui" is not registered.
The only difference I see between the two environments is php version : 4.3 vs 4.4(I've already applied the changes suggested by Kristof)
What can be the reason of this malfunction ?
Xavier Dutoit
Tuesday 02 May 2006 2:53:45 am
ez 3.7 doesn't work (properly) in a php 4.3 environment. You should use ez 3.6 instead.
X+
http://www.sydesy.com
paolo tikulin
Wednesday 03 May 2006 12:06:37 am
Hello,
I've got the same problem of Nathalie in the ezSurvey (Function "survey_question_view_gui" is not registered),here my configuration:
OS: Linux Debian 3.1 Exponential: 3.7.2PHP 4.4.2
I also applied the changes suggested by Kristof, nothing change...
Should I decrease eZ and PHP version or have someone another solution?
Thanks
Kristof Coomans
Wednesday 03 May 2006 1:40:52 am
Did you clear all caches after enabling the extension? That maybe solves the problem with the undefined survey_question_view_gui template functions.
Can you post any parser errors, they can be helpful to investigate what goes wrong.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Wednesday 03 May 2006 2:03:17 am
Hi Kristof,
all the caches have been cleared, when I try to edit a survey I've got :
<i>parser error @ extension/ezsurvey/design/standard/templates/survey/edit.tpl:107[0] Unterminated tag "survey_question_edit_gui" does not match tag "section"</i>in the error log
and
<i>Function "survey_question_edit_gui" is not registered</i>in the warning log
Wednesday 03 May 2006 4:36:26 am
I couldn't reproduce your problem at an Exponential 3.8 site.
Do you have an override in settings/override or settings/[yoursiteaccessname]/override for site.ini with something like this:
[TemplateSettings] ExtensionAutoloadPath[] ExtensionAutoloadPath[]=...
Then remove the line <i>ExtensionAutoloadPath[]</i> from that file.
Wednesday 03 May 2006 5:49:44 am
Kristof,
I can't find the word to tell you how happy I am thanks to you because you just solved my problem !
I had a <i>ExtensionAutoloadPath[]</i> in my override/site.ini added by someone else working on the project.
So now ezsurvey works fine with Exponential: 3.7.2PHP 4.4.2
Thank you so muchNathalie
Wednesday 03 May 2006 6:51:29 am
You're welcome ;)