Embedded Survey Form

Author Message

Will Hattingh

Thursday 11 February 2010 12:03:35 pm

Hey folks, I recently ran into a problem that I need some input on. A quick note, this setup previously worked just fine, however it recently stopped working. Recently stopped working I mean by transferring the site to a different server that is a duplicate of the first.

We currently use ezsurvey for certain contact forms etc. We will build a form and then embed it into our custom frontpage with the Wysiwyg editor. I modified the highlighted object to look as such:

/extension/ourdesign/design/ourdesign/templates/embed/highlighted_object.tpl

{node_view_gui view=full content_node=$object.main_node}

By making those adjustments and embedding the item with class highligted object, the survey shows up, however it does not want to submit. Whenever the user hits submit it just displays the form again with the filled in information. I'm curious if this could be related to template cache being turned on as well as template compile being turned on.

If anyone can shed some light on this I would greatly appreciate it.

Final note: The only change that happened was that template compile was turned on as well as template cache.

Thanks,

Will.

Sander van den Akker

Sunday 30 May 2010 7:39:24 am

I am experiencing exactly the same problem. It doesn't seem to be related to caching, because my project is still in development and all caching and compiling is turned off.

I find the problem hard to tackle because there is no debug feedback at all. Any hints appreciated!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Benjamin Bertrand

Tuesday 03 May 2011 9:37:52 am

Did you find a fix for this issue?

I have the same thing: ezsurvey validation silently failing. This happened after it was moved from a functional local copy to a test server.

The POST data goes through, but the validation template isn't called. The validation runs, because the form will only submit if required fields are completed. Strange not to get validation.

Thankfully, I have version control, so I will roll back to last known working state. And see if code changes affected it in any way. If not, it may be something obvious like a permissions error on the file system. Or an ini setting out of place.

Benjamin Bertrand

Tuesday 23 August 2011 12:28:08 pm

Update: This issue was resolved by including EVERY attribute in the form, not just the ones we were rendering. The attributes that we didn't want to show up were rendered as hidden fields.

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 17 2025 23:39:03
Script start
Timing: Jan 17 2025 23:39:03
Module start 'layout'
Timing: Jan 17 2025 23:39:03
Module start 'content'
Timing: Jan 17 2025 23:39:03
Module end 'content'
Timing: Jan 17 2025 23:39:03
Script end

Main resources:

Total runtime0.8916 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 591.4297152.6094
Module start 'layout' 0.00650.0029 744.039139.4141
Module start 'content' 0.00940.8807 783.4531595.8906
Module end 'content' 0.89010.0015 1,379.343812.1875
Script end 0.8916  1,391.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3716160.0002
Check MTime0.00130.1488160.0001
Mysql Total
Database connection0.00120.131810.0012
Mysqli_queries0.827792.8345620.0134
Looping result0.00060.0725600.0000
Template Total0.863596.820.4317
Template load0.00200.226520.0010
Template processing0.861496.612820.4307
Template load and register function0.00020.018210.0002
states
state_id_array0.00110.119210.0011
state_identifier_array0.00120.136520.0006
Override
Cache load0.00170.1928270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.065730.0002
Fetch class attribute name0.00140.160870.0002
XML
Image XML parsing0.00360.402930.0012
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00320.3638280.0001
String conversion0.00000.001140.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/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
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs