• Resolved Misko Stanisic

    (@miskostanisic)


    Hi,
    trying to update WP to 2.8.6.

    I did the manual update, everything went smoothly.

    But when I tried to activate plugins I wanted to upgrade one, and off course I wanted to upgrade automatically. But then I got this error:
    ———————
    Downloading update from http://downloads.wordpress.org/plugin/addthis.1.5.4.zip.
    Warning: touch(): SAFE MODE Restriction in effect. The script whose uid/gid is 194400/194400 is not allowed to access /tmp owned by uid/gid 0/0 in /hsphere/local/home/blahblah/blahblah/wp-admin/includes/file.php on line 175

    Download failed. Could not create Temporary file
    ———————

    Well I heard about this “safe mode” to be something that is up to server provider. But I have several WP at the same provider, and all of them works with WP 2.8.6 and auto-upgrades.

    I checked PHP Core values about “safe mode”, and found this:

    Local Value
    safe_mode Off
    safe_mode_exec_dir no value
    safe_mode_gid On
    safe_mode_include_dir no value

    Master Value
    safe_mode On
    safe_mode_exec_dir no value
    safe_mode_gid On
    safe_mode_include_dir no value

    Any ideas? Can I do something that this work? Some “magic” .htaccess file? Should I change chmod to some folder?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Misko Stanisic

    (@miskostanisic)

    Just checked my other WP where auto-upgrade works fine, and it has exactly the same PHP Core values that I wrote in previous post. So THAT is not the problem, I guess..

    And this new WP is on PHP Version 5.2.3

    Ehm… what is the problem?

    Thread Starter Misko Stanisic

    (@miskostanisic)

    I GOT IT!

    I compared my old wp-config.php and a new one. I found this line in old file:

    define(‘WP_TEMP_DIR’, ABSPATH.’tmp/’);

    There were no such line in the new one. I put this line in new config file and wooops it works now!

    My question (to WP people) is – should it be like this? This line of code was clearly under the comment “/* That’s all, stop editing!”
    so it shouldn’t be copied to new config file.

    But it was needed..

    Hope this helps somebody..

    This is exactly what I have been searching for. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘safe mode error – can’t upgrade automatically’ is closed to new replies.