{"id":2943,"date":"2013-11-05T19:30:38","date_gmt":"2013-11-06T00:30:38","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/11\/05\/fix-download-failed-errors-on-update\/"},"modified":"2021-09-21T09:24:14","modified_gmt":"2021-09-21T13:24:14","slug":"fix-download-failed-errors-on-update","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/","title":{"rendered":"Fix WordPress Download Failed Errors on Update"},"content":{"rendered":"<p>If you run into <strong>problems trying to update WordPress<\/strong>, it could be caused by the temporary directory WordPress uses for downloads. You can easily fix this by <a href=\"#wp-temp-dir\">defining a WP_TEMP_DIR in your wp-config.php file<\/a> below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress update failing<\/h2>\n\n\n\n<p>If you\u2019re trying to <a href=\"\/support\/edu\/wordpress\/update-wordpress-from-admin-dashboard\/\">upgrade WordPress<\/a> itself, you might encounter this error when trying to update:<\/p>\n\n\n\n<div class=\"alert alert-danger\"><em>Download failed.: Destination directory for file streaming does not exist or is not writable.<\/em><br><em>Installation Failed<\/em><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/support\/images\/stories\/wordpress\/wp-temp-dir\/wordpress-update-core-failed.png\" rel=\"lightbox-0\"><img decoding=\"async\" src=\"\/support\/images\/stories\/wordpress\/wp-temp-dir\/wordpress-update-core-failed.png\" alt=\"WordPress core update failed\"><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress plugin update failing<\/h2>\n\n\n\n<p>If you were trying to <a href=\"\/support\/edu\/wordpress\/plugins\/update-wordpress-plugin\/\" target=\"_blank\" rel=\"noopener noreferrer\">update a WordPress plugin<\/a>, you might have encountered this error instead when updating:<\/p>\n\n\n\n<div class=\"alert alert-danger\">\n<p><em>An error occurred while updating (Plugin Name). Download failed. Destination directory for file streaming does not exist or is not writable.<\/em><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/support\/images\/stories\/wordpress\/wp-temp-dir\/wordpress-update-plugin-failed.png\" rel=\"lightbox-0\"><img decoding=\"async\" src=\"\/support\/images\/stories\/wordpress\/wp-temp-dir\/wordpress-update-plugin-failed.png\" alt=\"WordPress plugin update failed\"><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wp-temp-dir\">Define a WP_TEMP_DIR in your wp-config.php file<\/h2>\n\n\n\n<p>If you\u2019ve encountered issues trying to update WordPress, you can simply follow the steps below to resolve them.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Open you <strong>wp-config.php<\/strong> file with the <a href=\"\/support\/edu\/cpanel\/file-manager-code-editor\/\" target=\"_blank\" rel=\"noopener noreferrer\">cPanel File Manager Code Editor<\/a><\/li><li>You should see this code towards the top of the file:\n<pre>* @package WordPress  *\/  \n\/\/ ** MySQL settings - You can get this info from your web host ** \/\/ \n\/** The name of the database for WordPress *\/ \n<span style=\"color: red;\">define('DB_NAME', 'anotherd_wrd1');<\/span><\/pre>\n<p style=\"margin-top: 10px;\">Place this definition of <span style=\"color: red;\">define(\u2018WP_TEMP_DIR\u2019, ABSPATH . \u2018wp-content\/\u2019);<\/span> in-between the lines mentioned above, so it ends up looking like this when you\u2019ve completed it:<\/p>\n<pre>* @package WordPress  *\/ \n<span style=\"color: red;\">define('WP_TEMP_DIR', ABSPATH . 'wp-content\/');<\/span> \n\/\/ ** MySQL settings - You can get this info from your web host ** \/\/ \n\/** The name of the database for WordPress *\/ \ndefine('DB_NAME', 'anotherd_wrd1');<\/pre>\n<p style=\"margin-top: 10px;\">Now <strong>Save<\/strong> your <strong>wp-config.php<\/strong> file.<\/p>\n<\/li><li>Try to update WordPress again, if for some reason it is still failing, be sure to <a href=\"\/support\/edu\/cpanel\/change-file-permissions\/\">check file permissions<\/a> on your <strong>wp-content<\/strong> folder, and ensure it\u2019s set to <strong>755<\/strong> so that the server can write to it.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>If you run into problems trying to update WordPress, it could be caused by the temporary directory WordPress uses for downloads. You can easily fix this by defining a WP_TEMP_DIR in your wp-config.php file below. WordPress update failing If you&#8217;re trying to upgrade WordPress itself, you might encounter this error when trying to update: Download<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4335,4325,56],"tags":[],"class_list":["post-2943","post","type-post","status-publish","format-standard","hentry","category-error-numbers","category-wordpress-hosting","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fix WordPress Download Failed Errors on Update<\/title>\n<meta name=\"description\" content=\"If you run into problems trying to update WordPress, it could be caused by the temporary directory WordPress attempts to use. You can easily fix this by defining a WP_TEMP_DIR in your wp-config.php file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix WordPress Download Failed Errors on Update\" \/>\n<meta property=\"og:description\" content=\"If you run into problems trying to update WordPress, it could be caused by the temporary directory WordPress attempts to use. You can easily fix this by defining a WP_TEMP_DIR in your wp-config.php file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-11-06T00:30:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-21T13:24:14+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Fix WordPress Download Failed Errors on Update\",\"datePublished\":\"2013-11-06T00:30:38+00:00\",\"dateModified\":\"2021-09-21T13:24:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/\"},\"wordCount\":246,\"commentCount\":64,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website Error Numbers\",\"WordPress Hosting\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/\",\"name\":\"Fix WordPress Download Failed Errors on Update\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-11-06T00:30:38+00:00\",\"dateModified\":\"2021-09-21T13:24:14+00:00\",\"description\":\"If you run into problems trying to update WordPress, it could be caused by the temporary directory WordPress attempts to use. You can easily fix this by defining a WP_TEMP_DIR in your wp-config.php file.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fix WordPress Download Failed Errors on Update\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix WordPress Download Failed Errors on Update","description":"If you run into problems trying to update WordPress, it could be caused by the temporary directory WordPress attempts to use. You can easily fix this by defining a WP_TEMP_DIR in your wp-config.php file.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/","og_locale":"en_US","og_type":"article","og_title":"Fix WordPress Download Failed Errors on Update","og_description":"If you run into problems trying to update WordPress, it could be caused by the temporary directory WordPress attempts to use. You can easily fix this by defining a WP_TEMP_DIR in your wp-config.php file.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-11-06T00:30:38+00:00","article_modified_time":"2021-09-21T13:24:14+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Fix WordPress Download Failed Errors on Update","datePublished":"2013-11-06T00:30:38+00:00","dateModified":"2021-09-21T13:24:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/"},"wordCount":246,"commentCount":64,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website Error Numbers","WordPress Hosting","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/","name":"Fix WordPress Download Failed Errors on Update","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-11-06T00:30:38+00:00","dateModified":"2021-09-21T13:24:14+00:00","description":"If you run into problems trying to update WordPress, it could be caused by the temporary directory WordPress attempts to use. You can easily fix this by defining a WP_TEMP_DIR in your wp-config.php file.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/fix-download-failed-errors-on-update\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Fix WordPress Download Failed Errors on Update"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=2943"}],"version-history":[{"count":7,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2943\/revisions"}],"predecessor-version":[{"id":88860,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2943\/revisions\/88860"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=2943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=2943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=2943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}