I'm not sure of exact details of what caused my White Screen Of Death... but saw that
- something was making a POST request to "www.mysite.com/swfupload,/swfupload"
- all settings in the JS swfupload_settings object were 'arrays of duplicate strings'... instead of simple strings.
- drupal_add_js() is called twice with the same setting, sometimes.
(In my case: when drupal_rebuild_form() is called, somehow, when I preview a node.)

Patch attached. Fixed my WSOD.

CommentFileSizeAuthor
swfupload.check_add_js.patch5.71 KBroderik

Comments

roderik’s picture

By the way,

the patch looks horrible, but is a simple addition of 4 lines on top, and '$added[$element['#id']] = TRUE; }' at the bottom. The rest is just indenting.

sansui’s picture

Patch applied cleanly. I was not having the issues you described, but the patch does not seem to have negatively impacted anything either.

Maybe we can get someone else to test this too and get another confirmation?

Trexor’s picture

I was getting a flash of the preview then a white screen, I applied the patch and my preview is working perfectly, Thank You Roderik.

Trexor’s picture

Status: Needs review » Needs work

Sorry I spoke too soon, things looked OK after the patch but adding more than one image on the preview page, all the file names are the same as the last one added but when I save this it’s ok again, this would confuse most users so I’ve hidden the preview button for now with the Preview module.

roderik’s picture

Status: Needs work » Needs review

I have seen that behavior but it does not have anything to do with this patch. See #875706-28: Rearrange images does not work in Opera & Chrome