WP Document Revisions
[resolved] [closed] Bulk document import does not import the file itself (6 posts)

  1. Joan Junyent Tarrida
    Posted 4 years ago #

    Using the bulk-import script I get the document entries correctly inserted but the file itself does not get imported and copied to the media upload folder (nor it can't be downloaded again from wordpress).

    PD: tested on a blank wordpress site with no extra plugins. Adding single documents within wordpress dashboard works smoothly.


  2. intermedio
    Posted 4 years ago #

    I have the same problem. Though I am absolutely no code savy it seems to me that the file is just not copied to the correct folder. Unfortunately, as said, I can read a bit of code, but not produce it. May someone else? The rest of the script works fine.

  3. Ben Balter
    Plugin Author

    Posted 4 years ago #

    It appears, per the codex, wp_insert_attachment() requires that documents already be in the uploads directory. You can either manually move the files, or modify the script. see http://codex.wordpress.org/Function_Reference/wp_insert_attachment

  4. intermedio
    Posted 4 years ago #

    Hi Benjamin,

    thanks for the info (now I see my earlier mistake reading the script, sorry). For me it works now. For anyone encountering problems, make sure that the path to the directory where your files are is an absolute path. A relative path at least didn't work for me.

    Thanks Benjamin for the great work you did btw.

  5. rotarjen
    Posted 4 years ago #

    Hi Benjamin,

    I'm attempting to run the bulk import and I'm not getting any results.
    I've uploaded all files to the uploads folder, and edited the bulk-import.php file with the correct file paths for the uploads and the wp-load.php. When I access bulk-import.php nothing happens, no errors, no records addded to the database.

    Would appreciate any help & able to pay for code support. Thanks!

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    Please try http://codepoet.com/ or http://jobs.wordpress.net/
    Topic now closed as per the Forum Rules

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Document Revisions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic