Seeing PHP Notice in my error log
-
With Akismet v3.1.7:
PHP Notice: Trying to get property of non-object in /wp-content/plugins/akismet/class.akismet.php on line 132
Followed by what appears to be a var_dump of an akismet_debug array.131 $post = get_post( $comment['comment_post_ID'] ); 132 $comment[ 'comment_post_modified_gmt' ] = $post->post_modified_gmt;
get_post() can return null in some cases. I’m not sure how I’m triggering it.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Seeing PHP Notice in my error log’ is closed to new replies.