#4234 closed defect (bug) (fixed)
Import WXR fails with "Headers already sent"
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.2 | Priority: | highest omg bbq |
Severity: | critical | Version: | 2.2 |
Component: | Administration | Keywords: | importer |
Focuses: | Cc: |
Description
Import WXR fails with "Headers already sent"
ENV: WP 2.2 r5407
Similar failure on trunk r5407
- Manage > Import > WordPress
- 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 (4)
Note: See
TracTickets for help on using
tickets.
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.