{"id":68709,"date":"2016-04-15T04:17:21","date_gmt":"2016-04-15T08:17:21","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=68709"},"modified":"2016-06-30T05:39:33","modified_gmt":"2016-06-30T09:39:33","slug":"wordpress-how-to-manage-temporary-folder-missing-error-while-uploading-media","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-manage-temporary-folder-missing-error-while-uploading-media.html","title":{"rendered":"WordPress. How to get rid of &#8216;Temporary Folder Missing&#8217; error while uploading media"},"content":{"rendered":"<p>This tutorial will show you how to get rid of &#8216;Temporary Folder Missing&#8217; error while uploading media files to WordPress: <\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=_eDteqFJbiY?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to get rid of &#8216;Temporary Folder Missing&#8217; error while uploading media<\/a>\r\n<p>\r\n<b>WordPress Temporary Folder Missing Error<\/b> is thrown by php, when its unable to locate a temporary folder. This might be a server-side problem as they may have forgotten to set up temp dir for you, but can be treated by changing PHP settings using php.ini file:<\/p>\r\n<a href=\"\/help\/wp-content\/uploads\/2016\/04\/WordPress_How_to_manage_Temporary_Folder_Missing_Error_while_uploading_media_img1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/04\/WordPress_How_to_manage_Temporary_Folder_Missing_Error_while_uploading_media_img1-300x126.png\" alt=\"WordPress_How_to_manage_Temporary_Folder_Missing_Error_while_uploading_media_img1\" width=\"300\" height=\"126\" class=\"alignnone size-medium wp-image-68712\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/WordPress_How_to_manage_Temporary_Folder_Missing_Error_while_uploading_media_img1-300x126.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/WordPress_How_to_manage_Temporary_Folder_Missing_Error_while_uploading_media_img1-150x63.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/WordPress_How_to_manage_Temporary_Folder_Missing_Error_while_uploading_media_img1-1024x429.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/WordPress_How_to_manage_Temporary_Folder_Missing_Error_while_uploading_media_img1.png 1182w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>The first option is:<\/p>\r\n\r\n<ol>\r\n\t<li><p>Log into <i>Hosting Cpanel<\/i> of your server or use your <i>FTP<\/i>.<\/p><\/li>\r\n\t<li><p>Locate <b>wp-config.php<\/b> file in the root of your wordpress site.<\/p><\/li>\r\n\t<li><p>Download the file and open it in any text editor.<\/p><\/li>\r\n\t<li><p>Add following code after \/* That&#8217;s all, stop editing! Happy blogging. *\/:<\/p>\r\n\t\t<pre class=\"brush:php\">define('WP_TEMP_DIR', dirname(__FILE__) . '\/wp-content\/temp\/');<\/pre>\r\n\t<\/li>\r\n\t<li><p>Save the file and replace it on your server.<\/p><\/li>\r\n\t<li><p>Create a new folder <strong>temp<\/strong> in <i>wp-content<\/i> folder.<\/p><\/li>\r\n<\/ol>\r\n<p>The second option is:<\/p>\r\n<ol>\r\n\t<li><p>Log into <i>Hosting Cpanel<\/i> of your server or use your <i>FTP<\/i>.<\/p><\/li>\r\n\t<li><p>Open <i>public_html<\/i> folder.<\/p><\/li>\r\n\t<li><p>Now create a file with a name <b>php.ini<\/b>.<\/p><\/li>\r\n\t<li><p>Place the following code inside the file:<\/p>\r\n\t\t<pre class=\"brush:php\"> upload_tmp_dir= \/home\/username\/public_html\/temp\/<\/pre>\r\n\t<\/li>\r\n\t<li><p>Save the file.<\/p><\/li>\r\n\t<li><p>Create a temp folder at the same location, i.e. inside <i>public_html<\/i>.<\/p>\r\n\t<\/li>\r\n<\/ol>\r\n<p>If the issue is not resolved, we strongly recommend you to contact your hosting provider as this is a server configuration problem.<\/p>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=_eDteqFJbiY?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to get rid of &#8216;Temporary Folder Missing&#8217; error while uploading media<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to get rid of &#8216;Temporary Folder Missing&#8217; error while uploading media files to WordPress.<\/p>\n","protected":false},"author":89,"featured_media":68924,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[691,2241,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/68709"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=68709"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/68709\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/68924"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=68709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=68709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=68709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}