dashboard-cleanup icon indicating copy to clipboard operation
dashboard-cleanup copied to clipboard

PHP 8.1 incompatibility

Open pacmanito opened this issue 4 years ago • 0 comments

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

pacmanito avatar Nov 26 '21 15:11 pacmanito