I'm getting blank pages from my Drupal 5.1 site that I've just taken live.
While it was in staging in a subdirectory, it always worked fine. I moved it up to the root folder and changed the .htaccess to let through requests for an archive subfolder and my site's audio stream, but that isn't the problem as far as I can tell: I tried renaming the .htaccess and I still get the problem.

- some pages show the first time I try to load them, but then give a blank page on reload
- some pages never show at all. It looked like these are the ones with a path alias, but now I'm not so sure.
- when I manage to load the front page and log in, I get a blank page

I thought it might be the same caching problem as described here: http://drupal.org/node/111697

- I can always load ?q=admin/content/node
- However, I can't load pages by appending "?test=1" to them as in that issue.
- Furthermore, the fixes described in that issue (includes/bootstrap.inc and cache.inc) have made no difference.

I've also tried disabling the cache completely, but as I can't log in, I went into phpmyadmin and changed the cache setting in the 'variables' table to 0 (which I hope was the correct thing...)

I'm out of ideas... any suggestions would be gratefully accepted.

Comments

mgcarley’s picture

Hi,

Check if the pages are blank when viewing the site in Firefox.

If you can see the pages in Firefox, then the problem is the cookie domain setting in settings.php. Uncomment the line regarding the base URL, and modify it to suit the location of drupal (eg. http://www.yoursite.com or if you would prefer http://yoursite.com)

Then a few lines below that, if it is not already there, add the following:

/**
 * We try to set the correct cookie domain. If you are experiencing problems
 * try commenting out the code below or specifying the cookie domain by hand.
 */
if (isset($_SERVER['HTTP_HOST'])) {
  $domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
  // Per RFC 2109, cookie domains must contain at least one dot other than the
  // first. For hosts such as 'localhost', we don't set a cookie domain.
  if (count(explode('.', $domain)) > 2) {
    ini_set('session.cookie_domain', $domain);
  }
}

Personally I have that bit below the block labeled "PHP Settings".

Notes: This is a fairly common issue on Drupal 5.x installations, and has been discussed many times before. Myself I stole this code from some other topic discussing the same issue (I forget the node number). Credit to the original author.

**UUSI** Nopeita ohjausta ja tietokonepalveluita @ www.fingeekit.com
Mathew Carley
p: +358 9 2316 3712
gsm: +358 40 411 2784

w: http://www.cnmltd.com
e: mathewc+cnmltd.net
skype: mgcarley
msn: mgcarley@hostenz.co.nz

joachim’s picture

I'm getting a blank page in all browsers I've used so far, Firefox 1.5, Firefox 2, and IE6.

Adding the cookie section hasn't made a difference.

themegarden.org’s picture

Using phpmyadmin, try delete all rows from all tables with name cache* (cache, cache_menu, cache_filter ...)

What your server's log files tell you. Any warnings, errors ... ?
---
Drupal Themes Live Preview - themegarden.org

joachim’s picture

Done. Doesn't appear to change anything.

I don't have access to my server's log files, but my host's admin reports that it all seems fine.

stevenpatz’s picture

Set it to output errors to the screen.

ChrisBryant’s picture

This link might help, but this is unlikely a cause since you are still running on the same server, but it's worth checking into:
http://drupal.org/node/143348#comment-231152

Chris


ALIAN DESIGN