Make WordPress Core

Opened 6 years ago

Closed 8 weeks ago

#12036 closed defect (bug) (wontfix)

Importing from wordpress exported file renders "Remote file is incorrect size" because file cache

Reported by: stelund Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.6
Component: Import Keywords:
Focuses: Cc:



I haven't confirmed this on other platforms, but my OS X machine seem to have an issue when downloading media content from a third party during an import of an wordpress.xml. And by quickly searching the net it seems other people have the same issue.

I've re-run the same import several times and it seem because the file was not flushed it may not have been updated with the file correct size. So even thought all bytes was written, the filesize($uploadfile?) is not the same. When thinking about the issue I found the check ridiculously and removed it. Importing then works and all media images are downloaded properly. Previously maybe 50% received the error.

I've attached my proposed diff.

Attachments (1)

wp_import-skip_file_size_check.txt (788 bytes) - added by stelund 6 years ago.
Proposed diff to fix the bug

Download all attachments as: .zip

Change History (7)

6 years ago

Proposed diff to fix the bug

#1 @stelund
6 years ago

  • Component changed from General to Import

#2 @nacin
5 years ago

  • Keywords has-patch dev-feedback added; import wordpress media download removed
  • Milestone changed from Unassigned to WordPress.org site

#3 @Otto42
5 years ago

  • Milestone WordPress.org site deleted

#4 @Otto42
5 years ago

  • Milestone set to WordPress.org site

#5 @chriscct7
14 months ago

  • Keywords close added

Reviewed the importer and none of the lines above exist anymore. Although not documented, this was probably fixed by #15197. Recommend close

#6 @chriscct7
8 weeks ago

  • Keywords has-patch dev-feedback close removed
  • Milestone WordPress.org deleted
  • Resolution set to wontfix
  • Status changed from new to closed

No interest in over 5 years. Closing per comment:5

Note: See TracTickets for help on using tickets.