Published January 21st, 2003 by Jim O'Halloran

Moving my MT Blog

Just thought I’d blog this one for anyone else that needs it…

Late last week I relocated my weblog because the old server (snares) is being decommisioned and replaced with a brand spanking new box (humboldt). Moving my blog was generally pretty painless. Firstly, I dumped my database from MySQL, and tar’ed up the MySQL dump and the other MT files. Then I FTP’ed these over to the new machine on which Apache, etc had already been installed. I then created the MySQL user with the same details and permissions as before, created the database and imported the dump file.

Finally I went into the MT admin page and changed the server name, paths, etc as required. However that left me with one remaining problem. Whenever I tried to post a new blog entry, I got the following error message…

Can’t call method “title” without a package or object reference at /wwwroot/weblog/lib/MT/App/CMS.pm line 2146.

A google search didn’t turn up any hints, but eventually I opened up mt.cfg and found a CGIPath setting there which still referred to the old server. Once I changed that, all was working properly again. So my advice to anyone getting errors after moving your blog, check CGIPath!


3 Responses to “Moving my MT Blog”

Feed for this Entry
  1. 1

    Rohan Says

    Hi Jim,

    thanks for this tip :) saved my bacon. Did exactly the same thing as you. As I couldn’t easily move files around on my own hosted website, I setup a new installation of MT on my local apache server here at home, then uploaded, and got the same error as you.

    Thankfully a google search got me to your page.. (second link in my search).

    Cheers !

    Rohan

    P.S. Noticing you’re a sysadmin geek, I have to plug www.sage-au.org.au :) need more SA members.

  2. 2

    ultrabob Says

    Thank you very much you saved me on my own transfer.

  3. 3

    angeline Says

    Thank you so much. I got this same error while installing MT for a client, and had to Google a billion times, it seemed, with an equal number of permutative arrangements of the wording of the problem! Your page was the only one that helped - as it turned out, I just had to delete one extraneous backslash and everything was perfect.

    This was a REAL help!

Leave a Reply

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>