[wp-trac] [WordPress Trac] #15325: Importer tries to open XML file in wrong location on Windows

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 5 23:17:31 UTC 2010


#15325: Importer tries to open XML file in wrong location on Windows
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  duck_
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  3.1  
Component:  Import        |     Version:  3.1  
 Severity:  blocker       |    Keywords:       
--------------------------+-------------------------------------------------
Description changed by Viper007Bond:

Old description:

> I downloaded an export file from my WordPress.com sandbox and attempted
> to import it into my localhost trunk install. Doing so threw the
> following error:
>
> {{{
> Warning: gzopen(D:\Webserver\htdocs\wordpress-dev/wp-content/uploads/D
> :Webserverhtdocswordpress-dev/wp-
> content/uploads/2010/11/wordpress.2010-11-05.xml_.txt) [function.gzopen]:
> failed to open stream: Invalid argument in D:\Webserver\htdocs\wordpress-
> dev\wp-content\plugins\wordpress-importer\wordpress-importer.php on line
> 88
> Call Stack
> #       Time    Memory  Function        Location
> 1       0.0008  158712  {main}( )       ..\admin.php:0
> 2       0.2823  24185272        call_user_func ( )      ..\admin.php:207
> 3       0.2823  24185456        WP_Import->dispatch( )  ..\admin.php:0
> 4       0.2828  24186504        WP_Import->import( )    ..\wordpress-
> importer.php:892
> 5       0.2847  24193184        WP_Import->import_file( )
> ..\wordpress-importer.php:838
> 6       1.7980  24426448        WP_Import->get_entries( )
> ..\wordpress-importer.php:847
> 7       1.7980  24428304        WP_Import->fopen( )     ..\wordpress-
> importer.php:116
> 8       1.7980  24428552        gzopen ( )      ..\wordpress-
> importer.php:88
> }}}
>
> Note the totally whacko path that it's trying to open my XML file from.
>
> I'm using 0.2 of the importer that my install downloaded from the
> WordPress.org repository.

New description:

 I downloaded an export file from my WordPress.com sandbox and attempted to
 import it into my localhost trunk install. Doing so threw the following
 error:

 {{{
 Warning: gzopen(D:\Webserver\htdocs\wordpress-dev/wp-content/uploads/D
 :Webserverhtdocswordpress-dev/wp-
 content/uploads/2010/11/wordpress.2010-11-05.xml_.txt) [function.gzopen]:
 failed to open stream: Invalid argument in D:\Webserver\htdocs\wordpress-
 dev\wp-content\plugins\wordpress-importer\wordpress-importer.php on line
 88
 Call Stack
 #       Time    Memory  Function        Location
 1       0.0008  158712  {main}( )       ..\admin.php:0
 2       0.2823  24185272        call_user_func ( )      ..\admin.php:207
 3       0.2823  24185456        WP_Import->dispatch( )  ..\admin.php:0
 4       0.2828  24186504        WP_Import->import( )    ..\wordpress-
 importer.php:892
 5       0.2847  24193184        WP_Import->import_file( )
 ..\wordpress-importer.php:838
 6       1.7980  24426448        WP_Import->get_entries( )
 ..\wordpress-importer.php:847
 7       1.7980  24428304        WP_Import->fopen( )     ..\wordpress-
 importer.php:116
 8       1.7980  24428552        gzopen ( )      ..\wordpress-
 importer.php:88
 }}}

 Note the totally whacko path that it's trying to open my XML file from.

 I'm using 0.2 of the importer that my install downloaded from the
 WordPress.org repository.

 '''UPDATE:''' Fails with the new importer too (see [#comment:3 below]).
 Also I'm running PHP 5.2.13.

--

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


More information about the wp-trac mailing list