WordPress FTP update trouble29 December 2009, 05:12:17 |
Sometimes when you update wordpress or plugins, especially if you use safe mode, you can get errors like this:
That’s because wordpress uses strange things for temporary directory.
To cure it with non intrusive methods, just add
to the bottom of your wp-config-file.
That’s it.
Took me about two hours to figure out -_-
Enabling Maintenance mode.
Downloading update from http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip.
wp-content/uploads/all-in-one-seo-pack.tmp
Warning: touch() [function.touch]: Unable to create file wp-content/uploads/all-in-one-seo-pack.tmp because No such file or directory in ***/wp-admin/includes/file.php on line 185
Download failed. Could not create Temporary file
That’s because wordpress uses strange things for temporary directory.
To cure it with non intrusive methods, just add
define(‘WP_TEMP_DIR’,ABSPATH.’wp-content/uploads/’);
to the bottom of your wp-config-file.
That’s it.
Took me about two hours to figure out -_-
| Tags: wordpress | Comments [ 11 ] |

Subscribe? Sure? What for?
2 June at 4:06 am
Thanks!! :D
16 June at 5:15 pm
Thanks,
I’m using wp3 in multisite mode
I created a temp dir with 777 permissions
define(‘WP_TEMP_DIR’,ABSPATH.’wp-content/temp/’);
and it solved the problem.
17 August at 5:49 pm
Thank you very much!!!!
20 August at 1:09 pm
Thanks a million, this solved a plugin update issue for me, I spent hours messing around with permissions before I found your fix.
So if anyone gets a “cannot find wp-content” error when trying to auto-update plugins use this fix
25 August at 7:59 pm
AAH THANKS!! seriously, that it awesome
25 August at 8:01 pm
Warning: Division by zero in D:\inetpub\mysite\blog\wp-config.php on line 92
not working
26 August at 10:05 am
That’s some kind of another trouble…
Please put here your 92 line, I’ll look through this.
31 August at 3:33 am
I am having the same error as Ryan’s , and the line is actually the code itself !!
31 August at 1:42 pm
Mmmm. Did you really properly copy-paste the code?
1 September at 7:53 pm
yes..
1 September at 8:02 pm
Well i’ve modified the path where the temp file should be..