dhinge Posted March 26, 2007 Share Posted March 26, 2007 Just installed PHP 5 and Apache 2.2, and now there's this stupid stack trace with info that I rarely need: [Mon Mar 26 07:02:31 2007] [error] [client ***] PHP Notice: A session had already been started - ignoring session_start() in /***.php on line 7, referer: http://***.php [Mon Mar 26 07:02:31 2007] [error] [client ***] PHP Stack trace:, referer: http://***.php [Mon Mar 26 07:02:31 2007] [error] [client ***] PHP 1. {main}() /***.php:0, referer: http://***.php [Mon Mar 26 07:02:31 2007] [error] [client ***] PHP 2. session_start() /***.php:7, referer: http://***.php All I really need is first line; the rest of it is usually not necessary, and just eats up all the space on my putty screen. So far I nothing I'm doing in either httpd.conf or php.ini is fixing it. Does anybody know how to disable the stack trace? Quote Link to comment Share on other sites More sharing options...
per1os Posted March 26, 2007 Share Posted March 26, 2007 In php.ini did you set the error_reporting level to only be warnings or something that does not do notices? That is where I would look if you have not already done so. Quote Link to comment Share on other sites More sharing options...
dhinge Posted March 26, 2007 Author Share Posted March 26, 2007 It was set to E_ALL, but I set it to error_reporting = E_ERROR & E_WARNING & E_PARSE & E_NOTICE and now it doesn't give any errors. So I just set it to E_NOTICE, and it gives the notices, but with the stack trace again. The php.ini file doesn't say anything about limiting the stack trace, and doesn't appear to have an option for this in error_reporting. If anybody knows how to disable this, please let me know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.