We can't create new articles.
After enabling debug mode I see that inserting a record into the DB failed.
Code: Select all
phpMyFAQ\Faq->addRecord() in line 140: INSERT INTO kb_faqdata VALUES (479, 'de', 1481, 0, 'no', 0, '', 'Test ', '\n\n\n\n\n
Test\n\n', 'Hugo', 'support@Hugo.de', 'n', '20230425125101', '', 0, '00000000000000', '99991231235959', '2023-04-25 12:51:01', '')
1292: Incorrect datetime value: '' for column `xyz`.`kb_faqdata`.`created` at row 1/home/www/site/src/phpMyFAQ/Changelog.php:
The last parameter / column is empty and the MySQL DB doesn't like that.
We never had such problems. Is there a major setting of MySQL that may have changed, by another admin?
EDIT: I just verified that NO_ZERO_DATE isn't set in SQL_MODE
EDIT 2: The last column is the changed column. I added a fixed value for the changed column but no vail.
Code: Select all
$recordData = [
'lang' => $recordLang,
...
// MRi: added created
// Fixed data
'created' => '2023-01-01 01:01:01'
];