#Artefactual #AtoM catalog system 📜

"500 server error"

when saving items with #fuzzyDates, like year-only:

FastCGI sent in stderr: "PHP message: Unable to execute INSERT statement. [wrapped: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '1990-0-0'

Reason:
mysql default config has this setting:
đŸ”„đŸ”„ đŸ”„ `NO_ZERO_IN_DATE` đŸ”„đŸ”„đŸ”„

Fix (in `/etc/mysql/mysql.cnf`):
sql_mode=ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

See:
https://accesstomemory.org/en/docs/2.9/admin-manual/installation/ubuntu/#install-the-dependencies

Linux - Ubuntu 24.04 LTS (Noble Numbat) | Documentation (Version 2.9) | AtoM: Open Source Archival Description Software

Access to Memory (AtoM): Open Source Archival Description Software