Overall, I’ve been happy with WordPress. However, there was one large bug I was never able to squash: it didn’t want to play well with Gallery. For some reason, I was never able to call WordPress functions from within the photo gallery pages. I wanted to make these function calls in order to have the side bar menu (which contains recent posts, comments, and other WordPress data) remain consistent on all the pages.
A simple server-side include should have taken care of this, but it never worked. I’d end up with the following error message:
Fatal error: Call to a member function on a non-object in /home/ronrapp/public_html/wp-includes/wp-l10n.php on line 37
The file referenced in the error message,
wp-l10n.php, enables WordPress to operate in different languages. Since it’s one of the first things WordPress does, that’s where the functionality broke down.
Normally a Google search will turn up the answer to just about any coding issue, but this one was a rare exception. I posted several messages to the WordPress support forum, but always came away with the feeling that I wasn’t explaining my problem clearly. Either that or the folks replying had no experience with Gallery, which is an admittedly wonky piece of open source software (the next iteration, dubbed “G2”, is supposed to be much better).
Anyway, I’m glad to report that the fog has finally been lifted. The answer: add the following line to the beginning of Gallery’s
I’d swear that this is one of the first things I tried four months ago. But apparently not, because it’s working like a charm now. F*%$#ing computers…