• Resolved Rick Hellewell

    (@rhellewellgmailcom)


    On a WP 6.x site and PHP 8.x, all plugins updated, the Query Monitor plugin shows a error relating to the Akisment code on the main Admin Dashboard:

    foreach() argument must be of type array|object, null given

    1. wp-content/plugins/akismet/class.akismet-admin.php:560
    2. Akismet_Admin::comment_row_action()
      wp-includes/class-wp-hook.php:310
    3. apply_filters('comment_row_actions')
      wp-admin/includes/dashboard.php:808
    4. _wp_dashboard_recent_comments_row()
      wp-admin/includes/dashboard.php:1114
    5. wp_dashboard_recent_comments()
      wp-admin/includes/dashboard.php:952
    6. wp_dashboard_site_activity()
      wp-admin/includes/template.php:1443
    7. do_meta_boxes()
      wp-admin/includes/dashboard.php:271
    8. wp_dashboard()
      wp-admin/index.php:203

    This error is found on any site running Akismet and the Query Monitor tool, and only on the main Admin Dashboard screen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kbrownkd (a11n)

    (@kbrownkd)

    Hi there! Thanks for the report. I haven’t been able to reproduce the error on a site running WP 6.x, PHP 8.x, and Akismet 5.3. Another plugin must be involved. Are you running any other plugins that interact with comments or the dashboard?

    We should be able to prevent the error by making a change to the Akismet plugin, and we’ll aim to include that change in the next release. We don’t have a date for the next release set yet.

    Plugin Author kbrownkd (a11n)

    (@kbrownkd)

    Hi! This issue was fixed in Akismet 5.3.1, which was released last week.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Query Monitor shows PHP errors’ is closed to new replies.