Forums / Setup & design / ezsurvey forgets questions?!

ezsurvey forgets questions?!

Author Message

Marin Orlic

Monday 22 August 2005 3:02:37 am

First to mention that I'm using ez 3.7 (because of php 4.4) - I'm not sure that ezsurvey extension is compatible with it (I'll check when I find the time).

What happens is - on a defined survey, all possible answers have the same text.. other fields are also duplicated (for instance if you have a question with 5 possible answers, they're all duplicated versions of the LAST ONE.. always). Survey was first defined on ez3.5 and then migrated to 3.7 and everything was fine for a while.. I can't edit the survey cause this keeps happening.

It works fine on ez 3.6.1, php 4.3.11, all the questions are commited to database properly.

For example,

<?xml version="1.0" encoding="UTF-8"?> 
 <options> 
   <option> 
     <label>abc</label> 
     <value>5</value> 
     <checked>0</checked> 
     <correct>0</correct> 
   </option> 
   <option> 
     <label>abc</label> 
     <value>5</value> 
     <checked>0</checked> 
     <correct>0</correct> 
   </option> 
   <option> 
     <label>abc</label> 
     <value>5</value> 
     <checked>0</checked> 
     <correct>0</correct> 
   </option> 
   <option> 
     <label>abc</label> 
     <value>5</value> 
     <checked>0</checked> 
     <correct>0</correct> 
   </option> 
   <option> 
     <label>abc</label> 
     <value>5</value> 
     <checked>0</checked> 
     <correct>0</correct> 
   </option> 
 </options>

is what can be found in the db.. The extension doesn't allow duplicate values within one question (when editing survey).

How can I check php4.4 compatibility, I got no errors concerning the extension, only parts of eZ (standard PHP Notice: Only variable references should be returned by reference...)