Local Community

Missing A Temporary Folder error

When i try to import images into media library i get this error. I never had this error before, and I tried to add :

define(‘WP_TEMP_DIR’, dirname(FILE) . ‘/wp-content/temp/’);

and created a folder named ‘temp’ in wp-content

I use Local version 6.4.2+6012

I tried several php version, web server is ‘Apache’ MySQL is 5.7.28

OS : WINDOWS 10

Local log :
local-logs.zip (17.5 KB)

Hello there, @Jiwit - welcome to the Local community! :wave:

This may be related to a bug that was recently uncovered:

Here’s what @austinwendt shared about it:

“I was able to do some troubleshooting and found that this is Windows specific, and like mentioned, only happens when using Apache. I have created a bug for our engineering team to take a look at, and I will keep this thread updated when we have the fix. Thanks for bearing with us!” - Austin

If it’s an option for you, you may want to try changing the web server from Apache to nginx, but before you do that I would absolutely recommend making a backup of your website!

You can create an export of your site by following these steps: How to export a WordPress site from Local - Local

Let me know if this helps,

Sam

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.