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.
- Find your ‘MAMP’ directory in ‘Applications’
- Find ‘conf’ and open it up..
- Open up php4 or php5 (depending on your enabled version)
- Line 270 should be something like this:
error_reporting = E_ALL
- Line 277 will be:
display_errors = Off
Change this to:
display_errors = On
- Restart servers
And voila! We have PHP errors..