Fatal error when attempting to delete plugin
-
I’ve tried three different sites, two on live server and one on local. All gave the same error when I attempted to delete your plugin from the site.
PHP Fatal error occurred: require_once(): Failed opening required '/xxxx/xxxx/xxx/xxxxx/wp-content/plugins/multisite-enhancementssrc/settings.php' (include_path='.:/etc/config/php') in /xxxx/xxxx/xxx/xxxxxx/wp-content/plugins/multisite-enhancements/uninstall.php on line 9.
Having taken a look at the code in your plugin, I see the error.
Currently, your uninstall.php file contains:
require_once __DIR__ . 'src/settings.php';
I changed it to:
require_once __DIR__ . '/src/settings.php';
When I applied the change, I was able to delete via WordPress dashboard. I’m not a coder so I don’t know if the solution is the solution you would choose, but what I did worked for my needs.
Thanks
- The topic ‘Fatal error when attempting to delete plugin’ is closed to new replies.