PDOException Invalid datetime format
-
Hello,
on one of my WP sites, I’m constantly getting PDOExceptions in the error log. The error is always the same, only row ID differs:
PHP Fatal error:? Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column database.wp_independent_analytics_resources.cached_author_id at row 1234 in .../wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php:446
The corresponding row is always for a custom type post that and it no longer exists in the
posts
table:id: 1234 resource: singular singular_id: 9876 author_id: NULL virtual_page_id: NULL date_archive: NULL search_query: NULL post_type: NULL term_id: NULL not_found_url: NULL cached_title: Some title cached_url: https://... cached_type: custom_ad cached_type_label: Inzerát cached_author_id: 5678 cached_author: Abc Xyz cached_category: NULL cached_date: 2024-03-22
(some values above were anonymized).
I’m not sure, if the post yet existed when the error occurred or not. The error is always caused by following request:
POST /wp-json/iawp/search
Could you please check where the problem is? Thank you very much!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PDOException Invalid datetime format’ is closed to new replies.