Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Can't upload wp images due problems with temporary map. WordPress

  • SOLVED

Hello,

I've a problem with uploading my images to wordpress.
When i'm trying to upload an image with the wordpress media uploader it says there is a temporary map missing.

(But the temporary map is already in the wp-content map)

Answers (3)

2017-11-12

Mohamed Ahmed answers:

Please follow these steps

1- Add this line to wp-config.php file in WordPress.
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
2- Create folder with "temp" name inside wp-content
3- Edit temp folder permission to be 777
4-If nothing solve your problem, You must contact you hosting support.

2017-11-13

Krishna Tiwari answers:

The first option is:

Log into Hosting Cpanel of your server or use your FTP.

Locate wp-config.php file in the root of your wordpress site.

Download the file and open it in any text editor.

Add following code after

define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
Save the file and replace it on your server.

Create a new folder temp in wp-content folder.

The second option is:

Log into Hosting Cpanel of your server or use your FTP.

Open public_html folder.

Now create a file with a name php.ini.

Place the following code inside the file:

upload_tmp_dir= /home/username/public_html/temp/
Save the file.

Create a temp folder at the same location, i.e. inside public_html.

2017-11-12

Rempty answers:

It is a problem wiht your hosting, to fix it

add this line to wp-config.php
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');

and create inside wp-content the folder temp


User179310 comments:

Is this the right way?


Rempty comments:

change TEMP to temp
and dont forget create the directory temp inside wp-content


User179310 comments:

Changed the code and added the temp inside the wp-content folder.

But it still doesn't work.. is there any other option?


Rempty comments:

check if the created folder have permissions 755
otherwise contact your hosting provider, because the real problem is a hosting missconfiguration