Hello.

While trying to create a local development environment as per

Drupal.Org Local Install Guide for Redesign Implementers
http://groups.drupal.org/node/56788

i got a WSOD.

here's the steps i took to debug

1 - search issue queue
http://drupal.org/project/issues?text=local+environment&projects=Drupal....

2 - put loggers in the code i.e. index.php and bootstrap.inc files and finally noticed that after 5 phases of bootstrap the code exits

function _drupal_bootstrap($phase) {

      // If there is a cached page, display it.
      if (is_object($cache)) {
        header('X-Drupal-Cache: HIT');
        drupal_page_cache_header($cache);
        // If the skipping of the bootstrap hooks is not enforced, call hook_exit.
        if ($cache_mode != CACHE_AGGRESSIVE) {
          bootstrap_invoke_all('exit');
        }
        // We are done.
        Logger::ll_function(20);
        exit;
      }
Mar 22 15:08:19  [info] entering function drupal_bootstrap() in bootstrap.inc
Mar 22 15:08:19  [info] entering function _drupal_bootstrap() in bootstrap.inc
Mar 22 15:08:19  [info] $phase = 0
Mar 22 15:08:19  [info] leaving  function _drupal_bootstrap() in bootstrap.inc - 30
Mar 22 15:08:19  [info] entering function _drupal_bootstrap() in bootstrap.inc
Mar 22 15:08:19  [info] $phase = 1
Mar 22 15:08:19  [info] leaving  function _drupal_bootstrap() in bootstrap.inc - 30
Mar 22 15:08:19  [info] entering function _drupal_bootstrap() in bootstrap.inc
Mar 22 15:08:19  [info] $phase = 2
Mar 22 15:08:19  [info] leaving  function _drupal_bootstrap() in bootstrap.inc - 30
Mar 22 15:08:19  [info] entering function _drupal_bootstrap() in bootstrap.inc
Mar 22 15:08:19  [info] $phase = 3
Mar 22 15:08:19  [info] leaving  function _drupal_bootstrap() in bootstrap.inc - 30
Mar 22 15:08:19  [info] entering function _drupal_bootstrap() in bootstrap.inc
Mar 22 15:08:19  [info] $phase = 4
Mar 22 15:08:19  [info] leaving  function _drupal_bootstrap() in bootstrap.inc - 30
Mar 22 15:08:19  [info] entering function _drupal_bootstrap() in bootstrap.inc
Mar 22 15:08:19  [info] $phase = 5
Mar 22 15:08:19  [info] leaving  function _drupal_bootstrap() in bootstrap.inc - 20

so in phase 5 the exit is happening in the code giving me a WSOD.

my local devel env is not on the internet and hence i cannop put up the url or provide access.
any help is appreciated to debug/fix the above problem.

thx.

yashesh

Comments

Nick Lewis’s picture

Not really sure how to read the info provided. Perhaps could paste a phpinfo() or provide a link to it? (just trying to rule stuff out).

yasheshb’s picture

hi.. here are the steps i got in the email dated Mar 19th from Drupal Association
subject: Here are your Drupal.org local development set-up instructions
-------------------------------------------------------------------------------------------------------------------------------------------------
Drupal Installation Instructions:
1. Check code out from
http://association.drupal.org/sites/all/modules/civicrm/extern/url.php?u...
into your doc root
2. Create your database, and configure sites/default/settings.php to
connect to it (we doin it old school).
3. gunzip < /path/to/tinydrupalorg.mysql.gz | mysql -u root -proot
localdrupalorgdatabasename
4. Go to admin/settings/performance and turn of caching and clear
cache. Once that's done -- your basically good to go (minus solr).
5. PHP caching is a must regardless -- otherwise even small drupal
sites will run SLOW
6. i'd be really surprised if the site is hogging more memory than 96 megs.
7. You need to edit out the /cron.php restrictions in .htaccess
8. You need to delete the index
9. I did manage to get the drupal.org instance working with a hosted
version of Acquia search. Installation instructions are here:
http://association.drupal.org/sites/all/modules/civicrm/extern/url.php?u...
and you add a 30 trial, or can give access to one of my subscriptions.
kieran@gmail.com
10. If you've got drush installed: use drush -y cron
11. If you need new code, just run SVN UP
-------------------------------------------------------------------------------------------------------------------------------------------------

I'm done with steps 1, 2 and 3. When i tried step 4, i got the WSOD.

yasheshb’s picture

nick:

hi. the site is on my devel box which is not on the internet. i can put it up on staging and provide you access to the db and the codebase if it would help pls.

thx.

yashesh

drumm’s picture

Status: Active » Closed (fixed)

We are rebuilding the development environemtns to be a bit cleaner and easier, so hopefully this doesn't happen in the future. If it does, look through http://drupal.org/node/482956 and see if you can find the actual error message from the logs.

patcon’s picture

I had this issue just a few minutes ago: Transferred my life site to my localhost environment (db dump, even cache tables). I hadn't changed a thing, since the install was making use of the "mysite.com" directory in the "sites" dir, and so I just changed my hosts file to redirect www.mysite.com to the local ip (mysite.com still went to the actual online site).

I found that when my local mysql server was off, I got the "site offline" drupal screen and it showed up fine. By when I turned it on, I got a WSOD and nothing worked. Actually, it DID work for awhile and I could see the offline site at www.mysite.com, but all of the sudden the WSOD began. No path on the site worked.

Anyhow, solved it by using "drush cc all" to clear all caches, and localhost site now works fine :)