Apr 07
My Sites: My Blog | My Tech Blog | Follow me on Twitter
—-

Situation: You are migrating your WordPress blog from PHP4 to PHP5 (intentionally or being forced to as you web host won’t support PHP4 anymore). Most of the times, this is as simple as adding some simple lines to .htaccess (e.g. AddHandler application/x-httpd-php5 .php ). And you might not notice any issues. But many of you still do. The issues range from weird page layouts, to some controls not working, to some errors popping up here and there, and probably your blog not even displaying. This occurs because even though WordPress is PHP5 compatible, some of the plugins you are using might not be. But even if you ensure that all your plugins are PHP5 compatible, there is still one more problem that I just saw today.

Problem: My host supports both PHP4 and PHP5. I decided to migrate my personal blog to PHP5 today by adding the aforementioned line to my .htaccess. Immediately, my blog disappeared, and in its place, all that was left was a few errors:

[07-Apr-2008 12:11:49] PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /…/wp-cache-phase2.php on line 105
[07-Apr-2008 12:11:49] PHP Warning:  fopen/…/wp-cache-e3ba4b7161eb59d50c5e976a0b66782a.meta) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /…/wp-cache-phase2.php on line 240
[07-Apr-2008 12:11:49] PHP Warning:  fputs(): supplied argument is not a valid stream resource in /…/wp-cache-phase2.php on line 241

Note: I’ve deleted the exact file paths above for security reasons.

It gave me an idea that it had something to do with wp-cache. When I tried to open the settings for wp-cache, it again gve error that web server doesn’t have the permissions to write the file wp-cache-config.php, wp_cache_mutex.lock etc.

Continue reading »


—-
If you liked this post, then you can Subscribe to my feed
Quote of the day: Ralph: Me fail English? That’s unpossible.

written by Shantanu Goel \\ tags: , , , , , , , ,

Mar 15
My Sites: My Blog | My Tech Blog | Follow me on Twitter
—-

Just some news on my WordPress plugins front. shantz-wp-qotd has been updated to version 1.2.1 and shantz-wp-prefix-suffix has been updated to 1.0.1. It is just a minor update meant for people still using a WordPress version < 2.1. The update makes the “page exclusion” feature of both the plugins (i.e. the option to prevent the plugins from acting on “pages”) compatible with WP < 2.1 as well.

Go to their respective pages for downloads:

shantz-wp-qotd

shantz-wp-prefix-suffix


—-
If you liked this post, then you can Subscribe to my feed
Quote of the day: Homer: [drunk] Look, the thing about my family is there’s five of us. Marge, Bart, Girl Bart, the one who doesn’t talk, and the fat guy. How I loathe him.

written by Shantanu Goel \\ tags: , , , ,

Feb 10
My Sites: My Blog | My Tech Blog | Follow me on Twitter
—-

These are my WordPress related projects.


—-
If you liked this post, then you can Subscribe to my feed

written by Shantanu Goel \\ tags: , , , , ,