Drupal White Screen of Death - No errors with errors included

I have all the errors included (error_reporting (-1)) in Drupal, but for some reason, most errors do not occur in the logs or on the screen. I can replicate the problem simply by changing the name of the function to something else, and I would expect the function to not have an error, but I just get a white screen. I tried to reproduce this outside the scope of Drupal, and I cannot - therefore it makes me believe that this is not my PHP setting (Zend Server / Apache2 / PHP / Windows), but somewhere in Drupal ...

Any ideas anybody?

+3
source share
8 answers

/ , , , , ... , nusoap.php ( )... , nusoap.php, ...

0

, , . WSOD, , , , . , .inc

function module_invoke_all($hook) {
  $args = func_get_args();
  // Remove $hook from the arguments.
  unset($args[0]);
  $return = array();
  foreach (module_implements($hook) as $module) {

        print "Starting loading $module <br />";

        $function = $module . '_' . $hook;
        if (function_exists($function)) {
          $result = call_user_func_array($function, $args);
          if (isset($result) && is_array($result)) {
            $return = array_merge_recursive($return, $result);
          }
          elseif (isset($result)) {
            $return[] = $result;
          }
        }

        print "Finished loading $module <br />";

  }

  return $return;
}

, , , "Finish loading $module", , ... .

, status = 0 bootstrap = 0 :

UPDATE system SET status = 0, bootstrap = 0 WHERE name = 'module_name' LIMIT 1

: Drupal White Screen of Death (WSOD)

+4

, display_errors .

ini_set( 'display_errors', 'on' );
+3
+2

stackoverflow, , cakephp css , sql-.

, .

+1

php "error_reporting", ? :

error_reporting = E_ALL ~ E_DEPRECATED

0

, WSOD, php. ?>

It took me forever to track.

0
source

I note that your question has already been answered, but it may be useful if others are reading this to know that sometimes WSOD may be caused by an old incompatible version of PHP on the server. Drupal 7 requires PHP 5.3, but PHP 5.2 is still running on many servers. This can cause the WSOD without error messages.

0
source

All Articles