OK this is getting very frustrating. MAMP used to display errors but then stopped. I decided to do a fresh install of it as I couldn\'t figure it out. I check my PHP version
Also there is a template saved in MAMP of the php.ini. Go to File > Edit Template > PHP > Your Version.
php.ini
File > Edit Template > PHP > Your Version