CWD Forum » Content Management Systems » Drupal

Drupal - blank page after submit

(3 posts)
  1. DrupalJunkie

    member
    Joined: Oct '09
    Posts: 26

    I just installed a new Drupal theme from this site (they have a pretty good selection now). Every time I update a page or site setting, however, the screen goes blank (white). The changes are saved, but it's annoying to see the white screen of death (WSOD) every time I submit a page or change/ update something.

    Even worse, with the backup & migrate module, when I try and download a file, I get a screen full of characters instead of the file.

    The problem is definitely with the theme - when I switch back to the default Garland theme I don't get the blank screens.

    Any ideas for obvious things I could be checking?

    Posted 7 months ago #
  2. Sponsored Links

    Posted 7 months ago
  3. cwd

    senior admin
    Joined: Jul '09
    Posts: 143

    There's several things you can try. In our experience, the most common culprit is a space after the closing PHP brackets in your theme files. Open each theme file (page.tpl.php, node.tpl.php, template.ppl.php, etc.), go to the last line, and hit the delete key after the last character several times, until there's no more blank characters at the end.

    Another thing to try is adjusting the header of your template to the following:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>">
    <head>

    Finally, in your template.tpl.php file, make sure there is only one opening and closing PHP brace (ie. <?php at top, and ?> at bottom).

    When you've made all those changes, re-upload your files, and flush all your caches. Try editing a page, saving, and seeing if you still get the white (blank) screen. If you do, check out this thread on the Drupal website for more things to try.

    Posted 7 months ago #
  4. Anonymous



    I had the exact same problem - Basically the is caused by having extra (hidden) utf-8 characters at the beginning of the theme files.

    To avoid this, go to the beginning of the php files in the theme folder which start with the following:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    Go to the < and press delete several times to delete it and any hidden characters. Then reenter it, save the files, and upload them. Everything should work fine from that point. (You may need to flush the cache Admin->Site Configuration->Performance->Clear cached data).

    Posted 3 months ago #

RSS feed for this topic

Reply

(required)

Allowed markup: BBcode blockquote code em strong ul ol li font strike center u hr.
You can also put code in between backtick ( ` ) characters.

485 posts in 187 topics over 14 months by 49 of 96 members. Latest: xiezhen, Markjohn, krocodiled