• 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.

Viewing 1 replies (of 1 total)
  • Thread Starter Grzegorz.Janoszka

    (@grzegorzjanoszka)

    Now WordPress 5.2 started sending emails:

    Howdy!

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Media Webp.

    First, visit your website (https://mysite.tld/) and check for any visible issues. Next, visit the page where the error was caught (https://mysite.tld/wp-admin/comment.php?action=editcomment&c=22123) and check for any visible issues.

    A pity such a good plugin is not really maintained.

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught TypeError’ is closed to new replies.