For some reason error reporting is turned off by default in MAMP.. So this is how to re-enable it to how it should be.
1. Find your ‘MAMP’ directory in ‘Applications’
2. Find ‘conf’ and open it up..
3. Open up php4 or php5 (depending on your enabled version)
4. Line 270 should be something like this:
error_reporting = E_ALL
5. Line 277 will be:
display_errors = Off
Change this to:
display_errors = On
6. Restart servers
And voila! We have PHP errors..
Share this with friends:
Like what you've just read? Share it to your friends using your favourite service below:
Comments:
Pingbacks/Trackbacks:
[...] been oblivious to this since apparently MAMP had PHP error reporting disabled. I have since enabled error reporting, and will start fixing the small bugs early next [...]
Add a Comment: