When importing content via URL from a WordPress site, users receive a message:

The uploaded file is not a valid WordPress export

This message seems more appropriate for the file import method instead of for the URL import method.

CommentFileSizeAuthor
wordpress-import-error.png177.28 KBstacywray

Comments

mikeryan’s picture

Status: Active » Postponed (maintainer needs more info)

The message is technically correct - when you use the URL method, wordpress_migrate logs into the WordPress and exports the WXR file directly. But yes, in that context it's confusing. It's also worth noting that this message is generated at the point where the actual import is being performed, well after the file was uploaded to the web server (whether it was obtained via file import or by pulling directly from the WordPress site), at that point the code has no idea which method was used to obtain the file.

So, what's a more general message that makes sense either way? "The extract from WordPress is not a valid WordPress export file."?

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I'm going to leave it as is - it is correct, and it is also unlikely to occur with a direct export from WordPress, which of course should be valid, it's when someone uploads some random file or an edited WXR file that this is likely to happen.