Closed (cannot reproduce)
Project:
Webform
Version:
6.x-3.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2011 at 23:44 UTC
Updated:
1 Mar 2011 at 01:36 UTC
I can't figure out why my webform won't redirect to the location I have specified in the settings. I've debugged it to the best of my ability, but to be quite honest, just don't know enough about drupal to effectively debug this. Here are the webform Settings: http://screencast.com/t/7Y0VRksZ
Here is what happens when I submit the form:
http://screencast.com/t/nXCTljIXix
The message displays but the redirect goes to a weird url:
//submit-your-question
It's supposed to go to "faq". Any idea why it doesn't work? Is there a process I can take to debug it?
Comments
Comment #1
quicksketchI haven't been able to reproduce this problem. It looks like no redirect is getting applied at all. Have you upgraded Webform recently? The redirection format changed between 3.4 and 3.5 I think (maybe 3.5 and 3.6), requiring that you run update.php. You should check that Drupal is reporting that no updates are necessary.
The best way I know to debug this problem is to install devel.module and put this immediately before the end of the webform_client_form_submit() function:
That will tell you what URL Webform will attempt to redirect the user to. If this value is empty, it's likely an issue with Webform. If this value is "faq" like it should be, then another module is setting another redirect by modifying the form after Webform has finished processing.
Comment #2
bdichiara commentedI have updated to the latest version of webform, ran the database update script on /update.php and I am still getting the same result after submission.
I then enabled devel module and added the line dvm($form_state['redirect']); at the bottom of the webform_client_form_submit() but I have no idea what was supposed to happen. I submit the form, and it continued to do the same redirect to //submit-your-question. The confirmation message works, and the email works, just not the redirect.
What is dvm() supposed to do? When am I supposed to see the value? Do I have to have certain permissions to see it?
Comment #3
bdichiara commentedOk, after upgrading to the latest version, on every site using this instance of Drupal, I'm getting 1 of 2 Errors:
Either this error:
warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'theme_webform_element_wrapper' not found or invalid function name in /var/www/sites/drupal-6.19/includes/theme.inc on line 656.
or
The webform just doesn't display at all, which could be cause by the same error above or by the following error:
/admin/build/block
Parameter 3 to semantic_cck_field_settings_alter() expected to be a reference, value given in /includes/common.inc on line 2883.
Any advice?
Comment #4
quicksketchAfter upgrading, make sure you run update.php again or flush the Drupal caches at admin/settings/performance if there are no updates. It sounds like the first error would cause the second error you've described.
Anyway what dvm() does is print out a message in the message area what page you should be redirected to when the form is submitted. You have to fill out and submit the form for it to fire. If you're not seeing any message at all after the form is submitted, then the submit handler isn't firing at all due to some other module or custom code short-circuiting it.
Comment #5
bdichiara commentedWell, I think I got the notices to go away, however I still can't see the form and I have no errors in my error log. There are hidden fields and the submit button, just no other fields (text, textarea) are showing in the html. Please help! This is very frustrating.
Comment #6
quicksketchI'm at a loss here. Obviously you're taking some kind of unusual approach to installing/upgrading the module, or your site has got some kind of mischievous module installed. If you can describe how to get into the situation you're in from a fresh install of Drupal I can help, but without knowing how to reproduce the problem I can't say how to fix it.
Comment #7
quicksketch