• Whenever I try to automatically upgrade my site I get the message “Cannot create a temporary file”. This site is hosted by Hostica. I have two other sites that use WP and are hosted by InMotion and have no problems automatically upgrading.

    Also, whenever I try to upload an image it gives me an http error and won’t upload (while it works fine on my other two sites by a different host).

    I’m sure it has something to do with my host and the way it is set up, but cannot figure out what it is. I’m still learning, so please keep answers as simple as possible! Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Try creating an an .htaccess file in your wp-admin directory and add this to it:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
    Moderator t-p

    (@t-p)

    Hi esmi,

    I am having the problem updating.

    I tried what you suggested abve, no luck. Keepgetting the error:

    Error: There was an error connecting to the server, Please verify the settings are correct.

    I checked my settings. the path is correct, and I don’t see anything obvious.

    help please. thanks. tara

    Can you try a manual upgrade?

    Thread Starter melissaz28

    (@melissaz28)

    I can do the manual, it’s just a pain in the butt. LOL Looks like I will be doing that though.

    Moderator t-p

    (@t-p)

    I did the manual without any problem. As melissaz said, it’s just too much hassle. Thanks esmi.tara

    Talk to your host and see what memorylimit they have on the server. If it’s to low it messes with a lot of things. Also check if they run a Chrooted environment which could cause problems with permissions.

    If memory is to low or they run a chrooted environment…change host.

    Moderator t-p

    (@t-p)

    Talk to your host and see what memorylimit they have on the server. If it’s to low it messes with a lot of things. Also check if they run a Chrooted environment which could cause problems with permissions.

    If memory is to low or they run a chrooted environment…change host.

    Good point! I don,t know about “chrooted environment”, but memorylimit is I believe 8Mb

    Thanks your input. tara

    I think you need at least 32MB, so that might be your problem. Ask the host and see if they can increase it for you.

    Thread Starter melissaz28

    (@melissaz28)

    I just talked to my host and the problem is fixed! Woo hoo! I needed to change my PHP module to PHP 5 in cgi mode (whatever the heck that means). But, I was able to upgrade and upload images with no problem.

    Thanks for your help and suggestions everyone!

    Moderator t-p

    (@t-p)

    hi Mortfiles,

    I think you need at least 32MB, so that might be your problem. Ask the host and see if they can increase it for you

    .

    I tried the following in my .htaccess, bot no difference.

    php_value memory_limit 32M

    certainly I will check with my host.

    Thanks for your help.

    It’s possible that your host has disabled the possibility to overrule the global php.ini file, so then you can not do anything on your own.

    Moderator t-p

    (@t-p)

    Thanks Mortfiles,

    It’s possible that your host has disabled the possibility to overrule the global php.ini file, so then you can not do anything on your own.

    No, they have not. I tried it for other things and it works. That tells me my host has not disable this possibility.

    Moderator t-p

    (@t-p)

    Hi everybody,

    finallly i was able to connec, by using the following info:

    Hostname : ftp://ftp.mysite.com
    Username : my ftp username
    Password : my ftp password
    Connection Type Connection Type: FTP

    But then I got this error:

    Downloading update from https://www.ads-software.com/wordpress-2.9.zip.

    Unpacking the update.

    Warning: ftp_mkdir(): “/home/gurbani” is current directory. in /home/virtual/XXXX/blog/wp-admin/includes/class-wp-filesystem-ftpext.php on line 240

    Could not create directory: /var/www/html/blog/wp-content/upgrade/wordpress-2.9/wordpress/wp-includes/js/tinymce/plugins/directionality

    Installation Failed

    Any guidance will greatly appreciated. Thanks

    Does your host use CPANEL? If so, log in to cpanel usually https://www.mysite.com/cpanel

    Enter username and password for your site

    Scroll down to software / services and look for PHP Config

    Click it

    Select PHP5 (Single php.ini) option

    Click save changes on the bottom.

    Now, manually FTP (I like Filezilla) into your site and look for php.ini (usually in public_html folder). Download the file to your computer so you can edit it. Using a text editor (I prefer Notepad++) locate the following by using find:

    memory_limit = 48M ; Maximum amount of memory a script may consume (10MB)

    Change the value to at least 32M and your scripts should start executing more properly.

    Finally, make sure wp-content/upgrade and all sub folders and files have at least 755 permissions using CHMOD (If using filezilla, right click on folder, choose permissions, type in 755 in numeric value, select recurse into subdirectories, click OK).

    Moderator t-p

    (@t-p)

    resolved,

    for anybody who is having the same problem, all had to was:
    chmod all three folders (wp-admin. wp-content, and wp-includes to 777 including all folders and files within them).

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Cannot automatically upgrade’ is closed to new replies.