PHP Error Reporting
Posted by: Sketchy (---.static.internode.on.net)
Date: January 20, 2011 04:35AM

How can I turn off the WAMP Error reporting? I don't like the orange style, I would like the original native PHP error reporting.

Any tips?

Re: PHP Error Reporting
Posted by: yfastud (Moderator)
Date: January 20, 2011 05:07AM

Through Wamp tray icon, open file php.ini and find

error_reporting = E_ALL

Replace w/

error_reporting = E_ALL & ~E_NOTICE

Then save file and restart wamp

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Re: PHP Error Reporting
Posted by: Sketchy (---.static.internode.on.net)
Date: January 20, 2011 05:24AM

Sorry, that's not what I meant. I want to keep Error Reporting ON.

However, wamp used to display native php error reporting like;

Notice: Undefined variable: leftLinks in /var/www/home/shop/script/header.php on line 124

Notice: Undefined variable: q in /var/www/home/shop/script/header.php on line 138

Notice: Undefined variable: welcome in /var/www/home/shop/script/header.php on line 148


Now however what it does it prints out orange boxes on the screen and says stuff like;



( ! ) Notice: Undefined variable: mysli in C:\Projects\localhost\account_pg\index.php on line 8
Call Stack
# Time Memory Function Location
1 0.0010 373776 {main}( ) ..\index.php:0

( ! ) Fatal error: Call to a member function result() on a non-object in C:\Projects\localhost\account_pg\index.php on line 8
Call Stack
# Time Memory Function Location
1 0.0010 373776 {main}( ) ..\index.php:0




I want the old reporting back.

Any idea how?

Re: PHP Error Reporting
Posted by: yfastud (Moderator)
Date: January 20, 2011 06:27AM

Not sure what you mean "old report" but w/ setting as shown above will take care of those notices

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Re: PHP Error Reporting
Posted by: Sketchy (---.static.internode.on.net)
Date: January 20, 2011 06:28AM

I don't want to turn the notices off, just change the way they are displayed.

I'll set up a screen print.

Re: PHP Error Reporting
Posted by: amitbravo (117.201.83.---)
Date: January 24, 2011 07:44AM

I have also the same problem. I do not want to turn off errors but, these orange background headline is big and it fulls all page in a weird way . older plain error system is better.

No need to CSS errors like they did >

<th colspan="5" align="left" bgcolor="#f57900"><span style="background-color: rgb(204, 0, 0); color: rgb(252, 233, 79); font-size: x-large;">( ! )</span> Notice: Undefined index: language in C:\wamp\www\includes\session.php on line <i>6</i></th>

Re: PHP Error Reporting
Posted by: stevenmartin99 (---.251.255.15.threembb.ie)
Date: January 24, 2011 09:18AM

New wamp has debugging tools enabled- you will need to disable the extention xdebug

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Re: PHP Error Reporting
Posted by: EndlessEncounters (---.acanac.net)
Date: January 24, 2011 12:28PM

stevenmartin99 Wrote:
-------------------------------------------------------
> New wamp has debugging tools enabled- you will
> need to disable the extention xdebug


how do we disable it?

Registered: 11/21/2007 04:17AM

Re: PHP Error Reporting
Posted by: stevenmartin99 (---.251.255.11.threembb.ie)
Date: January 24, 2011 02:10PM

Left click wamp> php > extentions>

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Re: PHP Error Reporting
Posted by: Sketchy (---.static.internode.on.net)
Date: January 25, 2011 05:12AM

I already had that turned off and it didn't fix anything.

So I commented it out in php.ini and it worked.

Thanks

Re: PHP Error Reporting
Posted by: maragh876 (72.252.230.---)
Date: January 26, 2011 02:04PM

am having the same problem, how do u comment out extention xdebug

Re: PHP Error Reporting
Posted by: Sizlah101 (---.dsl.mweb.co.za)
Date: March 25, 2011 02:58PM

You don't need to comment out anything. Simply click your WAMP tray icon, go to PHP > Settings, and untick "track errors". Done.

Re: PHP Error Reporting
Posted by: neo314 (---.hsd1.or.comcast.net)
Date: May 24, 2011 07:37PM

Hi all. I was having no joy with these solutions either. What I want is for un-indexed values to not be reported (notices and warnings), but I want real errors to still be reported. If you have been making changes to the php.ini file in ...bin/php/php5.3.4/php.ini, the controlling php.ini file is actually in ...bin/apache/apache2.2.17/bin/php.ini (adjust for different versions of php or apache)

In that file, making the change error_reporting = E_ALL & ~E_NOTICE works as it should without changing the settings or losing all error reporting.

Re: PHP Error Reporting
Posted by: dcandler (---.dsl.pipex.com)
Date: October 03, 2011 09:28PM

Ok All,

Comment out
Zend_Extensions Line and it will give you the original Style PHP Error messages "we all love".

Happy programming.

Re: PHP Error Reporting
Posted by: darkkripler (---.hsd1.md.comcast.net)
Date: December 19, 2011 04:13PM

I love that @stevenmartin99 dude!!!
Thank you sooo much!!!
FINALLY GOT RID OF THE ORANGE BASTARDS!!! <3

Re: PHP Error Reporting
Posted by: rjh (---.core.deakin.edu.au)
Date: February 24, 2012 05:56AM

This is probably the best reference for setting PHP error reporting that I have seen: [www.bx.com.au]

Sorry, only registered users may post in this forum.