Forums / Developer / Embedded Survey Form

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.

eZ debug

Timing: Jan 17 2025 21:18:55
Script start
Timing: Jan 17 2025 21:18:55
Module start 'content'
Timing: Jan 17 2025 21:18:55
Module end 'content'
Timing: Jan 17 2025 21:18:55
Script end

Main resources:

Total runtime0.1041 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 597.0781180.8438
Module start 'content' 0.00460.0045 777.921999.4844
Module end 'content' 0.00910.0949 877.4063527.2188
Script end 0.1040  1,404.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00323.0789200.0002
Check MTime0.00131.2362200.0001
Mysql Total
Database connection0.00050.521410.0005
Mysqli_queries0.070067.21911410.0005
Looping result0.00090.82661390.0000
Template Total0.094690.910.0946
Template load0.00080.726010.0008
Template processing0.093890.125010.0938
Override
Cache load0.00050.505110.0005
Sytem overhead
Fetch class attribute can translate value0.00070.685810.0007
XML
Image XML parsing0.00020.226410.0002
General
dbfile0.00151.4413200.0001
String conversion0.00000.004830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs