WordPress Expert » theme files http://johnlamansky.com/wordpress Wed, 01 Jun 2011 18:58:49 +0000 en hourly 1 http://wordpress.org/?v=3.3 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 Backup Your WordPress Theme http://johnlamansky.com/wordpress/backup-theme/?utm_source=rss&utm_medium=rss&utm_campaign=backup-theme http://johnlamansky.com/wordpress/backup-theme/#comments Mon, 19 May 2008 19:41:51 +0000 John Lamansky http://wordpress.jdwebdev.com/?p=70 If you’re about to make a modification to your theme files that you aren’t sure about, it’s a good idea to backup your theme, especially if your theme is custom-made (i.e. you can’t just re-download it if something goes wrong), or if you have many other theme modifications you want to preserve.

Here are two ways to do it:

The Quick Method

You can easily backup a single theme file by going to “Appearance > Editor,” clicking the file, and then copying-and-pasting the contents of the theme file you’re editing into a Notepad document. Read more detailed steps here.

The Complete Method

These steps will help you backup your entire theme:

  1. Download an FTP program (such as FileZilla) if you don’t have one already.
  2. While you’re waiting for that, go to your WordPress admin, and then click on “Appearance.”
  3. Under the “Current Theme” header, note the file path that comes after “All of this theme’s files are located in.”
  4. Once your FTP program is downloaded, installed, and ready to go, connect to your website by entering in your FTP hostname, username, and password (these should be different from your WordPress username and password). If you don’t know what they are, ask your web host for help.
  5. Once you’ve connected to your website, browse to the folder that contains your WordPress installation (again, ask your web host if you need help finding it), and then browse to the folder you noted in step 3.
  6. Tell the FTP program to download the entire theme folder to a location on your computer.
  7. Once that’s done, check to make sure the FTP program says the files transferred correctly.
]]>
http://johnlamansky.com/wordpress/backup-theme/feed/ 9