Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#2095 closed defect (bug) (worksforme)

Importing OPML file fails

Reported by: technosailor's profile technosailor Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: opml, links, import
Focuses: Cc:

Description

When importing from local OPML file, WP throws an error as if it thinks it's opening a URL:

Warning: fopen(http://) [function.fopen]: failed to open stream: Success in /home/httpd/vhosts/technosailor.com/httpdocs/wp-includes/functions.php on line 2105
XML error: Invalid document end at line 1

When importing from a URL, it attempts to insert all links as ID 0 resulting in only the first feed being imported:

Inserted Jeffrey Zeldman Presents: The Daily Report

WordPress database error: [Duplicate entry '0' for key 1]
INSERT INTO wp2_links (link_url, link_name, link_target, link_category, link_description, link_owner, link_rss) VALUES('http://jeremy.zawodny.com/blog/', 'Jeremy Zawodny\'s blog', '', 1, 'SELECT * FROM random_thoughts ORDER BY date DESC', 1, 'http://jeremy.zawodny.com/blog/rss2.xml')

Change History (2)

#1 @technosailor
18 years ago

Forget the dupe ID issue on URL import. That was a MySQL issue, not WP.

#2 @davidhouse
18 years ago

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

Cannot replicate the first. Are you sure that:

  1. the file exists?
  2. if you're using a url, remote fopen works on your server?

Reopen if you can provide steps to replicate.

Note: See TracTickets for help on using tickets.