Ticket #4234 (closed defect (bug): fixed)

Opened 2 years ago

Last modified 2 years ago

Import WXR fails with "Headers already sent"

Reported by: foolswisdom Assigned to: anonymous
Priority: highest omg bbq Milestone: 2.2
Component: Administration Version: 2.2
Severity: critical Keywords: importer
Cc:

Description

Import WXR fails with "Headers already sent"

ENV: WP 2.2 r5407
Similar failure on trunk r5407

  1. Manage > Import > WordPress
  2. Select file and click "Upload file and import" (Aise: the button label words should be capitalized)

Result:

Warning: Cannot modify header information - headers already sent by 
(output started at /var/www/wp/2.2/wp-admin/admin-header.php:16) in
/var/www/wp/2.2/wp-includes/functions.php on line 1335

Are you sure you want to do this?
No Yes

Change History

05/07/07 22:55:18 changed by ryan

You're getting a nonce AYS. WXR importer calls check_admin_referer() which calls wp_nonce_ays() which calls wp_die() which sends headers. Since admin-header.php has been loaded, we get the warning.

05/07/07 23:24:09 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [5410]) Don't send header from wp_die() if admin header already sent. fixes #4234 for 2.2.

05/07/07 23:24:45 changed by ryan

(In [5411]) Don't send header from wp_die() if admin header already sent. fixes #4234 for 2.3.

05/08/07 16:41:03 changed by foolswisdom

ENV: WP 2.2 r5411
Verified fixed.