WordPress Expert » plugin http://johnlamansky.com/wordpress Wed, 01 Jun 2011 18:58:49 +0000 en hourly 1 http://wordpress.org/?v=3.3 How to Uninstall a WordPress Plugin http://johnlamansky.com/wordpress/uninstall-plugin/?utm_source=rss&utm_medium=rss&utm_campaign=uninstall-plugin http://johnlamansky.com/wordpress/uninstall-plugin/#comments Mon, 26 May 2008 14:00:55 +0000 John Lamansky http://wordpress.jdwebdev.com/?p=68 WordPress makes plugin deactivation simple enough — just go to the “Plugins” section, find the plugin, and then click “Deactivate.” But what if you want to get rid of a plugin for good? Here’s how:

  1. Check for an uninstaller — If the plugin has administration pages, check them to see if the plugin has an uninstallation routine. If so, running it should clear out the plugin’s database tables and settings, which you won’t be needing anymore if you don’t plan on using the plugin again.

  2. Deactivate the plugin — Go to the “Plugins” section, find the plugin, and then click “Deactivate.”

  3. Check for plugin calls — Now browse around your site and see if anything broke. If so, follow the instructions in this post: What to Do if Plugin Deactivation Breaks Your Blog.

  4. Delete the plugin files — Using an FTP program, delete the plugin’s folder and/or file.

You may also want to check out the Clean Options plugin. I can’t vouch for it, since I haven’t used it, but it claims to be able to find any options table entries that the plugin may have left behind.

]]>
http://johnlamansky.com/wordpress/uninstall-plugin/feed/ 4
What to Do If Plugin Deactivation Breaks Your Blog http://johnlamansky.com/wordpress/plugin-deactivation-theme-errors/?utm_source=rss&utm_medium=rss&utm_campaign=plugin-deactivation-theme-errors http://johnlamansky.com/wordpress/plugin-deactivation-theme-errors/#comments Fri, 23 May 2008 14:00:06 +0000 John Lamansky http://wordpress.jdwebdev.com/?p=69 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:

  1. Go to your WordPress administration. Click “Design” (or “Presentation”), then click “Theme Editor”.

  2. 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.

  3. 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(); ?>

  4. 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.)

  5. When you’re done, click the “Save” button to save your changes.

  6. 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.

]]>
http://johnlamansky.com/wordpress/plugin-deactivation-theme-errors/feed/ 21
How to Optimize Your WordPress Database Tables http://johnlamansky.com/wordpress/optimize-database-tables/?utm_source=rss&utm_medium=rss&utm_campaign=optimize-database-tables http://johnlamansky.com/wordpress/optimize-database-tables/#comments Tue, 04 Mar 2008 14:21:49 +0000 John Lamansky http://wordpress.jdwebdev.com/blog/tutorials/optimize-database-tables/ As time goes on, all the database operations performed on your WordPress tables (which are what store your blog posts and other data) will create what’s called “overhead.” To keep your database running smoothly, you can get rid of this overhead by “optimizing” your tables (similar to defragmenting your hard drive).

Here are two ways to do it.

Method 1: WP-DBManager

Download and install the WP-DBManager plugin.

The plugin allows you to, among other things, optimize your tables from within your WordPress admin (just go to the “Databases” section and click the “Optimize DB” tab), as well as schedule table optimizations on a regular basis.

However, the plugin also lets you delete tables and provides an interface for running MySQL queries, so if you don’t like the idea of all that power being vested in your WordPress admin, you can try the phpMyAdmin method instead.

Method 2: phpMyAdmin

Here are the steps for using the phpMyAdmin software.

  1. Go to your web hosting account’s cPanel and click the “phpMyAdmin” icon. If you don’t see one, look for a “MySQL Databases” icon, click it, scroll to the bottom of the page, and click the “phpMyAdmin” link.

  2. Select your WordPress database.

  3. Look in the “Overhead” column. If you see a table with overhead, click the overhead value.

  4. Click the “Optimize Table” link.

  5. Once it’s done, click the Back button twice (to go back to the tables list), and repeat from step 3.

And that’s it!

]]>
http://johnlamansky.com/wordpress/optimize-database-tables/feed/ 13