Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: ‘Incorrect DATETIME value: 0’ error when viewing new forum

@redevelop

Participant

OK thanks for looking at this anyway. I’m now thinking it may relate to the MySQL 8 settings, specifically SQL_MODE which included ‘STRICT_TRANS_TABLES’ (strict SQL mode > no zero dates).

I’ve tried removing this setting from SQL_MODE (for both session & global), but this doesn’t seem to resolve – when logging in to MySQL as the WordPress user I still get this error

Error Code: 1525. Incorrect DATETIME value: ‘0’

when running the query:

SELECT p.ID FROM wp_posts AS p WHERE p.post_date < ‘0’ AND p.post_type = ‘forum’ AND ( p.post_status = ‘publish’ OR p.post_status = ‘private’ OR p.post_status = ‘hidden’ ) ORDER BY p.post_date DESC LIMIT 1;

If I make any more progress I’ll post it here 🙂

Skip to toolbar