Missing a temporary folder


while uploading images, i am getting following error

“Missing a temporary folder”,

i have changed in wp-config.php and created temp folder in wp-content but still problem is same.

could help me out from this error.

Regards, Raja


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @rajviswas,

Can you confirm you’ve followed these steps :

Copy paste the following code to the file before the line that says `That’s all, stop editing! Happy blogging’.

define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/tmp/');

Go to /wp-content/ folder.

cd /path/to/website/wp-content

Create a new folder named tmp:

cd /path/to/website/wp-content && touch tmp

If the solution mentioned above does not work for you, then you should check the directory permissions of your wp-content folder. That directory needs to have 755 permissions.

To change the permissions, you can run the following

chmod 755 /path/to/website/wp-content

Please remember to change ‘/path/to/website’ with the actual path on the server.

Regards, KDSys


I am facing the same error. I’ve done all the instructions above but still got an error

did find the way to fix it please @rajviswas @KFSys Kindly advice