SyntaxFix
Write A Post
Hire A Developer
Questions
As others said, this is caused by the STRICT_TRANS_TABLES SQL mode.
STRICT_TRANS_TABLES
To check whether STRICT_TRANS_TABLES mode is enabled:
SHOW VARIABLES LIKE 'sql_mode';
To disable strict mode:
SET GLOBAL sql_mode='';