Error on activation of plugin

It seems to be throwing the following error:

[Wed Jul 31 22:19:09.079440 2024] [proxy_fcgi:error] [pid 52560:tid 52783] [client 173.207.57.119:0] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class Improved_Image_Compression does not have a method "add_admin_menu" in /home/1308609.cloudwaysapps.com/prgsarsfvu/public_html/wp-includes/class-wp-hook.php:324\nStack trace:\n#0 /home/1308609.cloudwaysapps.com/prgsarsfvu/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#1 /home/1308609.cloudwaysapps.com/prgsarsfvu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#2 /home/1308609.cloudwaysapps.com/prgsarsfvu/public_html/wp-admin/includes/menu.php(161): do_action()\n#3 /home/1308609.cloudwaysapps.com/prgsarsfvu/public_html/wp-admin/menu.php(412): require_once('/home/1308609.c...')\n#4 /home/1308609.cloudwaysapps.com/prgsarsfvu/public_html/wp-admin/admin.php(158): require('/home/1308609.c...')\n#5 /home/1308609.cloudwaysapps.com/prgsarsfvu/public_html/wp-admin/plugins.php(10): require_once('/home/1308609.c...')\n#6 {main}\n  thrown in /home/13...', referer: localseofixed.com/wp-admin/upd...

The error suggests that there is an attempt to call a method add_admin_menu on the Improved_Image_Compression class, but this method does not exist within the class definition. This results in a fatal error.

Comments

To leave a comment, please authenticate.

Syed, 3 months ago
Fixed with Version 2.2.5
Voters
Status
Completed
Board
Bug
Submitted
3 months ago, Michael Woodfield