Deactive wordpress plugin is very useful when your wordpress website meet access error ( can not be accessed through wordpress dashboard ) because of plguin upgrade. For example, my wordpress website has installed cloudflare plugin, and one day after i upgrade the cloudflare plugin, i got below error message when i access my website.
Fatal error: require(): Failed opening required '/home/abc/public_html/wp-content/plugins/cloudflare/vendor/composer/../myclabs/deep-copy/src/DeepCopy/deep_copy.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/abc/public_html/wp-content/plugins/cloudflare/vendor/composer/autoload_real.php
When you meet such error, do not be flustered, because the error just happened after you upgrade wordpress plugin, so the error is triggered by the plugin update also. So to fix it, you just need to follow below steps.
- Deactivate the wordpress plugin at server side ( because we can not access the website normally through it’s management dashboard ).
- Access the website through wordpress dashboard.
- Ask the wordpress plugin vendor to fix the error.
- Activate the wordpress plugin and use it.
This article will focus on how to deactivate the wordpress plugin at server side, below are steps.
- Use a ftp client to connect to your website’s root folder.
- Then go to /home/website_root_folder/public_html/wp-content/plugins folder.
- Find the wordpress plugin folder such as cloudflare and rename it to cloudflare_old to deactivate it.
- Login to your wordpress website dashboard by website_domain/wp-admin.
- Now you can fix the plugin error and rename the plugin folder back to activate the plugin.
- You can also reactivate the wordpress plugin through wordpress management dashboard.