• Resolved edwards1

    (@edwards1)


    I need help on how to import our uploaded xml on server to post, to point to an author.

    The xml are located at “/”.

    Procedures on how to, will be appreciated.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter edwards1

    (@edwards1)

    too bad, none of your documentation or videos shed light on “use existing file” and how to make the plugin check for new xml and publish it

    Plugin Author WP All Import

    (@wpallimport)

    Hi @edwards1

    I need help on how to import our uploaded xml on server to post, to point to an author. The xml are located at “/”.

    You can use the “Download from URL” option when setting up the import, then input the URL to the file. If the file is only available via FTP, you would need to write a proxy PHP script that downloads and outputs the file, then point your import to that PHP script.

    As far as pointing it to an author, I’m afraid that I don’t fully understand what you mean. Can you please elaborate and provide screenshots?

    too bad, none of your documentation or videos shed light on “use existing file” and how to make the plugin check for new xml and publish it

    I apologize for the confusion. The “Use existing file” option will list files that you’ve uploaded to the /wp-content/uploads/wpallimport/files/ folder. If you replace the file with a new file inside that folder, the new file will be used when you re-run the import.

    Thread Starter edwards1

    (@edwards1)

    @wpallimport

    here describes what we need

    If the file is only available via FTP, you would need to write a proxy PHP script that downloads and outputs the file, then point your import to that PHP script.

    Because the file is only available via ftp, so what script are we required to write and where should it be placed?

    On the issue of pointing the uploaded xml to author, i meant assigning the xml as it get to our ftp to a particular author, like the author posted it (which we already found while playing around with the plugin).

    So, could you please give full detailed description on the script we are required to write and where it should be placed.

    Thanks for the amazing plugin.

    Thread Starter edwards1

    (@edwards1)

    seems to me like you are a very busy one, so i will make it easier for yourself and mine cos i need the implementation urgently.

    After alot searching, i found the php you talked about here.
    Question is, am i modifying anything aside server, user, pass?

    After saving, where do i place it?

    What is next to do?

    Thread Starter edwards1

    (@edwards1)

    UPDATES: So, i’ve passed the above, i’m now faced with a diff issue.
    heres the error i’m facing

    Unable to download feed resource.

    WP All Import unable to detect file type.

    WP All Import not able to determine what type of file you are importing. Make sure your file extension is correct for the file type you are importing.
    Please choose the correct file type from the dropdown below, or try adding &type=xml or &type=csv to the end of the URL, for example https://example.com/export-products.php?&type=xml

    see screencapture

    i set path
    $server_file = ‘public_html/wp-content/uploads/wpallimport/files.&type=xml’
    $local_file = ‘datafeed.xml.’

    Plugin Author WP All Import

    (@wpallimport)

    Hi @edwards1

    This script will work, but you’ll need to make sure you modify the $ftp, $local_file, and $server_file variables with the correct information for your server. Once you’ve done that, you’ll need to place the script somewhere on your server so that it’s accessible via URL, then point your import to the script with the “Download from URL” option when creating your import.

    Unfortunately, we would not be able to help modify this code.

    • This reply was modified 7 years, 4 months ago by WP All Import.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help import .xml files on ftp to post, author’ is closed to new replies.