Before creating this issue, I had read through two articles https://www.drupal.org/node/158043 and https://www.drupal.org/node/482956 (Blank pages or "white screen of death" (WSOD) & Fixing white screens step by step).
Our site is good except for that we cannot delete ANY nodes on the Node Editing page, for example, /node/49760/delete.
It displays a WSOD without any error in httpd log, in php log, in mysqlDB log.
It happens on our local VM CentOS 7 (PHP 5.5.38, 5.5.47-MariaDB), on our DEV server CentOS 6 (5.5.16, Mysql 5.5.34), and on our production server CentOS 7 (PHP 5.5.38, 5.5.47-MariaDB).
I had tried most steps by following two articles above, but no fix.
If someone happens to know this issue, it will save my life by avoiding debug more than 100 modules one by one.
I tried to debug it. The function drupal_get_form() has never been called by the page "/node/49760/delete"
in node.module:
$items['node/%node/delete'] = array(
'title' => 'Delete',
'page callback' => 'drupal_get_form_gungtest',
'page arguments' => array('node_delete_confirm', 1),
'access arguments' => array('delete', 1),
);
in form.inc
function drupal_get_form($form_id) {
print "<pre><h1>get_form</h1> : "; print_r($form_id); print "</pre>"; // Nothing is printed on the node delete page
...
}
in node.pages.inc
function node_delete_confirm($form, &$form_state, $node) {
print "<pre><h1>node.pages.inc: </h1>"; print_r($node); print "</pre>"; // Nothing is printed on the node delete page
...
}
in index.php : to show errors on screen:
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
Thank you very much!
Gung Wang
Comments
Comment #2
droplet commentedthe best way to debug WSOD is cloning the site and starting to disable modules one by one. Ensure you're using a CLEAN copy from d.org
I have a little DEL Tab module, have a try:
https://www.drupal.org/project/delete_tab
Comment #3
swarad07This is not something that should happen, are you sure you have not overridden the Menu item node/%node/delete and its callback via some other module? Because if it is via drupal_get_form, then the print should show up. The other explanation is that the flow breaks before it reaches drupal_get_form, you can try Xdebug and see where the flow is breaking. Also check if this is happening for all content types, maybe that can give you some clues.
Comment #4
gung wang commentedDear swarad07,
Thank you so much for your suggestion about the Menu overridden!
I finally figured out the problem that is absolute a menu overridden problem.
My predecessor built a module "kih_playlist", in which there is a hook_menu_alter() function:
I commented out two lines, and fixed this big issue.
You saved my life! I deeply appropriate it again.
Sincerely yours.
Gung Wang
Comment #5
droplet commented