欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

drupal 500 报错 有大用 有大大用 有大大大用 有大大大大用 有大大大大大用

为什么要关掉 drupachat 模块 才起作用

如果下面的方法实在不行的话,我们就 开始 nginx apache 的日志功能 ,查看 access.log 和access.log

drupal drupal7 d7  中  /admin/config/development/logging

image.png



该网页无法正常运作

jsfaq.xxxxxx.com 目前无法处理此请求。

HTTP ERROR 500



//在运行代码的前面加上 下面红色的两行字就可以了

function my_form_submit(&$form, &$form_state)
{
 
 
//只需要下面的几行代码在相应的程序执行的地方,不必改什么 php.ini 在页面上和php_errorccc.log都可以看到错误

error_reporting(E_ALL);
ini_set("display_errors", "1"); // shows all errors

ini_set("display_start_errors", "1"); // shows all errors   // "display_startup_errors"
ini_set("log_errors", "on");
ini_set("error_log", "php_errorccc.log");

   
$_SESSION['MyCookieName'] = $form_state['values']['CoeName'];
   
$_SESSION['__RequestVerificationToken'] = $form_state['values']['VerificationToken'];
   drupal_goto(
'custom_eleven_get_repeat_dhcp_get_repeat_dhcp_data');
}



然后再 清除缓存,运行 cron



普通分类: