Support » Plugin: Import Members from CSV for Paid Memberships Pro » Background import process error

  • Hi again,
    Just wanted to alert you to an error – when I check the box “background import,” and do the import, an error is returned that the file is not found.

    Without the “background process” box checked, the import works flawlessly.

    I tested this on Chrome and Safari with the same results.

    Here is the log:

    Loading...
    JavaScript Loaded.
    File (testexport15.csv) not found!

    Since I will be importing hundreds of members, I wanted to see if you would be able to fix this before I try the large imports.

    I REALLY appreciate your help and support on this plugin and in the forum. You are a rare jewel. I don’t have much money but I am happy to donate some to your PayPal for your help.

    Thank you,
    Liat

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author Thomas S

    (@eighty20results)

    Hi Liat,

    I’m presuming you’re currently testing with version 2.16 of the plugin?

    I’m not seeing the same error on my end, so something to check is whether or not the JS is working properly…

    Are there any errors/warnings in the JavaScript console of your browser before/as you’re importing?

    Yes, I’m working with version 2.16

    I couldn’t get any errors to show up in the console. I do have script debugging turned on in wp_config.php.

    I do get a popup in the middle of the import that says, “Error with import. Close to refresh the admin page.”

    One thing I notice is that if I try it again with the same file, the import process renames the file somehow (“test export 11-1.csv not found!”).

    Thanks,
    Liat

    Plugin Author Thomas S

    (@eighty20results)

    The name change is a function of the file upload and shouldn’t be related to the error message you’re getting…

    I’m spending some time this evening looking at the plugin to see if I can figure out what’s happening on your end.

    Thank you Thomas!

    I double-checked that it was not a plugin conflict by deactivating all plugins except for the PMPro Memberships plugin and yours. The issue persisted.

    Thanks so much,
    Liat

    Plugin Author Thomas S

    (@eighty20results)

    Hi,

    I have a beta I’d like you to try, if you don’t mind. You will need to deactivate and delete the existing plugin iteration before trying to install the linked .zip file of the Beta version.

    Keep in mind that this _is_ a beta and shouldn’t be used for importing production data at this time.

    Hi Thomas!

    Ok I deactivated and deleted version 2.16 via the dashboard.
    I installed beta version 2.17 and tested —

    I got the error dialog popup: “Error with import. Close to refresh the admin page.”

    After closing the dialog box, the log updates to show this:

    Loading...
    JavaScript Loaded.
    File (testexport15-4.csv) not found in /home/content/a2pewpnaspod05_data06/08/41540008/html/wp-content/uploads/imports/!
    Is the directory writable by the web server software?
    Plugin Author Thomas S

    (@eighty20results)

    Hi Liat,

    I have a new beta version I’m hoping to make available later today, or first thing tomorrow. I found a bug and believe that when I squashed it, I also fixed the issue you’re reporting with background imports.

    Thank you for your patience (and for the donation!)

    Plugin Author Thomas S

    (@eighty20results)

    Hi Thomas,

    Thank you! I installed the Version 2.17-beta-2 and tested the upload.

    I still got an error – it says

    Loading...
    JavaScript Loaded.
    File (testexport15.csv) not found in /home/content/a2pewpnaspod05_data06/08/41540008/html/wp-content/uploads/e20r_imports/
    Is the directory writable by the web server software?

    I hope this helps 🙂 Thank you for being so helpful.
    Liat

    Plugin Author Thomas S

    (@eighty20results)

    Hi,

    Can you verify whether the file testexport15.csv is present in the directory indicated: /home/content/a2pewpnaspod05_data06/08/41540008/html/wp-content/uploads/e20r_imports/ ?

    I found the file in this directory:

    /home/j49f41540008028/html/wp-content/uploads/e20r_imports

    Liat

    Plugin Author Thomas S

    (@eighty20results)

    So… Those are obviously not the same directory (which explains the error message).

    You may want to reach out to your hosting provider for an explanation as to why the directory returned by the wp_upload_dir() function (specifically the based key in the array returned by wp_upload_dir()) and the file system do not seem to map correctly…

    Hi Thomas,

    Thanks! I spoke to my hosting provider about what was going on.

    The result: I am on a Managed WordPress installation and they use a custom file structure for extra security.

    I think the answer is to use FTP to put the file in the correct place, but I don’t have permission to write to the /home/ folder. I’m a little stuck because I don’t know how to fix it or who can fix it – you or them…

    Would it be possible for you to put a field in the upload interface for the user to indicate where the file is if the user is on a custom file structure? That might make the upload work.

    If you have any suggestions, I’m all ears. I’m only trying to see how to resolve this and then I can onboard all my users. Thank you!

    Plugin Author Thomas S

    (@eighty20results)

    Huh.. Seems like they’re _way_ overthinking this and causing themselves unnecessary support tickets, but that’s their prerogative I guess. 🙂

    I don’t have an easy fix for you in this case, sorry. My concern is that allowing ‘random’ file paths would be a major security issue IMHO. Off hand, I can’t come up with a non-complex way (short of all sorts of whitelist/blacklist logic being added) to prevent someone from specifying the wp-config.php file path and thus potentially get access to salts, DB passwords, etc…

    Thank you Thomas! Ok I will talk to them again about this.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Background import process error’ is closed to new replies.