Warning on PHP8 and WordPress 5.8
-
Hello, thank you for your plugin. Is very nice to have it. Was a good idea to filter the usernames.
I
ve updated wordpress at 5.8, i
ve added PHP 8.09 and I have a warning on my site:2021/08/24 16:12:52 [error] 48128#48128: *38832 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "comment_approved" in /var/www/site.ro/htdocs/wp-content/plugins/auto-approve-comments/auto-approve-comments.php on line 137PHP message: PHP Stack trace:PHP message: PHP 1. {main}() /var/www/site.ro/htdocs/wp-comments-post.php:0PHP message: PHP 2. wp_handle_comment_submission($comment_data = ['comment' => 'Mda, bine c? ai precizat, eu m? gandeam la desktop. RTX 3060, dar trebuie v?zut ?i cu ce procesor este pe lang?.', 'comment_post_ID' => '32496', 'comment_parent' => '132934', 'akismet_comment_nonce' => '1fd2ececad', '_wp_unfiltered_html_comment' => '512f2e687d', 'ak_hp_textarea' => '', 'ak_js' => '1629810668899']) /var/www/site.ro/htdocs/wp-comments-post.php:25PHP message: PHP 3. wp_new_comment($commentdata = ['comment_post_ID' => 32496, 'comment_author' => 'Cucu', 'comment_author_email' => '@gmail.com', 'comment_author_url' => 'https://www.facebook.com/', 'comment_content' => 'Mda, bine c? ai precizat, eu m? gandeam la desktop. RTX 3060, dar trebuie v?zut ?i cu ce procesor este pe lang?.', 'comment_type' => 'comment', 'comment_parent' => 132934, 'user_ID' => 2], $wp_error = TRUE) /var/www/mariuscucu.ro/htdocs/wp-includes/comment.php:3567PHP message: PHP 4. wp_insert_comment($commentdata = ['comment_post_ID' => 32496, 'comment_author' => 'Marius ', 'comment_author_email' => '[email protected]', 'comment_author_url' => 'https://www.facebook.com/', 'comment_content' => 'Mda, bine c? ai precizat, eu m? gandeam la desktop. RTX 3060, dar trebuie v?zut ?i cu ce procesor este pe lang?.', 'comment_type' => 'comment', 'comment_parent' => 132934, 'user_ID' => 2, 'user_id' => 2, 'comment_author_IP' => '79.114.170.172', 'comment_agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/Safari/537.36 Edg/', 'comment_as_submitted' => ['comment_author
Can you fix this warning on your next update?! ??
- The topic ‘Warning on PHP8 and WordPress 5.8’ is closed to new replies.