
I found it very hard to get out of bed this morning. The reason for this is simple: I stayed up until 2AM doing maintenance activities on this site and MoeGamer that could have almost certainly waited until a more sociable hour, but once I'd started, I wanted to see them through.
Y'see, both my sites have gone on a bit of a journey. They were both originally hosted on WordPress.com, with this blog being on a free account and MoeGamer being on a "Premium" paid tier. I was starting to reach the limits of what I could do with the Premium account in particular — most notably with regard to media storage space — and thus I moved MoeGamer to a self-hosted WordPress.org installation on a Bluehost hosting account.
Before anyone jumps in to decry Bluehost as being shit: believe me, I know. That is the reason neither of my sites are hosted with Bluehost at this point. But we'll come back to that.
As anyone who has ever tried to migrate a large site from WordPress.com to WordPress.org will tell you, the supposedly simple and straightforward migration process is anything but. What is supposed to happen is that you hit "Export" on your WordPress.com site, which spits out your site's contents as XML files, then you hit "Import" on your WordPress.org site, wherever you've hosted it, and it will recreate your site. Posts, pages and comments will go right back in, and the import process is supposed to look for any media you posted and automatically go and retrieve it from your old site, then transfer it to your new one.
Notice how I emphasise "supposed to". Because in the multiple times I have done this over the years, not once has it ever worked how it is, apparently, supposed to. Not only that, but the documentation on WordPress' own site refers to features and options that do not actually exist. Take these instructions for exporting your Media Library, for example. By following these instructions, even if the "automatic" process described above didn't work, you should be able to just tell WordPress.com to export all your media files into a big ol' .zip file, then import them all in one go to your WordPress.org installation.
Just one problem: the options they tell you to click on do not exist. Maybe they once existed and now do not, but right now — and for multiple years at this point, since I've done this several times with different sites — they do not exist, making them completely useless as instructions.
There are plugins that are supposed to help with this sort of thing. You can't install plugins on a WordPress.com site unless you're subscribed to the obscenely expensive "Business" plan, but you can install plugins on WordPress.org. Except you then run into the minefield of whether or not the plugins in question actually do what you think they're supposed to do, or if they're just some dodgy, shady thing trying to get you to sign up to their "Pro" account because the one vaguely useful option they have is paywalled.
And this is to say nothing of most web servers' tendency to crash if you throw too much data at them in one go. I have several thousand posts on both here and MoeGamer, and attempting to import them all at once would crash the import process every time. I ended up having to go a hundred at a time, which took a very long time, I can tell you, particularly as it would still crash on occasion. And amid all that, if it wasn't already clear, it didn't automatically import my old media and transfer it across to the new site; instead, it just left links to the old media and then… didn't do anything else.
So what I ended up with was two sites that were full of images that were hotlinked from an account I wasn't paying for any more, and which I wanted to close down. And it took me until last night to figure out some possible solutions.
For the record, I used two distinct plugins. Firstly, I used the Auto Upload Images plugin, which actually does do what the media import process is supposed to do: it looks for externally hosted images, then it imports them to your media library and updates the <img> tags to point to your new media library copies. The one downside I found with this plugin is that rather than importing the old images under the same date structure as the old site, it imports them all "today". This is down to a limitation with how WordPress handles files, I think, so no big deal — but it did cause an issue.
On both my sites, a lot of older images had automatically been set to allow people to click on them to see the full size versions. The links were now pointing at the old version of the image, while the <img> tags were showing the new versions. Not only that, but the mismatch in dates meant that some of these clickable links were just completely broken.
To resolve this, I took something of a nuclear option: I used the Broken Link Checker plugin to scan my site for all its links, searched those links for anything that was pointing at the old wordpress.com site and then just batch "unlinked" them. That means that the new images would be safely in place, the broken links would be removed and everything from thereon should, in theory, be hunky-dory.
There are a few things that have broken along the way, like any Gallery posts I hosted have lost all their images and I don't see any means of fixing that aside from doing them all manually, plus there's been the usual "link rot" of old copyright-infringing YouTube videos no longer being available online. Plus any audio media seems to have gone walkies, too, but again, no big deal, really; I don't think anyone expects a website that has been around for nearly 20 years to suffer from no link rot whatsoever.
But anyway. I got rather involved in this process last night, starting around 11pm. I knew, looking at the clock, that I shouldn't start doing something like this so late in the evening. But then I did, and hyperfixation kicked in, and I kept going until everything was, so far as I can tell, sorted. I mean, my galleries and audio bits are still broken, but I can live with that. What I didn't really want to live with was several thousand broken image links that led nowhere. And I think I've fixed that issue.
If you happen to notice anything wrong with any old posts you find yourself reading, do let me know and I'll see if it's possible to fix them. In some cases, that may be possible; in others, less so. As I say, it's part and parcel of a site being live for this long, even if it has moved hosting and domain names multiple times in its lifespan. But hopefully it's going to stick around right here for quite some time, so I wanted to fix as many of the annoying little issues as possible. So here we are!
I hope the three or four of you who actually read this appreciate the work I put in!
Want to read my thoughts on various video games, visual novels and other popular culture things? Stop by MoeGamer.net, my site for all things fun where I am generally a lot more cheerful. And if you fancy watching some vids on classic games, drop by my YouTube channel.
If you want this nonsense in your inbox every day, please feel free to subscribe via email. Your email address won't be used for anything else.
Discover more from I'm Not Doctor Who
Subscribe to get the latest posts sent to your email.