Error removing plugin

5.98K viewsIssues
0

I receive an error while trying to remove the Anspress plugin:

 

Fatal error: Uncaught Error: Call to undefined function ap_opt() in ../public_html/wp-content/plugins/anspress-question-answer/anspress-question-answer.php:491 Stack trace: #0 ../public_html/wp-includes/plugin.php(525): AnsPress_Init::anspress_uninstall(”) #1 ../public_html/wp-admin/includes/plugin.php(1031): do_action(‘uninstall_anspr…’) #2 /../public_html/wp-admin/includes/plugin.php(829): uninstall_plugin(‘anspress-questi…’) #3 ../public_html/wp-admin/plugins.php(346): delete_plugins(Array) #4 {main} thrown in ../public_html/wp-content/plugins/anspress-question-answer/anspress-question-answer.php on line 491

Are you using 2.4.X?

I think it is due to the PHP version used 7+

0

This is still a problem.

Any updates?

commented on answer

Hello Jef,
Get latest commit and then navigate to AnsPress->Options & Addons -> tools. There you will find what you need.

Still it is unclear what those 4 options exactly do and in what order they must be used.

With the latest commit it worked to uninstall the plugin the clean way.
Hope it uses an uninstall hook to cleanup all the tables.

Thank you for the support!
(Still using Anspress on other projects btw 🙂 )

0

Still not possible to remove the plugin.

Any solution?

commented on answer

Hello Jef,
I have recently fixed this issue and working fine in our tests. Could you please provide error from log right after trying to delete plugin.

No server errors visible for the plugin.
General error message in the interface when removing: “Removing Are you sure you want to do? Try again. failed”

0

I’m using the latest Anspress version 3.0.3 and latest WordPress.

Could the usage of PHP 7 has something to do with it?