Viewing Wordpress Import doesn't seem to save image assets... How can I retain the image links?

Wordpress Import doesn't seem to save image assets... How can I retain the image links?



User: Steven L. 2 years ago
I've got a long (but simple) blog. I have converted the content to Wordpress XML. EverWeb takes in the blog entries beautifully. I'm looking forward to this being my new editing platform.

But.

The images aren't saved by EverWeb. I can see the import process carefully reading all of the image files. The server log shows EverWeb's GET operations. But. The assets don't become assets. Worse, the images are just little blue placeholders in the resulting blog entries.

I tried bulk importing the assets by dragging them into EverWeb. This doesn't help the linkage with the Wordpress blog entries. (It's 800+ assets in one of the blogs; I'm not relinking them my hand.)

What do I do to get the wordpress <img src=.../> tags to properly use EverWeb assets?

If you'd like, I think I can pick off a few posts and related assets and send a ZIP file with the wordpress export XML plus the assets that are required.

Last edit 2 years ago
User: EverWeb Support 2 years ago
Hi Steven,

Can you give us the URL of the WordPress site, so we can try to import it?

If you have any further questions, please, feel free to create a support ticket with us.

-------------------------------
EverWeb Customer Support
Submit Tickets or Learn More
User: Steven L. 2 years ago
It’s a hair more complex than that. I’ve unwound iWeb and Sandvox sites into Wordpress WXR files. The file isn’t produced by Wordpress from a Wordpress site, sadly.

The examples from https://github.com/pbiron/wxr

Don’t include enough media assets with <img /> tags to clearly show how Wordpress exports this.

Another possibility is emailing me a sample WXR that includes media. I can debug my iWeb and Sandvox exporters with a known good file.
User: Steven L. 2 years ago
Here's the XML I'm using...

<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by iweb.py. -->

<rss version="2.0"
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://wordpress.org/export/1.2/ ../wxr.xsd'
xsi:noNamespaceSchemaLocation='../rss-20.xsd'
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.2/"
>
<channel>
<title>Cruising}}</title>
<link>http://localhost/</link>
<description>Refit</description>
<pubDate>Tue, 12 Oct 2021 08:06:21 +0000</pubDate>
<language>en</language>
<wp:wxr_version>1.2</wp:wxr_version>
<wp:base_site_url>http://localhost/</wp:base_site_url>
<wp:base_blog_url>http://localhost/</wp:base_blog_url>

<wp:author><wp:author_id>1</wp:author_id><wp:author_login>admin</wp:author_login><wp:author_email>local@host.null</wp:author_email><wp:author_display_name><![CDATA[admin]]></wp:author_display_name><wp:author_first_name><![CDATA[]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author>
<wp:category><wp:term_id>1</wp:term_id><wp:category_nicename>uncategorized</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Uncategorized]]></wp:cat_name></wp:category>

<generator>http://wordpress.org/?v=3.1-RC2-17315</generator>


<item>
<title>Mistakes Were Made</title>
<link>http://localhost/?p=FF524F52-3F37-4B94-ACF7-FA28A9133ABC</link>
<pubDate>Mon, 21 Sep 2009 00:00:00 +0000</pubDate>
<dc:creator>author</dc:creator>
<guid isPermaLink="false">http://localhost/?p=1</guid>
<description></description>
<content:encoded><![CDATA[
<p>Of course, mistakes were made. We’ll look at them as we go.<br/></p>
<p>Here’s number one, however.<br/></p>
<p><br/></p>
<p><strong>Before selling your house, take some pictures</strong>. You’ll want them.<br/></p>
<p><br/></p>
<p>We emptied the house, painted the rooms, redid the basement floor. But never really captured the “the way it was” photos. I was copying some tapes and watched the kids playing in the basement back when it was a playroom/sewing room/everything room.<br/></p>
<p><br/></p>
<p>Important<br/></p>
<p>What’s really important, however, is setting your priorities. In our case, closing up the house and downsizing to a small apartment was priority one.<br/></p>
<p><br/></p>
<p>Setting “good” garage-sale prices was not important, so we didn’t price anything. We’d suggest a price; whatever counter-offer we got was the final price. The goal was to clear out the house, not recover money from the mountain of stuff.</p>

<img src="https://127.0.0.1:5000/DSC01831.jpg">
]]></content:encoded>
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
<wp:post_id>FF524F52-3F37-4B94-ACF7-FA28A9133ABC</wp:post_id>
<wp:post_date>2009-09-21 00:00:00</wp:post_date>
<wp:post_date_gmt>2009-09-21 00:00:00</wp:post_date_gmt>
<wp:comment_status>open</wp:comment_status>
<wp:ping_status>open</wp:ping_status>
<wp:post_name>Mistakes Were Made</wp:post_name>
<wp:status>publish</wp:status>
<wp:post_parent>0</wp:post_parent>
<wp:menu_order>0</wp:menu_order>
<wp:post_type>post</wp:post_type>
<wp:post_password></wp:post_password>
<wp:is_sticky>0</wp:is_sticky>
<category domain="category" nicename="uncategorized"><![CDATA[Uncategorized]]></category>
<wp:postmeta>
<wp:meta_key>Post by</wp:meta_key>
<wp:meta_value><![CDATA[author]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key>_edit_last</wp:meta_key>
<wp:meta_value><![CDATA[1]]></wp:meta_value>
</wp:postmeta>
</item>
</channel>
</rss>

Since this is extracted from iWeb, the image source URL's are a local server that provides the resource. I have a small server running that will return the image associated with https://127.0.0.1:5000/DSC01831.jpg. The EverWeb import is very particular about this being a proper JPEG result, which is nice to see.
User: Paul-RAGESW 2 years ago
HI Steven,

Sorry for the problems you are experiencing.

Can you please contact support so I can provide an update to EverWeb to you which may fix this issue? Please mention this forum post.

-------------------------------
Paul
EverWeb Developer
✔ Best Answer  
User: Steven L. 2 years ago
Thanks! Ticket Created #841279
User: Steven L. 2 years ago
The beta release has resolved my problem.

I can now convert hundreds of blog posts starting from 2009 from a mixture of iWeb and Sandvox into wordpress-like export files that I can load all of it into EverWeb.

(This is may break all the links on my legacy iWeb site, but that's a small price to pay to preserve the content.)

Thanks for the speedy response!

Last edit 2 years ago


Post Reply
You must login or signup to post.