Closed (fixed)
Project:
Webform
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2008 at 18:58 UTC
Updated:
8 Aug 2008 at 00:00 UTC
If I enable "Show complete form in teaser" for my MULTIPAGE webform (a webform with pagebreaks), and then promote it to the frontpage, strange issue appears after submitting the first page of a multipage webform from the frontpage:
Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '<em>MySQL server has gone away\nquery: UPDATE web_sessions SET uid = 1, cache = 0, hostname = &#039;77.0.212.32&#039;, session = &#039;form|a:17:{s:32:\\&quot;7860ed8b7bbd98db5e6994bce452a784\\&quot;;a:2:{s:9:\\&quot;timestamp\\&quot;;i:1212862757;s:4:\\&quot;args\\&quot;;a:5:{i:0;s:21:\\&quot;webform_client_form_5\\&quot;;i:1;O:8:\\&quot;stdClass\\&quot;:30:{s:3:\\&quot;nid\\&quot;;s:1:\\&quot;5\\&quot;;s:3:\\&quot;vid\\&quot;;s:1:\\&quot;5\\&quot;;s:4:\\&quot;type\\&quot;;s:7:\\&quot;webform\\&quot;;s:6:\\&quot;status\\&quot;;s:1:\\&quot;1\\&quot;;s:7:\\&quot;created\\&quot;;s:10:\\& in /home/milenium/public_html/includes/database.mysql.inc on line 172
Warning: MySQL server has gone away query: INSERT INTO web_watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '<em>MySQL server has gone away\nquery: UPDATE web_users SET access = 1212863992 WHERE uid = 1</em> in <em>/home/public_html/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://localhost/reservation', 'http://localhost/', '77.0.212.32', 1212863992) in /home/public_html/includes/database.mysql.inc on line 172I guess it's a session issue?! After I truncate a sessions table, I don't see those warnings after a page refresh, but I'm still uncapable to continue with filling my webform from the frontpage.
Questions:
Am I suppose to be able to continue with filling my webform with a several pages from a frontpage that way?
Is there a workaround if that's a wrong way to go?
Comments
Comment #1
quicksketchI don't believe there's anything that Webform can do to actually disconnect your MySQL connection, as that's what looks like is happening. For reference, do you have the database prefix set to "web_"? Or is there a module using the tables "web_sessions" and "web_users"?
Comment #2
jazzitup commentedYes, that's true - all of my Drupal tables do have a prefix "web_".
Comment #3
jazzitup commented*** I still can't make this webform teaser work on a frontpage! ***
The only differences in an HTML I could notice between a form on the frontpage (a teaser) and the form displayed as a node are in these lines:
1. NODE (when a teaser doesn't exist):
2. TEASER:
a) I'm using SSL for this webform, but the page is not encrypted (SSL) on a frontpage!
b) form_build_id have different id's and different values in both cases, which is normal
c) form_token only exists when a teaser is NOT set
Comment #4
jazzitup commentedIt seems that this method solves an issue mentioned from above (more testing required):
http://drupal.org/node/259580
Comment #5
quicksketchDoes this really seem like it's a problem with Webform? If it's been caused by something else, please update the issue.
Comment #6
jazzitup commentedI assume that it was a session oriented issue. Now I'm testing a new release of a webform with this bug-fix:
http://drupal.org/node/275389
Comment #7
jazzitup commentedThis issue is still bugging me... I've removed the "promote to frontpage" option, so this issue is not related to it anymore and I believe it's not related to a webform module as well. After exactly 8 page reloads of the page that contains my webform (while testing) the warning from above suddenly appears below the content. Maybe I'll find my answer here: http://drupal.org/node/259580
Comment #8
jazzitup commentedThe link from the post from above was helpful... My ISP has solved the problem.
*** This issue was NOT related directly to a webform module itself. ***
Comment #9
quicksketchThanks madjoe for the final word! I'll mark this as closed.