If you are using WordPress regularly you may have seen ‘Missing a temporary folder’. In this article, we will provide your information about the cause of error and its solution.
What causes the ‘missing a temporary folder’ error in WordPress?
This error occurs due to incorrect PHP setting on your WordPress hosting environment. There is a temporary folder where WordPress stores data before saving it to desired location. WordPress needs that folder when you upload image, install or update theme or plugins, or update WordPress core. If you do not define the folder location in your server’s PHP configuration then it will show you ‘Missing a temporary folder’ error. Picture demo is shown below:
Fix Missing Temporary Folder Error in WordPress
In order to solve this problem, you need to follow the steps below:
- Connect your website using FTP client or file manager in cPanel dashboard of your hosting account. Example shown below:
- Now edit wp-config.php file and paste the code
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
- Save changes and upload wp-config.php file.
- Now, goto /wp-content/ folder and create a new folder with name temp. Demo shown in the picture below:
Note: This error is caused due to the error in configuration in hosting environment. If you can get out of this problem you may check the directory permissions for your wp-content folder or ask your hosting provider to fix this.