Say you just disabled a plugin, and now your WordPress blog’s front-end says “Fatal error: Call to undefined function.” Part of your site may even be missing.
The problem is that your theme is calling on the plugin you deactivated. However, since that plugin is gone, the site displays an error and then stops rendering the rest of the page.
Here’s what to do:
- Go to your WordPress administration. Click “Design” (or “Presentation”), then click “Theme Editor”.
- Where on your site did the error appear? If it was on your sidebar, click “Sidebar.” If it was only on a search page, click “Search Template.” If it was in the comments section, click “Comments,” etc.
- Now look for a function call that might be related to the plugin you just deactivated. For example, if you deactivated the Related Posts plugin, you might see some code like this:
<?php related_posts(); ?>
- If you don’t plan on using the plugin again, and if you’re sure the code belongs to the deactivated plugin, just delete the code.
Or instead, you can follow these instructions to alter the plugin function call so that it won’t break your blog when the plugin is deactivated.
(If you’re new to theme editing, you might want to backup your theme first just in case.)
- When you’re done, click the “Save” button to save your changes.
- If you couldn’t find any relevant code, or if the problem still isn’t fixed, repeat steps 3-5 for the rest of your theme files.
If all else fails, reactivate the plugin to get rid of the error, and then consult the plugin’s documentation, contact the plugin author, or file a support request at the WordPress Support Forums.