The Move

Well, on some things I have to say that WordPress is an utter, utter bastard. I’ll get there, I’m sure – and in general it’s a nice bit of kit, but it does have certain aspects that are utterly bastardish.

  • only using index.php – I’ve blethered about this already, but it’s still a pain in the arse.
  • Templating – I’m going to have some problems with the sweary/non-sweary idea because of the way it does some things. Thought is needed.
  • Log-in problems – I’ve now had to rebuild four times because the changing of log-in passwords is – shall we say – volatile. I’m hoping that the upgrade to 1.2.2 will iron out some of that.
  • This may be just me, but it seems to be a lot slower than the Blogger-driven system. Although, in fairness, the “upload” takes a shedload less time

I’m sure there will be other things as well, but for now, that’ll do.


Title Tags

Hmmm, there’s one problem I need to work on more than most now. Titles.

Because of the way I’d worked with Blogger, all the titles were wrapped as <p class=”hx“>title</p> – now I need to migrate that into the Title section on wordpress. I *think* I know how to do it using a PHP script, but does anyone know of a way to do it in SQL?


Imported

Yes, I’ve managed to pull in all 2,600ish posts no worries, and it’s actually gone fairly smoothly. Of course, there are some problems, but they’re more in how I wrote the stuff in Blogger, rather than due to the import process.

I now need to do some work with the problems, but I think that this will officially be the first post under WordPress.


Moving Along Nicely

As well as everything else that’s happened today, I’ve been working on the template for the upgraded site, once WordPress is fully working.

Let me know what you think of the layout, and whether there are any problems with the colour switcher etc.

Oh, and yes, the colours ARE foul. And I need to work a bit on making sure that the content text continues to stand out – in a couple of combinations it turns nasty at the moment. And the navigation bits are meant to be blank ’til the mouse hovers over them.


Normal Service?

Well, it looks like ‘normal’ service has been resumed chez Blogger. A “misconfigured router” that chuffed things for the greater part of yesterday. We’ll see how things go today, anyway.

As for WordPress and the problems I was having with it, they came down to a number of things. Not least among them is that fact that (unless I’ve missed it somewhere along the line) wordpress only seems to work when it’s index.php. The problem on d4d™ is that – well – this part isn’t the only section on the site. It’s on a page of its own, and WP really doesn’t seem to like it. So I’m going to have to work to create a new directory where this lot can go as index.php and work from there – oh, and write some rules to redirect people from /random.html to /random/index.php. Bit of a pain in the arse, but still doable. The other problem, which led to three re-installs is that WP really didn’t appear to like Opera – I reset the admin password and everything died, wouldn’t let me in at all, and so it was another reinstall. I ended up doing all that guff in Firefox instead.

So now I just need to figure out the templating stuff, and then I can have the real joys of exporting/importing from Blogger to WP. Oh what joy…


Still Buggered

Ok, I’m now getting really fucked off with this. I’ve been working to get WordPress installed after all, which has been – well, interesting would be a tactful phrase. But we’re getting there, having had one or two hassles. I haven’t started work on the template yet, that’s next on the list. The CSS is kind-of there and ready, although that may need some tweaking too. And then I’ll work on the rest.

In the meantime, Blogger has reported

A misconfigured router is causing the current mail2blogger, ftp and sftp publishing problems. Our Ops folks are working on it and it will be fixed soon.

Fan-fucking-tastic. It’s only taken them half a day to realise. I know, they’re in the US, blah blah, but all the same, is it too much to ask to have some kind of 24hour support now they’re owned by Google? Obviously so.


Debugging code

I’ve been writing some new stuff today for a website, which involves the admin area, and an automated changing of the password from the default.

For ages it wouldn’t work. It wasn’t redirecting to the “change password” page when all the variables were saying it should be doing. I’ve been through every stage, getting the script to print out the variable values in an effort to find out what was going wrong, and why it wasn’t working. Twenty minutes of debug effort later, I’ve realised what it was.
PHP uses a simple command called Header to redirect to another page. The version I had read
  Header(Location : http://www.website.org.uk/adminarea/change_password.php);
when it should have read
  Header(Location: http://www.website.org.uk/adminarea/change_password.php);

Can you spot the difference?

Non-Geeky Version

I’m a fuckwit and on occasion can’t read code, and miss the fucking obvious.