Missing a temporary folder error while uploading a media
-
I am getting this error after my friend changed the site server “Missing a temporary folder.”
Solutions I tried:
The first option is:
1.Log into Hosting Cpanel of your server or use your FTP.
2.Locate wp-config.php file in the root of your wordpress site.
Add following code after /* That’s all, stop editing! Happy blogging. */:
define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);
3.Save the fileCreate a new folder temp in wp-content folder.
The second option is:
1.Log into Hosting Cpanel of your server or use your FTP.
2.Open public_html folder.
3.Now create a file with a name php.ini.
4.Place the following code inside the file:
upload_tmp_dir= /home/username/public_html/temp/
5.Save the file.6.Create a temp folder at the same location, i.e. inside public_html.
Note: I read many blog articles, they said, ask your hosting provider. My friend gives me free hosting on his VPS server, and he changed the server. And he does not know, how to solve this problem.
The topic ‘Missing a temporary folder error while uploading a media’ is closed to new replies.