Can't disable error reporting in OpenCart (PHP)

后端 未结 6 2203
失恋的感觉
失恋的感觉 2021-02-10 11:54

I can\'t seem to disable error reporting in PHP - I have tried everything but \"Notice\" errors are still displayed.

My php.ini has

display_errors = Off;         


        
6条回答
  •  遥遥无期
    2021-02-10 12:30

    True way in OpenCart.

     $this->config->set('config_error_display', 0);
     $this->processAction(); // it throws ugly warning
    

    I've tested in the controller of my module. Just to turn off showing errors before your code. It affects only current session (perhaps even current page). It doesn't affect the DB!

提交回复
热议问题