I
I
inilim22021-10-24 00:34:57
open server
inilim2, 2021-10-24 00:34:57

Open server ignores notice level errors, how to fix?

I've tried all the tricks in the link.

https://karashchuk.com/PHP/error_reporting-display_errors-display_startup_errors/


An example of the errors I want to see:
PHP Notice:  Trying to access array offset on value of type null in ...


Google gives no results.

php.ini
; ----------------------------
; Error reporting
; ----------------------------

display_errors              = "1"
display_startup_errors      = on
error_reporting              = E_ALL
error_log                    = "e:/other/os/ospanel/userdata/logs/PHP_7.3-x64_error.log"
;html_errors                 = on
;ignore_repeated_errors      = off
;ignore_repeated_source      = off
log_errors                   = on
;log_errors_max_len          = 1024
report_memleaks              = off
report_zend_debug            = off
;track_errors                = off
;windows.show_crt_warning    = off
;xmlrpc_errors               = off
;xmlrpc_error_number         = 0

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Syomov, 2021-10-24
@kotomyava

You need to find php.ini for the desired version of php, and change error_reporting there .
Or change in your script via error_reporting() or ini_set()

S
SagePtr, 2021-10-24
@SagePtr

You need to edit not the generated php.ini, but in the "e:/other/os/ospanel/userdata/config" folder, otherwise OpenServer will overwrite it on the next start.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question