WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP Document Revisions] Bulk document import does not import the file itself

[Resolved] [Plugin: WP Document Revisions] Bulk document import does not import the file itself

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Plugin Author Ben Balter
    Member

    @benbalter

    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

    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.

    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!
    Jen

    esmi
    Forum Moderator

    @esmi

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: WP Document Revisions] Bulk document import does not import the file itself’ is closed to new replies.