If you’re trying to install or update a plugin/theme or even updating WordPress core. You might encounter error message(s) like below. These errors could be caused by the temporary directory WordPress uses for any downloads.
Solution To Resolve This is Pretty Simple
- Log in to your hosting control panel or access through FTP to gain access to your website files and directories
- Once you logged in, navigate to the /wp-content folder of your WordPress installation. Create a new directory inside it called temp.
- Now, download /wp-config.php file from your server to your computer and open it in a text-editor. Add the following code at the bottom
/* Set WordPress temporary directory */
define('WP_TEMP_DIR', ABSPATH . 'wp-content/temp/') ;
Finally, Save the wp-config.php file. Upload/replace this file to your server.
This should fix the issue. Try updating WordPress or installing a plugin, if for some reason it is still failing, be sure to check file permissions on your wp-content
folder, and make sure it is set to 755
so that the server can write to it. I hope you find this useful!
12 Comments
You can post comments in this post.
Its Work Thanks.
Adnan 7 years ago
Thanks buddy
Obiechina Okoro 7 years ago
Thank you so much P Roy – this worked. Appreciate your help.
Vanita Kumar 7 years ago
It’s cool man, thank you for your post
Beo 7 years ago
Sorry, for my English but i’m french.
Thank you for your post but the problem still persists for adding media even if it makes the updates work
Brahmi 7 years ago
after the updates, I compared this error. problem solved. thenks
PiyasaAnketi 7 years ago
You are a star thank you
Siboniso Zungu 6 years ago
Thank you! Worked perfectly
Beat Kramer 6 years ago
Works great. Thanks!
Jos 6 years ago
thanks bro it’s works
wildan fauzy 5 years ago
Thank you , Its work 100% and tested . Good job bro
Fahim Mahmud Chisti 5 years ago
Wаy cool! Some extremely valid points! I appreciate yߋu writing thіs pօst
plus the rest of the website iѕ really good.
nestle 4 years ago
Leave A Reply