I have just switched from a MAMP installation to a native Apache, MySql and PHP installation. I have got everything working, but I hve started using my web app in the new environment and suddenly any INSERT commands are resulting in the following error:
SQLSTATE[HY000]: General error: 1364 Field 'display_name' doesn't have a default value
MySQL is most likely in STRICT mode.
SET GLOBAL sql_mode='' or edit your my.cnf to make sure you aren't setting STRICT_ALL_TABLES or the like.