[Plugin: WordPress Importer] Imports the wrong path -> file not found
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 functionis 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 functionuses 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.
- The topic ‘[Plugin: WordPress Importer] Imports the wrong path -> file not found’ is closed to new replies.