WP ALL IMPORT error cont

Bug Summary

I am having the exact same issue outlined here: WP ALL IMPORT - When uploading csv files it shows "Failed to move uploaded file."

I have installed and tried to upload a small csv (1.36 KB) with no success. While researching I came across numerous people on Local experiencing similar.

Steps to reproduce

Literally install and try to upload a csv to an environment using Local…

Environment Info

Web server: nginx
PHP version: 8.1.29
Database: MySQL 8.0.16
WP version: 6.7.1

  • What Operating System are you using? Windows
  • What versions of site software (Nginx, Apache, PHP, MySQL) is used? See above specs
  • What version of Local is installed? Version 9.0.5+6706

Supporting info

Please provide your Local Log.
local-lightning.log (211.1 KB)

Include any screenshots or video recordings of the issue to help others reproduce.


Ap_TEST-3b.csv (1.4 KB)

Hi @DCK

Per the WP All Import team here, the first couple of things to check are permissions and disk space.

We have a Windows Troubleshooting guide below that goes over some common items worth checking. For example, make sure you’re running Local as an admin user, that you don’t have any security blockers, and that Local has access to update your Hosts file.

You’ll want to make sure any other files or folders you’re trying to access have the correct permissions and as mentioned your device has plenty of storage space.

Thanks Nick. I am following up with my IT dept as it does look like it may be a permissions issue as I can not change the permissions settings on the plugin folder. More to come, please leave this open…

1 Like

Sounds good @DCK! If they need any information about the URLs and Ports that Local makes use of as well, we have a section for Employer Security in the help doc I linked.

Common Security Blockers

1 Like

Hi again,

My IT department has tested and removed all possible security restrictions, firewalls, granted ‘everyone’ folder permission access etc etc

This is still an issue. I have again reached out to WP All Import and via a sandbox the plugin works fine but for whatever reason no progress locally…

Hi @DCK

Is the site you’re testing with a new, blank site in Local or is this a site you’ve imported or have been working on previously? I know it works in the Sandbox, but I’m wondering if it has many other plugins installed for example if something else could be a culprit here.

I’ll be curious if the WP All Import has any further suggestions here

They did reply but it wasn’t very useful and I did set up a separate ‘TESTer’ with only their plugin and a fresh install: same results…

Me at this point: ¯_(ツ)_/¯

Do you have any recommendations for an alternative plugin that does similar. The site I am building will eventually have possibly 10K products and I need to be able to map fields created with ACF to data provided via csv.

They believe the issue maybe with Local

I was able to replicate the issue in my Windows 11 setup but I’m still not sure why. I’ve reached out to our Local devs to take a look. In the video you attached it looks like it is successful? Was that your recording or someone else?

1 Like

It is WP All Import’s team video

Hi @DCK!

I looked this over with one of our Local Devs and he provided some steps that ended up resolving this for my Windows 11 setup. If you’d like to give it a shot here they are:

  1. Create a new directory under your Windows user dir named “local-temp”. (Open Windows Explorer, browse to This PC → [hard drive name] → Users → [your username], then choose “New → Folder” from the Explorer menu, name it “local-temp”.)
  2. Open that local-temp directory (it will be empty, but that’s fine) and copy the directory path by clicking to the right of the folder name in the location bar to select the full path, then using Ctrl+C.
  3. In Local, stop the site, click “site folder” in the site info view, browse to conf → php, open php.ini.hbs in a text editor.
  4. Search for “sys_temp_dir” (should be around line 5) and change the value from “C:\Windows\TEMP” to the value you copied in step 2. The full line should look something like sys_temp_dir="C:\Users\dev-pc-1\local-temp", but with your user name instead of mine.
  5. Save the php.ini.hbs file and start the site in Local.
  6. Next to PHP version in Local’s site info, click the “Details” link.
  7. In the PHP info page, search for sys_temp_dir and confirm it shows the new value. For me it correctly shows C:\Users\dev-pc-1\local-temp instead of the old C:\Windows\TEMP.
  8. Try to upload the CSV file in WP All Import again.
1 Like

Thanks for this. Will give it a go!

1 Like

Were you able to see if that fixes you up here @DCK?

1 Like

Hi Nick thanks for following up. I just got this handled. You should be able to close now

2 Likes

Sounds good @DCK! Thank you for following up.

2 Likes