[wp-trac] [WordPress Trac] #14026: Export errors

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 22 19:48:52 UTC 2010


#14026: Export errors
--------------------------+-------------------------------------------------
 Reporter:  dimitre       |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Unassigned       
Component:  Export        |     Version:  3.0              
 Severity:  major         |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------
Changes (by Leads):

 * cc: Leads (added)
  * severity:  normal => major


Comment:

 Thank goodness I found this trac.

 Background: I have just installed Wordpress 3 on my localhost using XAMPP.
 I have created some custom post types (in my case, called "Projects").

 I tried to export the xml file. Firstly, I had to install the WordPress
 Importer plugin.

 Once that was installed, when I tried to export it, I got the same errors
 as dimitre, highlighted in bold below, and then it immediately goes into
 what I presume should be xml content


 {{{
 '''Warning: strip_tags() expects parameter 1 to be string, array given in
 C:\xampp\htdocs\newsite\wp-includes\formatting.php on line 2773

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\xampp\htdocs\newsite\wp-
 includes\formatting.php:2773) in C:\xampp\htdocs\newsite\wp-
 admin\includes\export.php on line 44

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\xampp\htdocs\newsite\wp-
 includes\formatting.php:2773) in C:\xampp\htdocs\newsite\wp-
 admin\includes\export.php on line 45

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\xampp\htdocs\newsite\wp-
 includes\formatting.php:2773) in C:\xampp\htdocs\newsite\wp-
 admin\includes\export.php on line 46'''
 http://localhost/newsite Just another WordPress

 }}}

 However, Nacin, the fix you suggest did not work. I now get this error
 above the original error

 The error only shows when I try to export. /wp-admin/export.php loads
 fine.

 {{{
 array(2) { ["category"]=>  string(1) "0" ["post_tag"]=>  string(1) "0" }
 array(3) { [0]=>  array(4) { ["file"]=>  string(55)
 "C:\xampp\htdocs\newsite\wp-includes\formatting.php" ["line"]=>  int(766)
 ["function"]=>  string(17) "wp_strip_all_tags" ["args"]=>  array(1) {
 [0]=>  &array(2) { ["category"]=>  string(1) "0" ["post_tag"]=>  string(1)
 "0" } } } [1]=>  array(4) { ["file"]=>  string(47)
 "C:\xampp\htdocs\newsite\wp-admin\admin.php" ["line"]=>  int(89)
 ["function"]=>  string(12) "sanitize_key" ["args"]=>  array(1) { [0]=>
 &array(2) { ["category"]=>  string(1) "0" ["post_tag"]=>  string(1) "0" }
 } } [2]=>  array(4) { ["file"]=>  string(48) "C:\xampp\htdocs\newsite\wp-
 admin\export.php" ["line"]=>  int(10) ["args"]=>  array(1) { [0]=>
 string(47) "C:\xampp\htdocs\newsite\wp-admin\admin.php" } ["function"]=>
 string(12) "require_once" } }
 Warning: strip_tags() expects parameter 1 to be string, array given in
 C:\xampp\htdocs\newsite\wp-includes\formatting.php on line 2776

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\xampp\htdocs\newsite\wp-
 includes\formatting.php:2773) in C:\xampp\htdocs\newsite\wp-
 admin\includes\export.php on line 44

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\xampp\htdocs\newsite\wp-
 includes\formatting.php:2773) in C:\xampp\htdocs\newsite\wp-
 admin\includes\export.php on line 45

 Warning: Cannot modify header information - headers already sent by
 (output started at C:\xampp\htdocs\newsite\wp-
 includes\formatting.php:2773) in C:\xampp\htdocs\newsite\wp-
 admin\includes\export.php on line 46
 }}}

 I have read various blogs/forums saying about there being space in my wp-
 config file. However, my wp-config file does not have closing tag at the
 end. I thought this was this issue at first, but when checking other
 wordpress sites, there is no closign tag there either.

 I attempted the whole export process again on a new WP3.0 install and the
 I get the same error.

 I have changed the severity of this to 'major'. Apoligies if that is
 misusing this tracker, however, I need to have this sorted very soon.

 Thanks,
 Tom

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14026#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list