Anybody out there done a Wordpress to CS2.1?

Answered (Verified) This post has 1 verified answer | 51 Replies | 6 Followers

dlature
Top 75 Contributor
270 Posts
Points 2,675
By: dlature
Posted: Sat, Sep 2 2006 4:35 PM
I am itching to start playing in CS with my main blog.  I want it to conncide with my actually learnhing to write dotNet stuff.  I have heard talk of BLogML,  but there seems to be no Wordpress specific tools or experience out there.  Same for BlogAPI.  I'd love to simply have a tool that I can upload the Wordpress Export file,  and have it pour into a CS 2.1 blog.  The Movable Type to Wordpress import worked pretty much just like this.  There's probably others ,  of reasonably enlightened developer status who would appreciate this. 
 

Answered (Verified) Verified Answers

Keyvan Nayyeri
Top 25 Contributor
2,114 Posts
Points 27,675
MVPs
Answered (Verified) By: Keyvan Nayyeri
Posted: Sun, Sep 3 2006 11:25 AM In reply to

If you see the post I linked, could get the idea.

WP, MT and Blogger are using same way for skinning so the technique for Blogger is appliable for WP and MT with a few changes.

 
Answered (Verified)
  • Post Points: 20 |

All Replies

interscape
Top 75 Contributor
Male
256 Posts
Points 955
By: interscape
Posted: Sat, May 19 2007 8:07 PM In reply to

No, this won't work for that. You'd have to set up your own WordPress site on your own machine, and then do a WordPress to WordPress export, import the site to your local machine, and THEN replace the file on your local machine and use it to export from there to CS. I know that's a pain in the butt, but you could always yell at WordPress and tell them to support open standards Wink.

 
  • Filed under: |
  • Post Points: 20 |
Karthik Hariharan
Not Ranked
3 Posts
Points 75
By: Karthik Hariharan
Posted: Sun, May 20 2007 1:31 PM In reply to

I actually did this yesterday and it worked out decently well.  I had to create a temp PHP wordpress site, then export its files using Robert McLaw's BlogML Wordpress exporter.

I still had to massage the data a bit though, the schema that Robert used may have been out of date so I had to some massaging to get it to work with the BlogML v2.0 standard (shifting a few elements around).

If wordpress could provide an XSD schema of their extended RSS format then it should be fairly simple to churn out an XSLT using XML mapping software.
 

 
  • Filed under: |
  • Post Points: 50 |
interscape
Top 75 Contributor
Male
256 Posts
Points 955
By: interscape
Posted: Sun, May 20 2007 2:34 PM In reply to

hkarthik,

Can you use my contact page at http://www.windows-now.com/blogs/robert/contact.aspx and message me about this offline? I'd like to get a copy of the changes that you made so I can update my export file. I went off the last schema in the Schemas folder, but it may not have been updated.

The reason I went with a native BlogML solution and not an XSD for the WXR file is because their format REALLY sucks, and doesn't pull out anywhere near as much info as it should to do a full export. BlogML doesn't provide enough info either, but it's much closer than WXR.

 
Keyvan Nayyeri
Top 25 Contributor
2,114 Posts
Points 27,675
MVPs
John Obeto
Not Ranked
2 Posts
Points 25
By: John Obeto
Posted: Sun, May 20 2007 7:00 PM In reply to

Hello Robert.

I would think a one-step process to import either Blogger or WordPress into CS should be a priority, if not for Telligent, then leastways for Über-devs such as yourselves, since it would introduce more people to what is undeniably the best blogging software out there.

WordPress has such a tool, for importing blog entries into Wordpress, so I cannot see why it can't be done. (Then again, I am no longer a developer, so what do I know?Stick out tongue)

This is the only thing stopping me from going live with CS for my personal blog, and getting clients to use the community features of Community Server. 

John Obeto II
Managing Partner Logikworx
Editor, SmallBizVista.com
Blog: AbsoluteVista 

 
interscape
Top 75 Contributor
Male
256 Posts
Points 955
By: interscape
Posted: Sun, May 20 2007 7:29 PM In reply to
John, It IS one-step for anyone using their own hosted version of WordPress. For people on WordPress.com, there is only so much that you can do. WordPress uses a format called WordPress Extended RSS (WXR), which is a HORRIBLE format for importing or exporting posts. The tool I built took the existing WordPress exporter and re-wrote it to support BlogML. In order to use it, you have to replace a file in your WordPress installation. 

Now, It would be possible to put a web-based BlogML tool into the default CS installation, but you’d still have extra steps if the other blog engines didn’t have BlogML built-in too. As a Blogger customer, you should write to Google and tell them to support BlogML for their export system.

 

Anyways, John I'll e-mail you about this more in about a week or so. Might be able to get you off a substandard blogging engine sooner than you think Wink.

 
  • Post Points: 35 |
John Obeto
Not Ranked
2 Posts
Points 25
By: John Obeto
Posted: Sun, May 20 2007 8:30 PM In reply to

Much appreciated, Rob.

I cannot wait to get off Blogger fast enough. 

 
  • Post Points: 5 |
dlature
Top 75 Contributor
270 Posts
Points 2,675
By: dlature
Posted: Sat, May 26 2007 1:59 PM In reply to

It seems to be at LEAST two steps.  One: get the BlogML file.  I did that.

Two: import it in to CS.  Mine timed out.  Is it too big?  Mine is 4522k.  about 4000 posts.

 

On further inspection,  there is this error ast the end of my exported Xml file:

<b>Fatal error</b>: Maximum execution time of 60 seconds exceeded in <b>D:\myhostaccount\wp\wp-admin\export.php</b> on line <b>172</b><br />

 

any ideas?

 
  • Post Points: 35 |
interscape
Top 75 Contributor
Male
256 Posts
Points 955
By: interscape
Posted: Sat, May 26 2007 7:56 PM In reply to

I don't know much about WordPress, but it sounds like you may need to increase the timeout in your .htcaccess file so that the script can run longer.

I think I can make this change in the script itself, so once I figure out what schema errors I had for BlogML 2.0, I'll drop that fix in there too.

 
  • Filed under: |
  • Post Points: 5 |
interscape
Top 75 Contributor
Male
256 Posts
Points 955
By: interscape
Posted: Sun, May 27 2007 12:51 AM In reply to

Karthik,

Can you please tell me what you had to do to "massage" the data? I'd like to be able to get my exporter tool working properly... Thanks!

-Robert

 
  • Filed under: |
  • Post Points: 20 |
interscape
Top 75 Contributor
Male
256 Posts
Points 955
By: interscape
Posted: Sun, May 27 2007 1:41 AM In reply to

dlature,

I made a simple change to the converter to adjust the execution time to 3 minutes. You can download the updated file here. Lemme know if you have any other problems.

-Robert

 
  • Filed under: |
  • Post Points: 20 |
dlature
Top 75 Contributor
270 Posts
Points 2,675
By: dlature
Posted: Sun, May 27 2007 4:35 PM In reply to

interscape:

dlature,

I made a simple change to the converter to adjust the execution time to 3 minutes. You can download the updated file here. Lemme know if you have any other problems.

-Robert

 

thanks for your attention to this.  However,  now I get the following errors when exporting:

<b>Fatal error</b>: Maximum execution time of 60 seconds exceeded in <b>D:\myaccount\wp\wp-includes\formatting.php</b> on line <b>1058</b><br />

<br />

<b>Fatal error</b>: Maximum execution time of 60 seconds exceeded in <b>D:\myaccount\wp\wp-includes\wp-db.php</b> on line <b>82</b><br />

 
  • Filed under: |
  • Post Points: 20 |
interscape
Top 75 Contributor
Male
256 Posts
Points 955
By: interscape
Posted: Sun, May 27 2007 6:54 PM In reply to

I had a feeling that was gonna happen. Simply changing it in my script was not enough. You have to do one of two things:

  • have access to the .htaccess file on the server, where you'll add the time: php_value max_execution_time 180
  • you're going to have to use the wp-admin file editor to add the following line of code at the top of the pages that are erroring out: set_time_limit(180);

HTH

 
  • Filed under: |
  • Post Points: 5 |
muse1
Not Ranked
3 Posts