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...)

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 19 2025 07:13:25
Script start
Timing: Jan 19 2025 07:13:25
Module start 'layout'
Timing: Jan 19 2025 07:13:25
Module start 'content'
Timing: Jan 19 2025 07:13:25
Module end 'content'
Timing: Jan 19 2025 07:13:25
Script end

Main resources:

Total runtime0.0129 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.1563152.6250
Module start 'layout' 0.00500.0021 741.781339.4453
Module start 'content' 0.00710.0041 781.226689.2422
Module end 'content' 0.01120.0017 870.468830.3047
Script end 0.0129  900.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002015.8593140.0001
Check MTime0.00107.6644140.0001
Mysql Total
Database connection0.00096.945510.0009
Mysqli_queries0.002015.890730.0007
Looping result0.00000.070210.0000
Template Total0.001511.310.0015
Template load0.00085.853210.0008
Template processing0.00075.396710.0007
Override
Cache load0.00053.938510.0005
General
dbfile0.00075.084480.0001
String conversion0.00000.038840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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