• chondrion

    (@chondrion)


    I am using the Participants Database plugin (along with some paid add-ons) on a WordPress.com site. Unfortunately, I’m not able to import CSV files due to the error below. Nothing is listed next to “Destination”. I made sure that the “File Upload Location” setting is correct and I even created the directory manually with 777 permissions to be sure. I would at least expect the error to contain the directory it’s trying to use. Any ideas how I can get the upload directory to work? Thanks!

    Target directory does not exist and could not be created. Try creating it manually.
    
    Destination:
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Roland Barker

    (@xnau)

    This is something you will need to address with wordpress.com, they have some very strict policies on their server, so they may have some special instructions about how to configure the upload directory.

    Thread Starter chondrion

    (@chondrion)

    Thanks for getting back to me so quickly. However, I don’t think this is a WordPress.com issue specifically. I tried to debug the issue further and here is what I found.

    First, the $upload_location variable in xnau_CSV_Import.php is not set so the error message never contains the intended target directory for troubleshooting.

    Next, after I fixed the first problem, I noticed that my “File Upload Location” setting was not being used. The plugin was attempting to upload my file to the root directory (ie. /file.csv). I confirmed that the constants you’re using are set so this could be a bug in the logic that finds or creates the upload directory.

    I was finally able to get the import/upload working by setting the “File Upload Location” to “uploads/participants-database/” and enabling “File and Image Uploads Use WP Content Path”. Therefore, this does not seem to be specific to WordPress.com’s restrictions. Please let me know if there’s anything else I can do to help.

    Plugin Author Roland Barker

    (@xnau)

    Long as you got a set of settings that is working for you, I think you got it. I’m not surprised you needed to use the WP Content Path setting on wordpress.com, that will allow the global WP configuration to set the destination, rather than depend on the standard directory structure.

    Thanks for the tip on the $upload_location variable in the feedback message, I’ll check into that.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Unable to Upload on WordPress.com’ is closed to new replies.