Internal Error 500 Apache, but nothing in the logs?

后端 未结 11 588
失恋的感觉
失恋的感觉 2020-11-27 14:36

I\'m getting 500 Internal Server errors when I try to make an HTTP POST to a specific address in my app. I\'ve looked into the server logs in the custom log directory speci

11条回答
  •  囚心锁ツ
    2020-11-27 14:46

    Please check if you are disable error reporting somewhere in your code.

    There was a place in my code where I have disabled it, so I added the debug code after it:

    require_once("inc/req.php");   <-- Error reporting is disabled here
    
    // overwrite it
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
    

提交回复
热议问题