Skip to content

PHP 8.1 incompatibility #2

@pacmanito

Description

@pacmanito

Hi, I’ve just started testing WP with recently released PHP 8.1 and found that your plugin causes a fatal error:

PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class LittleBizzy\DashboardCleanup\Cleanup\Elements does not have a method "quickDraft" in \wp-includes\class-wp-hook.php:303
Stack trace:
#0 \wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#1 \wp-includes\plugin.php(470): WP_Hook->do_action(Array)
#2 \wp-admin\admin.php(175): do_action('admin_init')
#3 \wp-admin\index.php(10): require_once('...')
#4 {main}
  thrown in \wp-includes\class-wp-hook.php on line 303

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions