Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting failed! #222

Open
hujuice opened this issue Dec 26, 2022 · 0 comments
Open

Deleting failed! #222

hujuice opened this issue Dec 26, 2022 · 0 comments

Comments

@hujuice
Copy link

hujuice commented Dec 26, 2022

Hallo, thank you for your work, but I decided to not use your plugin.
I deactivated it and then I was trying to delete it, but the Wordpress function ("Delete") fails for reasons not clear to me.
"Deletion failed: There has been a critical error on this website.Learn more about troubleshooting WordPress."
More details follow.

  1. The issue is FYI, perhaps you should resolve the issue.
  2. I'm going to manually delete the /var/www/vhosts/mywebsitedir/www/wordpress/wp-content/plugins/category-posts directory. Should I delete something else?

Regards,
Sergio

About the error.
The installed plugin version is 4.9.13.

In the webserver error log I find this:
[Mon Dec 26 10:03:24.276302 2022] [php:error] [pid 28793:tid 140656924145344] [client xxx.xxx.xxx.xxx:42908] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "categoryPostsuninstall" not found or invalid function name in /var/www/vhosts/mywebsitedir/www/wordpress/wp-includes/class-wp-hook.php:308\nStack trace:\n#0 /var/www/vhosts/mywebsitedir/www/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#1 /var/www/vhosts/mywebsitedir/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()\n#2 /var/www/vhosts/mywebsitedir/www/wordpress/wp-admin/includes/plugin.php(1265): do_action()\n#3 /var/www/vhosts/mywebsitedir/www/wordpress/wp-admin/includes/plugin.php(958): uninstall_plugin()\n#4 /var/www/mywebsitedir/www/wordpress/wp-admin/includes/ajax-actions.php(4698): delete_plugins()\n#5 /var/www/vhosts/mywebsitedir/www/wordpress/wp-includes/class-wp-hook.php(308): wp_ajax_delete_plugin()\n#6 /var/www/vhosts/mywebsitedir/www/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#7 /var/www/vhosts/mywebsitedir/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()\n#8 /var/www/vhosts/mywebsitedir/www/wordpress/wp-admin/admin-ajax.php(188): do_action()\n#9 {main}\n thrown in /var/www/vhosts/mywebsitedir/www/wordpress/wp-includes/class-wp-hook.php on line 308, referer: https://www.sergiovaccarophoto.com/wp-admin/plugins.php?plugin_status=inactive

The PHP version is 8.1.12
I have no other errors or issues both in my webserver and in my Wordpress interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant