{"id":697,"date":"2008-12-13T07:01:20","date_gmt":"2008-12-13T06:01:20","guid":{"rendered":"http:\/\/blog.ginchen.de\/?p=697"},"modified":"2012-01-29T18:41:09","modified_gmt":"2012-01-29T17:41:09","slug":"automatische-updates-in-wordpress","status":"publish","type":"post","link":"http:\/\/blog.ginchen.de\/en\/2008\/12\/13\/automatische-updates-in-wordpress\/","title":{"rendered":"Automatic updates in WordPress"},"content":{"rendered":"<p>With the release of WordPress&nbsp;2.7 on 11th&nbsp;December, I was facing a problem: Manual plugin updates don&#8217;t seem to be provided for anymore. To date, I had always downloaded my plugins using the download link in the backend and then moved them to my server via FTP, because the automatic update had never worked for me &#8211; instead I always got the well-known error message &#8220;open basedir restriction in effect&#8221;. I always thought that was down to the configuration of my server and therefore outside my sphere of influence, and so I just put up with it.<\/p>\r\n\r\n<p>Now however, WordPress notifies you in the backend when new plugin updates are available, but there is no longer a direct download link to the .zip file. That would have meant that I had to search for every plugin on wordpress.org myself or visit the author&#8217;s website every time to download the current version as .zip file there. Extremely annoying! This gave me cause to go searching for a solution once more, and lo and behold, I found one on <a rel=\"external\" href=\"http:\/\/www.lastmanstanding.de\/2008-12-19\/wordpress-27-loesung-fuer-automatisches-plugincore-update-problem\">LastManStanding.de<\/a>.<\/p>\r\n\r\n<!--more-->\r\n\r\n<p>Open your <code>wp-config.php<\/code>, and <em>below (!)<\/em> the line<\/p>\r\n\r\n<pre lang=\"php\">\r\ndefine('ABSPATH', dirname(__FILE__).'\/');\r\n<\/pre>\r\n\r\n<p>add the following:<\/p>\r\n\r\n<pre lang=\"php\">\r\nputenv(\"TMPDIR=\" . ABSPATH . \"wp-content\/upgrade\");\r\ndefine('WP_TEMP_DIR', ABSPATH . \"wp-content\/upgrade\");\r\n<\/pre>\r\n\r\n<p>It doesn&#8217;t matter what you name the subfolder of <code>wp-content<\/code>. I preferred the name &#8220;upgrade&#8221;, because in my case, WordPress itself had already created it with that name a while ago. But you could also name it &#8220;tmp&#8221;, as suggested on LastManStanding.de, or yet different. Note: The directory must of course exist, i.&nbsp;e. you have to create it if necessary, and WordPress must have writing permissions in that folder!<\/p>\r\n\r\n<p>Now everything works as intended: Plugins as well as WordPress itself can now be updated with one simple mouse click! Incredibly comfortable!<\/p><\/del>","protected":false},"excerpt":{"rendered":"With the release of WordPress&nbsp;2.7 on 11th&nbsp;December, I was facing a problem: Manual plugin updates don&#8217;t seem to be provided for anymore. To date, I had always downloaded my plugins using the download link in the backend and then moved them to my server via FTP, because the automatic update had never worked for me [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[147,146,144,145,149,606,148],"_links":{"self":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/697"}],"collection":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/comments?post=697"}],"version-history":[{"count":5,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/697\/revisions"}],"predecessor-version":[{"id":814,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/697\/revisions\/814"}],"wp:attachment":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/media?parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/categories?post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/tags?post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}