Jump to content

Errors not displaying


Tandem

Recommended Posts

I can't get my server to display error messages, ever.

The following code produces a totally blank white screen:

[code]<?php

error_reporting(E_ALL);

lol test

?>[/code]

and error reporting is set to E_ALL in php.ini too.

I need the error messages to work. Can anyone suggest anything i can try?

Thanks.
Link to comment
https://forums.phpfreaks.com/topic/33967-errors-not-displaying/
Share on other sites

change the setting in the PHP ini file. i believe that files are checked firstly to make sure the file is essentially valid PHP - ie, no parse errors, etc. only THEN is it run. so if you have parse errors like this, then the ini_set line, etc, wont even get run.

you need to either set up a .htaccess in your web root changing the error_reporting / display_errors settings, or change them directly in the php.ini file.

cheers
Link to comment
https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159567
Share on other sites

[quote author=redbullmarky link=topic=122178.msg503627#msg503627 date=1168645547]
sure - but also in your php.ini file, have you got display_errors turned on?
[/quote]

Oh man that's exactly it. Shoulda checked that to start with. Thanks very much for the help, it's been driving me nuts.
Link to comment
https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159596
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.