In case this helps, we had the same issue (cannot delete plugin) and the PHP error log provided this:
[25-Nov-2024 17:53:19 UTC] PHP Fatal error: Uncaught Error: Call to undefined function WpMatomo\matomo_filter_incompatible_plugins() in /home/xxxxxxxx/public_html/wp-content/plugins/matomo/classes/WpMatomo/Bootstrap.php:75
Stack trace:
#0 /home/xxxxxxxx/public_html/wp-content/plugins/matomo/classes/WpMatomo/Bootstrap.php(118): WpMatomo\Bootstrap::bootstrap_environment()
#1 /home/xxxxxxxx/public_html/wp-content/plugins/matomo/classes/WpMatomo/Bootstrap.php(148): WpMatomo\Bootstrap->bootstrap()
#2 /home/xxxxxxxx/public_html/wp-content/plugins/matomo/classes/WpMatomo/Uninstaller.php(151): WpMatomo\Bootstrap::do_bootstrap()
#3 /home/xxxxxxxx/public_html/wp-content/plugins/matomo/classes/WpMatomo/Uninstaller.php(73): WpMatomo\Uninstaller->drop_tables()
#4 /home/xxxxxxxx/public_html/wp-content/plugins/matomo/classes/WpMatomo/Uninstaller.php(46): WpMatomo\Uninstaller->uninstall_blog(true)
#5 /home/xxxxxxxx/public_html/wp-content/plugins/matomo/uninstall.php(22): WpMatomo\Uninstaller->uninstall(true)
#6 /home/xxxxxxxx/public_html/wp-admin/includes/plugin.php(1314): include_once('/home/xxxxxxxx/...')
#7 /home/xxxxxxxx/public_html/wp-admin/includes/plugin.php(970): uninstall_plugin('matomo/matomo.p...')
#8 /home/xxxxxxxx/public_html/wp-admin/includes/ajax-actions.php(4771): delete_plugins(Array)
#9 /home/xxxxxxxx/public_html/wp-includes/class-wp-hook.php(324): wp_ajax_delete_plugin('')
#10 /home/xxxxxxxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#11 /home/xxxxxxxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /home/xxxxxxxx/public_html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_delete-...')
#13 {main}
thrown in /home/xxxxxxxx/public_html/wp-content/plugins/matomo/classes/WpMatomo/Bootstrap.php on line 75
When removing all plugins and reverting to the TwentyTwentyFive theme, we still were unable to delete the plugin. Maybe this error code above can help narrow down where this issue might come from? Fortunately we restored from backups to avoid extraneous data being left in the database.
-
This reply was modified 2 hours, 52 minutes ago by ac2a. Reason: Spelling