Serendipity to WordPress

I’ve moved a couple of my blogs from Serendipity to WordPress (mostly because I’ve discovered that Serendipity has some issues with newer PHP setups, but also because I’m getting lazy and WordPress’ admin panel is nicer than s9y’s ;-) ).

Luckily someone else did already write a s9y->WP importer plugin. Sadly it didn’t support nested categories, so I changed a couple of things and here’s my Serendipity (S9Y) importer for WordPress 1.5 (hoping that noone else has already used that version number… the history of the plugin contains several authors :) )

One snag: after the import, you’ll need to edit one of the categories (just open and save it) to fix the hierarchy. I don’t know why and honestly I don’t care :-P Worked for me, your mileage might vary.

Refer to this article for other useful migration tips.

This entry was posted in Software, SysAdmin and tagged , . Bookmark the permalink.

23 Responses to Serendipity to WordPress

  1. Jon says:

    Hey, saw your updated the code (1.5 is probably free, no one else has “claimed” it). Though your link to the source code does not work. Speaking of, would you mind if I took yours and checked it into the SVN repo I’ve got mine in? That way we have a continuing source of functioning code.

  2. Pingback: Hallo Welt … – RC505

  3. Pingback: Serendipity to WordPress – Importer version 1.5 | Snowulf

  4. AdamCO says:

    this plugin definitely does not work with wordpress 3.x — the install fails because of a lack of valid header and the even if you write in a valid header (which I did), this error message is thrown

    Fatal error: Call to undefined function register_importer() in [watever]/wp-content/plugins/s9y2wp/serendipity.php on line 706

    Anyone have better luck than me?

  5. Pingback: Serendipty auf Wordpress migriert | Cogito Ergo Blog

  6. AdamCO says:

    i just installed 2.9.2 and followed the instructions…worked great. since everything is in, i can just upgrade to 3.x whenever. thanks for your work on this plugin.

  7. rack says:

    Sorry to barge in. I am trying to use the serendipity.php file 1.4 but cannot follow the directions “put .php file in /import directory” because there is no import directory in 3.x.
    Does anyone know how to get that file into the IMPORT link in the ADMIN screen?
    Thank you
    Rack

    • rack says:

      oops…
      Logistic problem.
      I recently found that most themes, widgets, plugins ect do not work with older 2.x versions.
      I cannot design and layout a new site with an older version.
      I need to leave the Serendipity blog up and running. which has 8000 articles and about 10 new a day.
      I expect it to take me a month or so to layout, design, tweak, seo, server and such before I do the DB move and start it up.
      300 articles in the meantime will not make it to the WP blog.
      Cant have dat! :)
      Any ideas to rise out of my dilemma?

  8. rack says:

    I have installed 2.9, I assumed the .php file would work as there is a proper place to put it.

    My problem is kind of hard to explain. As you can see from the explanation above! :)
    It’s a process issue.
    To try and make it short.
    I need a way to get the serendipity.php file working in 3.3.

    • Simone Simone says:

      I’ve made a minor change to the plugin so that it can be installed as a normal plugin in WP 3.x. It also appears in the Import menu.

      I haven’t actually tested whether it works or not, though :-)

      If you want to give it a try (at your own risk! ;) , it’s available at http://files.tellini.info/s9y2wp3.zip

      • rack says:

        WOw! Thanx. I have it in a special folder ready to go.
        It could be some time before I am ready to give it a try.
        I will be sure to let you know!
        Thanx again!!

      • rack says:

        Where should I put this newer serendipity.php file?

        • Simone Simone says:

          in the standard plugins directory: wp-content/plugins/

          Then you’ll have to activate it in the plugins section of the control panel and finally it’ll appear in the Tools->Import page

          • rack says:

            I get this when after I put serendipity.php into the /plugin directory in WP 3.3.1

            Fatal error: Call to undefined function register_importer() in /home/kick/public_html/kick/wp-content/plugins/serendipity.php on line 698

  9. rack says:

    Wow THANKS! I will let you know how it turns out… Thanks again rack

    • Simone Simone says:

      about the error above, are you sure you used the new version? (the one linked in the previous comment)

      There should be this line near the beginning of the serendipity.php file:

      require_once ABSPATH . ‘wp-admin/includes/import.php’;

      which is required to use the register_importer() function…

      • rack says:

        Me bag of hammers… :( I did get the serendipity files messed up and used the old one. Sorry. And thanx for bearing with me. Ok, it did the categories and then for users it stopped with this…

        Catchable fatal error: Object of class WP_Error could not be converted to string in /home/kick/public_html/kick/wp-includes/capabilities.php on line 497

        I am still ADMIN if that matters.

        • Simone Simone says:

          I was afraid it wouldn’t have been so easy :-)

          There must have been other API changes that require more work on the plugin. Unfortunately, at the moment I don’t have enough time to do it…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>