When installing or configuring (or sometimes when just using) the popular CMS (content management system) Drupal you’ll be faced with the dreaded WSOD (white screen of death).
This is often because your hosting set up isn’t allowing the memory hungry Drupal a big enough bite of the server’s memory pie. There are several suggestions throughout the web that this can be fixed by appending the php.ini file in the root of your site, although you may struggle to find php.ini for various reasons.
I build Drupal sites in a cloud/ application server environment and believe I have found a far more effective way of solving the Drupal white screen error.
Fixing the Drupal white screen error using Settings.php
- Browse to YOURSITE/sites/default and (after making a backup of it) open up settings.php
- Scroll down to the section labelled as PHP settings, if you’re using a code editor like DreamWeaver this starts at line 128
- Below the line ini_set(‘url_rewriter.tags’, ”); add another line like this – ini_set(‘memory_limit’ , ‘300M’);
Depending the exact details of your hosting this should solve your white screen errors.
Last Updated on February 18, 2023
this is not a full fix by any stretch. usually a memory limit error will be thrown, not a wsod if this is the problem.
wsod is more commonly a syntax problem, or calling a nonexistant function
Certainly not the only solution, but one that's worked for me a few times, but then I always use the same server environment so I guess it would work repeatedly!
Sorry to tell you that this solution doesn't work for me, maybe the reason cause white page is different
Great information about drupal white screen.