Lahore Metblogs Widget

Metblogs just introduced a cool widget to embed any metblog post on your own blog. Since I am a Lahore Metblogs author by virtue of writing a few posts there, so I thought I’d check the (beta) embed script out. Here goes:

Hmm, it ate up my masterpiece images, and the title is missing the trailing /, but pretty cool otherwise. I didn’t know they also have an author feed, so here’s my feed at Lahore Metblogs – I will try to write there more often in 2009 than my current frequency of a post per quarter.

Memory Hungry PHP Applications on Shared Hosting

If you run your WordPress on a shared hosting server like hostmonster.com / bluehost.com (which have excellent service by the way), and have several memory-hungry php applications or WordPress plugins installed, you must have run into an "Allowed memory size exhausted" fatal error a few times. For me it happened yesterday while uploading a mere 12MB of images (1MB per image) and trying to ask the NextGen Gallery plugin to discover them and generate thumbnails. WordPress ran out of memory after 32MB and died with the above exception.  Though one can't ask a lot from a 6$ per month hosting provider, and since 32MB ought to be enough for everyone (hehe), I decided to spend some valuable time in trying to find a workaround to the limitation, before deciding to dump the NextGen plugin. Here's what I found out: Read more “Memory Hungry PHP Applications on Shared Hosting”

WordPress Image Gallery Woes

Why is it so hard to have a photo album integrated into WP?!
I have thousands of pictures on my harddisk taken over the last 10 years or so that I want to upload, Flickr doesn’t give the control that I want. This week, I took out my rusty Canon G6 (well, not rusty but it might as well be) after one year to teach my son how to take pictures, and thought I might as well set up a photo album here.
So I’ve spent the last 2 hours searching for WP plugins (not standalone albums) and thought I found a good one – Word Press Photo Album , uploaded it, configured it as required… but it just won’t work!
Its not letting me create a default album, and shows no errors. After some debugging (PHP is not my language), it seems that the form variables are not getting through, and the relevant function wppa_add_album is not called… so I entered the record manually in the database just to get started… the album showed up but now adding images shows the same behavior 🙁
Maybe its the WordPress version, maybe its my host, maybe its something else… but I’m giving up now. I guess I’ll wait for a future WP version that has a built-in album.
Here’s my son, trying to give a ‘big smile’

harris-big-smile-20070715

If you know of an easy to install integrated album for WP, please let me know.

Fixing Sociable plugin implode error with WordPress 2.2

I’ve been trying to find some spare time to properly set up this blog before actually blogging. So far things haven’t gone as smoothly as I would have liked.

First, I started getting the same 404s after upgrading to WordPress 2.2. After a few email exchanges with webhost4life, they upgraded my server to PHP5 and that seems to have solved the problem.

Then I had to select the plugins to run here, and each plugin came with its own bugs and problems. For tagging support, I’ve switched from Jerome’s Keyword plugin to the Simple Tagging plugin, as it has more features, and more importantly, because the next WordPress version (2.3) is going to have a native tagging support, and the alpha release has import functionality implemented for Simple Tagging (I’m not sure about other tagging plugins), so the upgraded should be relatively easy.

Sociable, the social bookmarking plugin, gave me a tough time. On installation, its Options screen was generating a bunch of php ‘implode’ errors, with a messed up configuration screen. Though I’m not a php guy (C++/Java are my main tools), after looking at the code, one of the errors seemed to have to do with its auto-update functionality. Disabling the auto-update functionality by creating a new empty body for the function by change the line

function sociable_update_version() {

to

function sociable_update_version() { }

function sociable_update_version_original() {

seems to work. After setting the options to default, I was able to drag/drop/enable/disable the various buttons, and though the save button still generated the php errors, the blog post pages reflected my changes.

But… (why is there always a but) it broke the theme that I had finally settled on and tweaked for the blog, and all other themes were working fine.

I think I’ll let it go for now and move on to more important things, like blogging for example.