WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Importer
Imports the wrong path -> file not found (1 post)

  1. jakobud
    Member
    Posted 3 years ago #

    I've been trying to debug the problem in the plugin but I'm not having any luck.

    Basically what happens is when the import function is run, and this command is run:

    $file = get_attached_file($this->id);

    the resulting file has the full path to the upload folder prepended to the path for the file, even though the path for the file is in fact the full path. So if this is the file being uploaded:

    \\NAWINFS03\home\users\web\b1320\rh.seansheridan\wordpress/wp-content/uploads/2010/08/wordpress.2010-08-29.xml_1.txt

    the above code in the import function uses this as the file:

    \\NAWINFS03\home\users\web\b1320\rh.seansheridan\wordpress/wp-content/uploads/\\NAWINFS03\home\users\web\b1320\rh.seansheridan\wordpress/wp-content/uploads/2010/08/wordpress.2010-08-29.xml_1.txt

    You can see that it prepended the full path to the upload folder to the filename even though it was unnecessary to do so. So in the end, of course the plugin cannot find the file since the path is totally screwed up.

    What do I do? Am I the only one experiencing this problem? The server I'm working on is unfortunately IIS server instead of Apache. So I'm not sure if that is part of the problem or not.

    http://wordpress.org/extend/plugins/wordpress-importer/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic