WordPress Expert Special Offer: Free WordPress Installation, Free WordPress Development Consultation, Budget cut-off for your WordPress customization
Get your own domain name for $10 only! Get the cheapest web hosting for $6 a year, Free WordPress Installation, Free WordPress Development Consultation, Budget cut-off for your WordPress customization, and much more. Get free web hosting to test your website first. Just contact us and we will never charge any cost, and the best part is you can also get free WordPress installation and ready to used for your website. Start today! Get this special offer Now! Don’t waste your time, it’s only until end of this year!
What to Do If Plugin Deactivation Breaks Your BlogPosted on May 21st, 2010 in Plugins, WordPresswith 0 Comment(s). Tagged with: WordPress Plugins.
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.