Welcome to WebmasterWorld Guest from 54.166.220.138

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

web server is not displaying errors

     
12:19 pm on Sep 1, 2006 (gmt 0)

5+ Year Member



Hello,

Onmy server when i run a script it is not showing any error, not syntex error or any other error just shows blank page if any error found.

I set some values in ini -

ini_set('log_errors','0');
ini_set('display_errors','1');
error_reporting(2047);

But still it is not showing errors just showing a blank page.

I checked php settings using phpinfo(). for display_errors property there are two values under local column it is on and under master column it is off.

Please help to solve this problem, i am not able to debug my pages. please help

vineet

2:56 pm on Sep 1, 2006 (gmt 0)

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Do you have access to your php config file
PHP.ini
IF yes you need to turn the error reporting ON

If you are on a shared I doubt that your host will do it for you.

On a production server errors are turned OFF
reason: It could allow reading sensible info on location etc.

3:57 pm on Sep 1, 2006 (gmt 0)

10+ Year Member



The following 2 lines in a .htaccess file in your document root will often do the trick:

php_value error_reporting 2047
php_value display_errors on

If your host is shared and running phpsuExec, you may well have to add the corresponding lines (or make sure they are not commented out)

error_reporting = E_ALL
display_errors = On

in a _local_ php.ini file. These will then override the settings in the global php.ini file (which you won't be able to change).

Contacting your host is the best bet.

[edited by: FalseDawn at 4:00 pm (utc) on Sep. 1, 2006]

7:45 am on Sep 2, 2006 (gmt 0)

5+ Year Member



Thanks for reply.

I am using a shared server, and try to set values of config file using ini_set function,

ini_set('log_errors','0');
ini_set('display_errors','1');
error_reporting(2047);

But after that when i use phpinfo to see configuration it is showing display_error On for local and off for global.

i think this is making problem? how can i change global value of this.

vineet

3:29 pm on Sep 2, 2006 (gmt 0)

10+ Year Member



Have you tried what I suggested? Did you even read it?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month