php return 500 error but no error log

后端 未结 12 1315
挽巷
挽巷 2020-11-30 05:29

I am having an issue when I have a php application that is returning an internal server error (500) however nothing is showing up in the error log.

Now I know there

12条回答
  •  [愿得一人]
    2020-11-30 05:48

    Another case which happened to me, is I did a CURL to some of my pages, and got internal server error and nothing was in the apache logs, even when I enabled all error reporting.

    My problem was that in the CURL I set curl_setopt($CR, CURLOPT_FAILONERROR, true);

    Which then didn't show me my error, though there was one, this happened because the error was on a framework level and not a PHP one, so it didn't appear in the logs.

提交回复
热议问题