• Great plugin..
    But I found some warnings in the “query monitor” as follows:

    Undefined variable $class_name

    Caller:

    1. wp-content/plugins/all-404-redirect-to-homepage/functions.php:432
    2. do_action('after_plugin_row_all-404-redirect-to-homepage/all-404-redirect-to-homepage.php')
      wp-admin/includes/class-wp-plugins-list-table.php:1512
    3. WP_Plugins_List_Table->single_row()
      wp-admin/includes/class-wp-plugins-list-table.php:1512
    4. WP_Plugins_List_Table->display_rows()
      wp-admin/includes/class-wp-plugins-list-table.php:711
    5. WP_List_Table->display_rows_or_placeholder()
      wp-admin/includes/class-wp-list-table.php:1711
    6. WP_List_Table->display()
      wp-admin/includes/class-wp-list-table.php:1635

    Component:

    Plugin: all-404-redirect-to-homepage

    sorry i don’t know, whether reports like this are through this forum..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Adam Salah

    (@adam1318)

    Hi @kasthamaya ,

    Thanks for your kind feedback and for sharing the details.

    Regarding the warning you’re seeing in Query Monitor:

    The hook
    after_plugin_row_all-404-redirect-to-homepage/all-404-redirect-to-homepage.php
    is used intentionally to display additional plugin information inside the plugins list table.

    From the stack trace you shared, this is being triggered during the normal rendering of the plugins page in WordPress, specifically inside WP_Plugins_List_Table. This means the function is being called in the correct context and is not an indication of a functional issue.

    However, Query Monitor may sometimes flag these hooks as warnings if:

    • Output is generated unexpectedly
    • Or if something is hooked without proper conditional checks

    What you can do:

    1. Make sure you are using the latest version of the plugin
    2. If the warning does not affect functionality, it is safe to ignore
    3. Optionally, you can temporarily disable Query Monitor and confirm everything works normally

    Best regards,
    Adam

    Have a good day.

    Thread Starter kasthamaya

    (@kasthamaya)

    Thx @adam1318 , your response is quite clear and informative, hopefully this plugin will develop progressively.

    Have a nice day too

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this review.