Uncaught TypeError
-
Hi,
When I edit or delete comments, I see in logs:2019/04/03 12:31:49 [error] 4958#4958: *27 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to WPST\Media_Webp\Notice::wp_editor_meta_box_action() must be an instance of WP_Post, instance of WP_Comment given, called in /var/www/mysite/wp-includes/class-wp-hook.php on line 286 and defined in /var/www/mysite/wp-content/plugins/media-webp/classes/class-notice.php:91
Stack trace:
#0 /var/www/mysite/wp-includes/class-wp-hook.php(286): WPST\Media_Webp\Notice->wp_editor_meta_box_action(‘comment’, Object(WP_Comment))
#1 /var/www/mysite/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /var/www/mysite/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /var/www/mysite/wp-admin/edit-form-comment.php(199): do_action(‘add_meta_boxes’, ‘comment’, Object(WP_Comment))
#4 /var/www/mysite/wp-admin/comment.php(79): include(‘/var/www/mysite…’)
#5 {main}
thrown in /var/www/mysite/wp-content/plugins/media-webp/classes/class-notice.php on line 91” while reading upstream, client: XXX.XX.XXX.XX, server: mysite.pl, request: “GET /wp-admin/comment.php?action=editcomment&c=21727 HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.3-fpm.sock:”, host: “mysite.pl”, referrer: “https://mysite.pl/this-post/”WP 5.1.1, PHP 7.3.
- The topic ‘Uncaught TypeError’ is closed to new replies.