After switching to ClassicPress 1.7.3 my error_log file started filling with these errors: ClassicPress database error Incorrect DATETIME value: ‘0’ for query SELECT p.ID FROM wp_posts AS p WHERE p.post_date < ‘0’ AND p.post_type = …
I was able to identify that the cause was line 1692 in wp-includes/link-template.php:
$current_post_date = $post->post_date;
I fixed it by adding this to the next line below:
if (!$current_post_date) $current_post_date=date(“Y-m-d H:i:s”);
It could be a plugin/theme that conflicts and stops the function in that file you identified from the error… so before using that specific code I would dig deeper and find the real culprit and correct its code…
here in Italy 2026 has just started as of 7 minutes ago - so my best wishes for the new year.