You are not logged in.

#1 2019-09-05 05:34:14

Sifrera
Member
Registered: 2019-09-05
Posts: 2

Cannot see error messages in browser php7

I've been trying to learn to write php from scratch and I've run into a problem where instead of showing the error messages in the browser it instead shows a blank page.
I have edited the php.ini file in /etc/php/ and changed

display_errors = Off

->

display_errors = On

.
This has made no impact on the problem.
The only relevant article I've found on the topic was This forum page and when I tried what it said to do I could only find one instance of the variable getting set.

The relevant section of my current php.ini file looks as follows:

; Default Value = On
; Development Value = On
; Production Value = Off
; http://php.net/display-errors
display_errors = On

I can only guess that the problem is that I'm in Production mode and not Development mode.
I am using the i3 window manager and have tested it on chromium and firefox.

Any help would be greatly appreciated since as of this moment my only way of debugging is scrutinizing my code relentlessly.

Offline

#2 2019-09-05 05:47:10

Sifrera
Member
Registered: 2019-09-05
Posts: 2

Re: Cannot see error messages in browser php7

UPDATE:: I have found that it is possible to debug simple issues in the command line, but anything to do with files(opening, writing, closing, etc) throws a massive amount of errors due to a lack of permissions. I'm starting to think the problem is with my web server and not with php, although I could be completely wrong.

Offline

Board footer

Powered by FluxBB