Can't disable error reporting in OpenCart (PHP)

后端 未结 6 2204
失恋的感觉
失恋的感觉 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:22

    As @colmde already pointed OpenCart uses custom error_handler.

    You can turn error displaying off without any code edits (especially OpenCart core files) via:

    Admin->System->Settings->[edit your configured store]->Server->Display Errors

    [EDIT] You can do the same by running following query against OpenCart database:

    update setting set `value`= 1 where `key` = 'config_error_display'
    

提交回复
热议问题