“Download failed.: Could not create Temporary file”

, ,

I’ve been getting this error in WordPress, so I wasn’t using the auto-update functionality, which is a real time-saver. My problem was that WordPress was trying to write to /tmp/ which is a no-no as my host (Segpub.net) uses Safe Mode. You can solve this issue by adding a couple of directives to your wp-config.php file, namely WP_TEMP_DIR. Adding these lines to wp-config.php fixed the problem for me:

define('WP_TEMP_DIR', ini_get('upload_tmp_dir'));
putenv('TMPDIR=' . ini_get('upload_tmp_dir'));

Thanks to the WordPress forums for my answer.

Hello There

My name is Phil Nelson and I make beautiful objects for a troubled world. I'm a designer / developer / writer / director / editor / narrator at Occipital.

Stuff I Make

More To See and Read

Browse the Archives

Hey. What're you doing all the way down here? You get lost? Just looking around? Cool. I like you.