[wp-trac] [WordPress Trac] #11135: Problem with automatic upgrade - works only once

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 13 13:53:37 UTC 2009


#11135: Problem with automatic upgrade - works only once
-----------------------------+----------------------------------------------
 Reporter:  pavelevap        |       Owner:       
     Type:  defect (bug)     |      Status:  new  
 Priority:  normal           |   Milestone:  2.9  
Component:  Upgrade/Install  |     Version:  2.8.5
 Severity:  normal           |    Keywords:       
-----------------------------+----------------------------------------------
 I encounter following problem on some websites:
 There were problems with upgrade, so I asked for safe_mode=off.

 There were still problems:

 {{{
 Warning: file_exists() [function.file-exists]: open_basedir restriction in
 effect. File(/tmp//wordpress-2.8.6.zip) is not within the allowed path(s):
 (/home/www/alan-grey-page.cz:/usr/local/lib/php) in /home/www/alan-grey-
 page.cz/subdomains/www/wp-includes/functions.php on line 2118

 Warning: touch() [function.touch]: open_basedir restriction in effect.
 File(/tmp/wordpress-2.8.6.zip) is not within the allowed path(s):
 (/home/www/alan-grey-page.cz:/usr/local/lib/php) in /home/www/alan-grey-
 page.cz/subdomains/www/wp-admin/includes/file.php on line 175
 }}}

 So, I added following to wp-config.php:

 {{{
 define('FS_METHOD', 'direct');
 define('WP_TEMP_DIR', ini_get('upload_tmp_dir'));
 }}}

 And there was following error:

 {{{
 Could not create directory: /home/www/alan-grey-page.cz/subdomains/www/wp-
 content/upgrade
 }}}

 In the end, I added only following line to wp-config.php (I had to insert
 FTP password manually during upgrade):

 {{{
 define('WP_TEMP_DIR', ini_get('upload_tmp_dir'));
 }}}

 And everything worked! Great. But.. When I tried to reinstall it once
 again, there was following error:

 {{{
 Could not copy file: /subdomains/www/wp-
 content/upgrade/wordpress-2.8.6/wordpress/wp-comments-post.php
 }}}

 And there is a folder "upgrade" (CHMOD 0755) in wp-content with all
 unzipped WordPress files. So, I deleted the whole upgrade folder and
 automatic upgrade works again. But only once, then I had to delete upgrade
 folder with its content. Strange. Any help? Thank you...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11135>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list