Forums

Upload and Import File is designating wrong path (2 posts)

  1. khandor
    Member
    Posted 3 years ago #

    The error message I am getting says that my WordPress.org blog is trying to import a .xml export file along the following path:

    D:\webs\ftproot\wordpress/wp-content

    and that an error has occurred in the import process, so that this file cannot be moved properly.

    According to my host, however ... this is not the correct path for me to Uplaod and Import this .xml export file into.

    Below is the correct path:

    D:/webs/webroot/ftproot/wordpress/wp-content

    QUESTION

    How can I change the import path within WordPress.org to make this transfer possible.

    [my original WordPress.com blog was running on a Shared Server ... but my new WordPress.org blog is running on a Virtual Windows Server]

    Any help would be appreciated.

  2. Sheri Bigelow
    Member
    Posted 3 years ago #

    The first part of the paths that you have provided (i.e. D:\webs\ftproot\wordpress vs. D:/webs/webroot/ftproot/wordpress) show that the web server may not be providing php with the proper realpath (which is a setting on the server, not a setting within WordPress). To test the realpath function, create a php file with the following content in your main WordPress directory.
    <?php echo realpath('.'); ?>

    If the realpath function outputs "D:\webs\ftproot\wordpress" and that is not the correct path, then that is the cause of the problem and you should contact your host again to ask them why the realpath function is not working correctly (provide your example script).

    Related bug ticket: http://trac.wordpress.org/ticket/7118

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags