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

  1. jakobud
    Posted 4 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:


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


    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic