0

I am using MAMP for local development and when a query against the database throws an error (for example, the table doesn't exist) I get a "500 Internal server error" and the script stops executing. I tested the same code on the live server and I get the expected "Error message: Table 'test' doesn't exist", not a "Fatal error" as with MAMP (I checked MAMP php.ini and display_errors is "on").

Setting the error_reporting(E_ALL) as explained on How do I get PHP errors to display?, will display the fatal error (Fatal error: Uncaught mysqli_sql_exception: Table 'test' doesn't exist in...) but it won't solve it. Any idea how to fix it? Thanks

Javier
  • 21
  • 2

0 Answers0