PHP not displaying errors even though display_errors = On

前端 未结 17 1671
面向向阳花
面向向阳花 2020-12-13 01:31

I have a Ubuntu server running Apache2 with PHP 5. In the php.ini I set display_errors = On and error_reporting = E_ALL | E_STRICT, but PHP is st

17条回答
  •  执笔经年
    2020-12-13 02:17

    I also face the same issue, I have the following settings in my php.inni file

    display_errors = On
    error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT
    

    But still, PHP errors are not displaying on the webpage. I just restart my apache server and this problem was fixed.

提交回复
热议问题