Hi

after downgrading from 3.0 to 2.9, with deleting all old forms created by webform, disable webform block, i start from zero about the form system of my website...
so i've recreated a new simple form, and i access it normaly...but after submit redirect to white page still there...i dont know what to do more...i've cleared all caches, run updates, clean desable/enable module

any idea ?

thks a lot

Comments

quicksketch’s picture

The infamous "whitescreen" error is extremely difficult to debug, since it just means there was a PHP error of some sort. You should enable the "display_errors" option in your php.ini file, then PHP will actually tell you what the error is, otherwise this is an extremely hard thing to solve. Regarding downgrading see these issues:

#721662: Downgrading Webform causes "warning: Invalid argument ..." in Form components
#684884: Invalid argument supplied for foreach() in webform_components.inc

aiphes’s picture

i'm on OVH and i've added SetEnv DISPLAY_ERRORS 1 in htaccess...but no error displayed...i'm trying to reinstall drupal from scratch, but i must use a good way to save nodes datas before to restore content at all. so i dont know if i will fix it a day

quicksketch’s picture

Hm. Well this makes things hard to fix since we don't know the problem. The most common cause of such a problem is using the FCKeditor (or CKeditor) module with Webform. This adds a nasty empty <p></p> in every textarea. This can cause a problem when HTML like this is inserted into the "Additional Processing" or "Additional Validation" textareas, since when they are executed, PHP runs into a parse error.

aiphes’s picture

i dont use "Additional Processing" or "Additional Validation" in my form.It's a simple basic form...so hard to say whats wrong...i'll try to recreate it on a local dev website, because actually its on a production website and cause many troubles..i'll report here my debug researches if nothing is found about identify and fix it

quicksketch’s picture

Even if you leave those fields blank, FCKeditor will insert something into them, which is what causes the problem. If you're using either FCKeditor or CKeditor (the modules) then that is the likely cause. Using the WYSIWYG module with either editor is fine.

aiphes’s picture

i'm making test with Wysiwyg + IMCE + TinyMCE and it works well...so i'll try the same but with FCKEditor, at the end its probably sure i go to change my way to work with files manager and go to use IMCE instead of WebFM and Wysiwig(TinyMCE) instead of FCKEditor

DarrellDuane’s picture

I was able to fix this problem by deleting the junk that was in the additional_validate and additional_submit columns under the "Webform Advanced Settings" section for this form. The FSCK editor was configured for these two fields and had entered bogus data which caused the problems. I never did find any PHP error messages.

aiphes’s picture

good to know, i'will try this at time

i'm trying to switch to wysiwyg but the issue is still there..at the end i'll must to reinstall the entire website...

cool :(

EDIT: nothing change ...so i've seen what about you tell and added to the exclude list of FCKeditor webform fields like this :

....
*@*.edit-webform-*
webform@*.edit-extra-items
admin/*/logintoboggan
admin/settings/actions/configure/*
*.edit-target
admin/content/types/export.edit-export
admin/content/types/import.edit-macro
admin/build/views/import.edit-view
admin/build/views/export/*.edit-code
webform@*.edit-submitted-message
webform@*.edit-export
admin/content/taxonomy/export.edit-taxonomy-export
admin/build/taxonomy_redirect.edit-path
admin/content/nodewords/meta-tags/default.edit-nodewords-description-value
admin/content/import.edit-code
webform@*.edit-extra-items
webform@node/*/edit.edit-webform-additional-validate
webform@node/*/edit.edit-webform-additional-submit

and i see thaht i've *@*.edit-webform-* which is the only necessary path ...so what is the good way to disallow FCKEditor to inject code in webform fields..??

EDIT: testing testing..it seems that webform block and FCKEditor may cause issue to redirect webform after submit..but only on local dev website...

rafialikhan’s picture

I'm having the same error when uploaded to the server and my memory is set to 128 MB. However I'm not using any editors like FCKEditor or WYSIWG as they had their own set of issues on content display, i have disabled them in the module. When I view the source of the blank page, the content of the original form is still there, is very much there and the mail is also being sent out but i end up with the WSOD. We are to launch the site on Monday - so guided help here would be grateful.

rafialikhan’s picture

Solved. I checked my logs and it had a few instances of Cannot modify header information - headers ... so i checked the class.smtp.php and class.phpmailer.php and found that both the files which were edited using dreamweaver had trailing line breaks at the end after the ?> so i removed those and it worked. Brilliant. I found the reason on http://drupal.org/node/158043. Hope it helps everyone who is using webforms with phpmailer.

aiphes’s picture

i had the same issue too, empty line in template.php file..after remove it work !

quicksketch’s picture

Status: Active » Fixed

Sounds like everyone is cleaned up here.

Karamovich’s picture

Your page template.php must be with :
1-ANSI/UNIX encodage pas en UTF8 !
2-without any space outside ...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.