WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#3712 closed defect (bug) (worksforme)

Blogroll Import Links fails

Reported by: MichaelH Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: opml import
Focuses: Cc:

Description

Importing opml file fails with this message:


Importing...
XML error: Invalid document end at line 1
Inserted 0 links into category 2. All done! Go manage those links.


Same file successfully imports into 2.0.7.

This was originally reported in the forums by KimHbel
http://wordpress.org/support/topic/103224?replies=1

Attachments (4)

feeds.opml (1.2 KB) - added by MichaelH 7 years ago.
feeds2.opml (1.2 KB) - added by MichaelH 7 years ago.
export.xml (9.2 KB) - added by KimHbel 7 years ago.
OPML-File, generated from Google-Reader
feeds.2.opml (4.5 KB) - added by KimHbel 7 years ago.
OPML-File, generated from IE7

Download all attachments as: .zip

Change History (16)

MichaelH7 years ago

comment:1 yabfog7 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The OPML file is not valid XML and cannot be parsed. See that closing outline element immediately preceding the closing body element (line #13) -- there is no matching opening outline element. Looks like you made a mistake hand-editing that OPML file.

comment:2 MichaelH7 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

Slightly embarrassed as I uploaded file I was trying to make work and I did edit it. I've attached another file that was exported from Feedster and is untouched.

The file throws the error reported above in 2.1 but imports 7 links into 2.0.7.

MichaelH7 years ago

KimHbel7 years ago

OPML-File, generated from Google-Reader

KimHbel7 years ago

OPML-File, generated from IE7

comment:3 drmike7 years ago

  • Cc theapparatus@… added
  • Priority changed from normal to high

Greets:

Please be aware that this problem also occurs on the standard WordPress Multiuser platform as well as wordpress.com.

http://en.forums.wordpress.com/topic.php?id=6982

It only occurs though when one is trying to upload the XML file. Importing links via a URL works fine.

Hope this helps,
-drmike

comment:4 Nazgul7 years ago

  • Keywords opml import added
  • Milestone changed from 2.1.1 to 2.1.2
  • Version set to 2.1

2.1.1 is out, so bumping the milestone to 2.1.2.

comment:5 Otto427 years ago

A suggested workaround exists in this thread: http://wordpress.org/support/topic/103224?replies=18

However, he simply eschewed the use of wp_remote_fopen() for the case of file uploads entirely, suggesting that there is a problem with the file upload mechanism.

comment:6 foolswisdom7 years ago

  • Milestone changed from 2.1.3 to 2.3
  • Priority changed from high to normal

comment:7 drmike7 years ago

  • Cc drmike added; theapparatus@… removed

comment:8 Nazgul7 years ago

  • Milestone changed from 2.3 to 2.5

comment:9 follow-up: pishmishy6 years ago

  • Milestone 2.6 deleted
  • Resolution set to invalid
  • Status changed from reopened to closed

I don't believe that WordPress includes OPML import/export features any more. I certainly can't find any references to it in the interface or code. Resolving as invalid (although I'm sure it was at one point!)

comment:10 in reply to: ↑ 9 Otto426 years ago

  • Milestone set to 2.6
  • Resolution invalid deleted
  • Status changed from closed to reopened

Replying to pishmishy:

I don't believe that WordPress includes OPML import/export features any more. I certainly can't find any references to it in the interface or code. Resolving as invalid (although I'm sure it was at one point!)

Yes, it does still have those.

Import: /wp-admin/link-import.php (Accessible through Manage->Links->Add new->Import link on the sidebar).

Export: Just go to /wp-links-opml.php.

comment:11 pishmishy6 years ago

Thanks :-) Both feeds imported fine here - I'm presuming that this has been fixed sometime between 2.1 and now. worksforme?

comment:12 Otto426 years ago

  • Milestone 2.6 deleted
  • Resolution set to worksforme
  • Status changed from reopened to closed

Yeah, I'm going to go with worksforme. The problem had to do with the bit that receives the uploaded files, and I think that was fixed elsewhere for some other reason.

Note: See TracTickets for help on using tickets.