Category: Wordpress

In which WordPress changes their API, busts a couple features. Oopsies.

This site has comments by email. This site also has posts by email, should you be sadistic enough to subscribe to it–hey, a couple of you have, so it’s relevant. Or it did, until approximately 2 hours ago. You see, WordPress released a slightly newish version of their software last month, and one or two of the things that get some fairly regular use over here I don’t think were expecting that just yet. So they’ve kind of gone, um, squishy. I get to go digging through code later, but here’s a thing to keep a hold of–all your info has stayed put. If you subscribed to get comments to an entry by email, you’ll get comments to an entry by email–just not immediately right now, and unfortunately not retroactively either. Although, now that I think of it, your mailboxes might just thank you for that. Same goes for posts by email–although those, at least, you’ll get retroactively (don’t worry, I have sane limits on the amount of email this thing sends). The features still exist, they’re just somewhat temporarily broken. stick around, though–I’m not done twisting things into knots just yet. One of those knots might just fix themselves.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

In which WordPress and my server conspire to psych me out.

I’ve been making a fair few changes to things on this end lately. Mostly changes aimed at preventing things from falling flat on their faces. For the past few days, though, it’s been looking mostly like things were falling all over the place anyway. It started with my finally ditching Feedburner, while at the same time playing with the latest new addition to this blog’s feature set–you’ll find it at the end of this post. Multiple issues decided it’d be fun to crop up right around then. This blog’s RSS feeds, temporarily, did the awesomest impression of a corpse, with a path that used to be acceptable to get to the feeds in question deciding to pick around then to, well, fall flat on its face. Or so I thought. On top of that, the server was quite running away with memory usage around the same time–to the tune of over 2 gigs of reserved memory last night, for what should be at most maybe 3 quarters of a gig at peek times. Nifty. Except not. I managed to track down the memory leak to my first attempt at introducing the feature you’ll find at the end of this post, after a couple days of troubleshooting. It’s since been shot in the face. But the other issue? That was the fun one. And by fun, I mean so stupidly simple I could only have figured it out after a couple beers. Fortunately, I’d had 5 tonight so was in good shape. The RSS feeds, as it turned out, weren’t quite as broken as I’d thought. WordPress just temporarily decided to forget what it was supposed to do with them. A stupid setting on the admin side of the software developed temporary amnesia and needed to be reminded how things were supposed to look. And then reminded again, because it didn’t save the first time. Thanks, WordPress. No, really. Thanks. My technology has been conspiring to sych me out. And it damn near worked. Now, to go attempt this whole sleep thing, then try and figure out what the hell caused *this* spike in memory usage. More mockery tomorrow–I’ve built up quite a bit since things started conspiring. You’ll get to read it when I’m not halfway to Zombie City. Well, okay, if I remember.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

In which ConfigServer quite possibly breaks WordPress. Oof.

I’ve been dabbling in the more involved server admin business for the past while. One of the things we’ve been experimenting with for the better part of a month is the firewall provided by ConfigServer. It’s halfway decent for what it does, as long as you’re not trying to do anything too involved–like, say, get certain functionality native to WordPress to actually, you know, work. Like, for example, trackback/pingback functionality. So, since we had absolutely nothing else planned whatsoever tonight–hi, oh my god cold, we figured we’d either fix CSF or break Shane‘s blog. Turns out we did neither.

According to ConfigServer’s software, which I have taken to not trusting after our most recent discovery, inbound trafic on all the ports we needed to be open was possible. As was outbound. Except for that tiny little part wherein it sort of wasn’t. That lead to some pretty interesting problems in the neighbourhood of him actually being able to receive trackbacks/pingbacks. Since blogging in general, and WordPress in particular, is primarily focused on the whole community/conversation element of it all, that posed a very small problem. We fiddled off and on with it for a few weeks, and eventually for reasons of trying to scrape together a few dollars, we decided to start the process of migrating him away from that server and to my arangement over here. After breaking things in that department in all kinds of new and interesting–not to mention very very creative–ways, we thought we’d play with seeing if that fixes the outstanding issue of tracking back. Hence, if you hadn’t figured it out, the test post from earlier. And wouldn’t you know, the damn thing up and proved us both idiots. First try, it did exactly what it was supposed to. The only *really* major difference? The server the problem blog’s on isn’t running ConfigServer’s firewall–and won’t be, if I can possibly get away with it. Aside from that? Same server configuration, more or less, with a few extra mostly irrelevant bells and whistles I don’t actually use but hey, they’re cool.

The moral of the storry: If you’re running ConfigServer’s firewall, look for alternatives. If you’re not, keep it that way. It’s bad for you. Stay very, very far away from that program–particularly if you, or anyone you’re hosting/maintaining the server for, plans on running a WordPress blog. They just do not like each other and I think the relationship’s pretty irreparable. Now, the search begins for alternatives.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Another win for WordPress. Like it needs it.

I’ve been using WordPress since I brought the blog back to life from its previous incarnation over on LiveJournal. Mostly because it’s extremely good at what it does and, well, what it doesn’t do you can usually convince it to with minimal headache. I did check out windows Live Spaces quite a while ago, mostly because I used to read a blog or two over there–they subsequently are no longer updated; go figure. Problem was, Microsoft did almost nothing right from the perspective of accessibility/useability. And even less right from the perspective of features people might actually want to use. And, now, according to TechCrunch, they’re taking it out back and shooting it. They’re giving users of the service 6 months to decide what they want to do with their content, including having the option to migrate it over to the hosted version of WordPress, WordPress.com, but in 6 months, Windows Live Spaces will die. Can’t say I’ll miss Spaces, but thanks for the help wordpress doesn’t really need, in any case. Now if Blogger would just do that we’d be in business.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Why open source owns your soul: even the non-coders can fix things.

In the days of Windows and only Windows, the usual routine was find a bug, hit report a problem, kick back and maybe someone would get around to eventually, if you asked really really nice and forked over a hundred, maybe possibly fixing it. If they weren’t busy sucking back a beer or something. There was no real two-way exchange of information, per say–they either fixed it and you didn’t know about it until later, or they ignored it and you didn’t know about it until later if at all. Flash forward to the last week or so.

As I make no secret of, I power this site on WordPress plus about 20 wickedly handy plugins to take care of everything from statistics to adjusting things so folks who come across a 4-year-old link that no longer works can still find the entry they’re looking for at its new location. It was that latter redirect plugin that decided at one point to give me issues. For the record and those curious, if you want something similar for your own site the plugin is Smart 404, and it only works–to my knowledge, anyway–on WordPress. Now, before my year or two of experimenting with that other blogging platform, I had this site running under a different piece of software. That piece of software, still in development, took care of my needs back then with the exception of the whole comment spam thing–but the way it handled links in general was just different enough that when I set this up, and included the old entries from my first attempt at a blog, those links promptly broke. Not horribly, just a slight enough change that Apache threw a page not found error.

WordPress in general is very good about redirecting things within its own isolated environment to where you want to go. So, for example, if you were to go to http://www.the-jdh.com/index.php?post=123, it would redirect you to the appropriate post automatically–and to the appropriate, much more readable URL of that post–with no coaxing from me whatsoever. Kind of wicked nifty cool in an “I’m a lazy tech geek” kind of way. The problem is, there’s no native functionality for redirecting other links, not created by WordPress, to their appropriate wordpress equivalent. Enter the redirection plugin, Smart 404.

When I set it up to do what it was intended to do, though, I ran into another, slightly frustrating, problem. If you were to go to http://www.the-jdh.com/year/month/date/some_post.html, which was the old link structure on the blog, even with the plugin in place you’d get a 404 instead of being redirected to http://www.the-jdh.com/year/month/some-post/, which is one of WordPress’s default structures. Now, if we were talking closed source projects here, I’d of just switched to something else that did a similar thing–I’d have a better chance of seeing the problem fixed, and sooner, by doing that. But instead, it started out entirely in public comments on the blog of the developer of the offending plugin.

The actual conversation was, were it to happen over IM instead of blog comments, very short yet still very effective.

I posted a couple comments over there, pretty much explaining what happens when someone references one of the old, non-working links, and what according to the plugin documentation is supposed to happen. After running a real quick test to get access to exactly what it was the plugin was trying to do, the conversation effectively turned very quickly to something like this.
Dev: Okay, try this line of code and let me know if it breaks.
Me: *copy, paste* Okay, looks like it doesn’t explode. And hey, it does what it’s supposed to now. Who knew?
Him: Awesome. *throws it into CVS*
Me: Hey look, new version. And there’s the fix I tested. Awesome squared.

Yeah, it was literally that easy. And a very awesome reason for why sometimes, being able to actually see the program’s inner workings is a very good thing–you get to escentially debug and test a patch for your own problems, rather than waiting on the software’s tech support department–if they have one–to get around to communicating with the developers, who may or may not then get around to actually diagnosing and fixing the problem. The open source community as a whole gets major props for that. And major props to the Smart 404 developer for being nearly as quick to implement solutions to problems as his users are at finding problems to fix. And huge props to WordPress, because–really, do I need a reason? Now excuse me while I go consider for the thousandth time learning PHP or something.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Alibi3col theme by Themocracy

© 2006-2012 by me. All Rights Reserved. Failure to comply will be met with an angry stare. -- Copyright notice by Blog Copyright