Make WordPress Core

Opened 20 years ago

Closed 18 years ago

#3712 closed defect (bug) (worksforme)

Blogroll Import Links fails

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

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 20 years ago.
feeds2.opml​ (1.2 KB ) - added by MichaelH 20 years ago.
export.xml​ (9.2 KB ) - added by KimHbel 20 years ago.
OPML-File, generated from Google-Reader
feeds.2.opml​ (4.5 KB ) - added by KimHbel 20 years ago.
OPML-File, generated from IE7

Download all attachments as: .zip

Change History (16)

@MichaelH
20 years ago

#1 @yabfog
20 years ago

  • Resolution → invalid
  • Status new → 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.

#2 @MichaelH
20 years ago

  • Resolution invalid
  • Status closed → 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.

@MichaelH
20 years ago

@KimHbel
20 years ago

OPML-File, generated from Google-Reader

@KimHbel
20 years ago

OPML-File, generated from IE7

#3 @drmike
20 years ago

  • Cc theapparatus@… added
  • Priority normal → 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

#4 @Nazgul
20 years ago

  • Keywords opml import added
  • Milestone 2.1.1 → 2.1.2
  • Version → 2.1

2.1.1 is out, so bumping the milestone to 2.1.2.

#5 @Otto42
20 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.

#6 @foolswisdom
20 years ago

  • Milestone 2.1.3 → 2.3
  • Priority high → normal

#7 @drmike
20 years ago

  • Cc drmike added; theapparatus@… removed

#8 @Nazgul
19 years ago

  • Milestone 2.3 → 2.5

#9 follow-up: @pishmishy
18 years ago

  • Milestone 2.6
  • Resolution → invalid
  • Status reopened → 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!)

#10 in reply to: ↑ 9 @Otto42
18 years ago

  • Milestone → 2.6
  • Resolution invalid
  • Status closed → 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.

#11 @pishmishy
18 years ago

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

#12 @Otto42
18 years ago

  • Milestone 2.6
  • Resolution → worksforme
  • Status reopened → 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.