[wp-hackers] wp_update_posts fails

Jeremy Clarke jer at simianuprising.com
Tue Sep 18 18:15:00 UTC 2012


On Mon, Sep 17, 2012 at 9:27 PM, Haluk Karamete <halukkaramete at gmail.com>wrote:
>
>
> how do you tackle such import problems  so that $content does not fail
> the process like that!
> Is there a way to clean the $content so that it becomes kosher enough
> for the wp_update_post to go thru?
>
>
When migrating a huge site to Disqus I ended up using the command-line tool
xmllint* to track down all the strange little encoding failures in the WXR
file created by WP that Disqus was choking on. If you're using XML at all
that might help. It was the only thing I could find that was sensitive
enough to pick up all the issues that would cause Disqus to fail.

Not sure if that helps you at all. There may be other tools that will have
a similar effect of scrubbing whatever kind of data you have that you are
importing to WP.


* man page: http://xmlsoft.org/xmllint.html


-- 
Jeremy Clarke
Code and Design • globalvoicesonline.org


More information about the wp-hackers mailing list