Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3968 closed defect (bug) (worksforme)

WXR uses conflicting file extensions

Reported by: scoop0901's profile scoop0901 Owned by: rob1n's profile rob1n
Milestone: Priority: high
Severity: major Version: 2.1.2
Component: Administration Keywords: xml WXR import export backup restore
Focuses: Cc:

Description

Similar to bug found in ticket 3840.

Using WordPress 2.1.2, if you export the xml and try to import the file -- unchanged, even using the default name -- the import fails without any reason given. The file shows up in the "uploads" page, but it does not restore the posts and everything to the new blog location.

The import page for importing from WP says it should be a *.wxr file (not the xml file that was exported), but even changing the file extension to wxr does not resolve the matter.

Nothing was imported to a NEW MySQL database. It was attempted with five new databases on three different servers by one person, and in a different country, on a different server, by another fear` (in #WordPress).

_

Attachments (1)

3968.send-wxr.diff (465 bytes) - added by rob1n 18 years ago.
This one makes the exporter send a .wxr file.

Download all attachments as: .zip

Change History (7)

#1 @foolswisdom
18 years ago

  • Owner changed from anonymous to foolswisdom

#2 @scoop0901
18 years ago

Looking at 3840, this is not very similar. I may have not clearly written a note to myself when I was jotting down info for the bug.

I did send the actual WXR file to Lloyd Budd at Automattic, so he could look at the code and file to see if he could determine what the problem is. Since sending it, though, I haven't heard back from him, even to confirm that he received the file.

#3 @foolswisdom
18 years ago

  • Milestone changed from 2.1.4 to 2.2
  • Summary changed from XML, WMR files do not import old posts, comments to XML, WXR files do not import old posts, comments

I did receive your email the other day. I was waiting for some of the WXR patches be added to trunk to give me some comparison.

#4 @rob1n
18 years ago

  • Owner changed from foolswisdom to rob1n

So, I see two solutions:

  1. Make the importer use .wxr instead of .xml
  1. Allow .xml *and* .wxr to be imported

I'll attach patches.

#5 @rob1n
18 years ago

  • Summary changed from XML, WXR files do not import old posts, comments to WXR uses conflicting file extensions

@rob1n
18 years ago

This one makes the exporter send a .wxr file.

#6 @rob1n
18 years ago

  • Milestone 2.2 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

I could upload a .xml file (created straight from Export, same name) and it imported fine.

Note: See TracTickets for help on using tickets.