So for the past several days I’ve seen the WordPress 2.7.1 upgrade available so finally I decided to move forward and update. Little did I know how problematic it would be. First I tried the link to upgrade automatically (after backing up my database). It didn’t do anything however. Just sat there with the message “Downloading wordpress-2.7.1.zip”. So I did a little investigation (Google) and discovered that this was happening to a few people specifically with 1and1.com hosting service. The solution was to edit the .htaccess file in the root of the WordPress install to include the following: AddType x-mapp-php5 .php which apparently forced php5 use (here is a link to the site that provided the information). If you discover that you don’t have an .htaccess file check and make sure that whatever method you are using to view the file listing (ftp etc.) is displaying hidden or dot files. If you still don’t see the file then just create one and add the line specified above. This resolved my issue and the auto upgrade went smooth. Well except for the issues experienced with the K2 theme. Once upgraded my layout was all messed up, specifically my header image was centered but my posts were flush left. Once again, Google to the rescue. A simple search uncovered this WordPress Forum entry which discusses this very issue. Scroll down to the second post by Luciano Passuello who provided code to change in the header.php file. Basically edit the header.php file in the K2 directory and search for the following code:
<body class=”<?php k2_body_class(); ?>”
Replace with:
<body class=”wordpress k2 blog columns-three lang-en <?php k2_body_class(); ?>”>
This resolved my issue with the header and page body being misaligned. Special thanks to Luciano Passuello for the fix. Now things seem back to normal except that my links in posts are highlighted in a different color than before but I’m sure this will be an easier fix.
Recent Comments