Email
Share

We Rock Your Web Forum » Content Management Systems » Drupal

Drupal - blank page after submit

(7 posts)
  1. DrupalJunkie

    senior member
    Joined: Oct '09
    Posts: 77

    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 1 year ago #

  2. Posted 1 year ago
  3. cwd

    senior admin
    Joined: Jul '09
    Posts: 225

    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 1 year 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 1 year ago #
  5. Anonymous



    The nobel prize for the most helpful drupal tip goes to

    ba ba ba daaaaaaaa!

    'cwd senior admin'

    This was helpful beyond measure.

    Posted 1 year ago #
  6. Anonymous



    oh my goodness, i am looking for a long long while always in hope solving my white screen of death problem.

    you should make a donation button, i would donate my soul :)! thank u that much!

    Posted 11 months ago #
  7. Anonymous



    Thanks, removing spaces at the end of the pages on the *.tpl did it! What a great prank to pull on 'newbies'!

    Posted 7 months ago #
  8. Anonymous



    Thanks a lot "cwd senior admin"!!!

    Your help was very important to me. I had a problem with my rss.xml file and your tips saved my life today!!

    Greetings from Colombia!

    Posted 5 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.