I upgraded to WordPress 2.7.1 on one of my test blogs a few days ago using the new automatic upgrade feature. The upgrade went quickly and smoothly and everything worked afterwards, so that was good.
Tonight, I got round to upgrading my other test blogs and they didn’t go well at all.
Initially on 2 of them I got as far as “Downloading update from http://wordpress.org/wordpress-2.7.1.zip” and that was all; it just sat there doing nothing. OK, so I looked on the forums and saw a suggestion that it might be plugin related, so I disabled all the plugins on one of the blogs, this then got to the next stage “Unpacking the core update” and sat there doing nothing. Hmm, this was strange it worked on the first blog. I tried the update on my last test blog and this worked automatically in seconds. The mystery deepens!
Then I had a thought, back in July, when I was working on the problem with Firestats, I found a resolution by adding a line to my .htaccess file:
AddType x-mapp-php5 .php
This causes php pages to processed by my host 1and1 using PHP 5 instead of PHP 4. Looking at the test blogs that had worked, both had this line in the .htaccess file. Ah, could it be this simple?
I downloaded a copy of the .htaccess file from one of the failing blogs and wasn’t happy to find that WordPress (I guess) had reset it to the default file with only the WordPress rewrite section. Anyway, I added my redirects back in and added the line for PHP 5 and uploaded it.
The automatic update then worked fine. I did the same for the other failing test blog, which also had a default .htaccess file (I’m glad I keep copies) and that also worked. So it looks like the automatic upgrade works with PHP 5 and not with PHP 4
Warning: Declaration of Social_Walker_Comment::start_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::start_lvl(&$output, $depth = 0, $args = Array) in /homepages/9/d69875426/htdocs/ianblog_wp/wp-content/plugins/social/lib/social/walker/comment.php on line 18
Warning: Declaration of Social_Walker_Comment::end_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::end_lvl(&$output, $depth = 0, $args = Array) in /homepages/9/d69875426/htdocs/ianblog_wp/wp-content/plugins/social/lib/social/walker/comment.php on line 42
Thank you very much !! 😀
I couldn’t understand why upgrading was always hanging !
I was also having trouble with Firestats and disabled it a few months ago, but now I’m glad that with this fix, it can work again too !
You’re welcome Kaho,
I’m glad this has helped resolve your problems.
Regards,
Ian
Thanks for the tip!
I was about to resort to a manual update when I found your post. It worked on two blogs for me.
You’re welcome Natan,
Glad it helped you.
Regards,
Ian