Support » Alpha/Beta/RC » Automatic Upgrades of plugins fail

  • I have a fresh install of 2.7 RC 1 with a brand new database (no upgrades – clean test case). When I try to automatically upgrade a plugin (Askimet) I got the following error:

    Warning: ftp_rawlist() [function.ftp-rawlist]: open_basedir restriction in effect. File(/home/mygpsc5/tmp) is not within the allowed path(s): (/home/username:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/username/public_html/webdir/blogdir/wp-admin/includes/class-wp-filesystem-ftpext.php on line 203

    Warning: ftp_rawlist() [function.ftp-rawlist]: Unable to create temporary file. Check permissions in temporary files directory. in /home/username/public_html/webdir/blogdir/wp-admin/includes/class-wp-filesystem-ftpext.php on line 203

    Unable to locate WordPress Plugin directory.

    Plugin upgrade Failed

    I thought I found the fix here:

    http://wordpress.org/support/topic/202693?replies=1

    But that didn’t work. The error is identical after the change – it still wants to write to /home/mygpsc5/tmp for some reason (I have no idea who owns that dir – I assume it belongs to whatever user runs PHP).

    My theory is that ftp_rawlist is not using the get_temp_dir() function that checks for WP_TEMP_DIR to be set. Any idea how to fix this?

    Thanks!
    Philip

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m starting to think my host (InMotion Hosting) changed something, since this is no longer working right on 2.6.x, either. Still, I was hoping there would be a simple hack (like a function mod/override) for this…

    Same problem here, but replace “plugin” with “automatic upgrade from RC1 to RC2. I saw RC2 got released so I decided to test the auto-upgrade and it just hung at “unpacking blahblahblah”. The rc1 install was a new db, new clean install.

    Then I went over to my 2.6.5 blog to do an auto-upgrade of one of the plugins (wp-db-backup to 2.2.2 I believe) and it also hung at unpacking.

    The browse/install of plugins on rc1 worked fine yesterday, and the browse/install of new plugins on rc2 also works fine today. I don’t know if that piece of data helps or not.

    I’m unsure if there’s a directory or file permissions issue that might be related. My provider is 1&1.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automatic Upgrades of plugins fail’ is closed to new replies.