{"id":115,"date":"2009-09-26T21:15:13","date_gmt":"2009-09-26T20:15:13","guid":{"rendered":"http:\/\/daniel.hepper.net\/blog\/?p=115"},"modified":"2011-10-25T20:47:17","modified_gmt":"2011-10-25T19:47:17","slug":"automatic-plugin-update-problem-in-wordpress-2-8-x","status":"publish","type":"post","link":"https:\/\/daniel.hepper.net\/blog\/2009\/09\/automatic-plugin-update-problem-in-wordpress-2-8-x\/","title":{"rendered":"Automatic plugin update problem in WordPress 2.8.x"},"content":{"rendered":"<p>After upgrading WordPress to the current version, I could no longer automatically update plugins. This is the error message I got:<\/p>\n<blockquote><p>Downloading update from <span>http:\/\/downloads.wordpress.org\/plugin\/xxx.zip<\/span>.<\/p>\n<p>Unpacking the update.<br \/>\n<strong>Warning<\/strong>:  unlink(\/&#8230;\/wp-content\/upgrade\/xxx.zip) [function.unlink]: No such file or directory in <strong>\/&#8230;\/wp-admin\/includes\/class-wp-upgrader.php<\/strong> on line <strong>146<\/strong><\/p>\n<p>Incompatible archive PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file &#8216;\/&#8230;\/wp-content\/upgrade\/wp-syntax.0.9.8.zip&#8217;<\/p><\/blockquote>\n<p>After digging through the forums I found a <a href=\"http:\/\/wordpress.org\/support\/topic\/278788?replies=20#post-1133939\">solution to the plugin autoupdate problem in the WordPress Support forum<\/a>.<\/p>\n<p>Open the file wp-config.php in the root directory of your WordPress installation and remove the definition of the WP_TEMP_DIR variable, i.e. a line that looks like this<\/p>\n<pre>define('WP_TEMP_DIR', ABSPATH . \"wp-content\/upgrade\");<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After upgrading WordPress to the current version, I could no longer automatically update plugins. This is the error message I got: Downloading update from http:\/\/downloads.wordpress.org\/plugin\/xxx.zip. Unpacking the update. Warning: unlink(\/&#8230;\/wp-content\/upgrade\/xxx.zip) [function.unlink]: No such file or directory in \/&#8230;\/wp-admin\/includes\/class-wp-upgrader.php on line &hellip; <a href=\"https:\/\/daniel.hepper.net\/blog\/2009\/09\/automatic-plugin-update-problem-in-wordpress-2-8-x\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11],"tags":[15],"class_list":["post-115","post","type-post","status-publish","format-standard","hentry","category-howto","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/posts\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":5,"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/posts\/115\/revisions\/360"}],"wp:attachment":[{"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.hepper.net\/blog\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}