This error occured to me, too. I fixed it by adding two lines:
putenv('TMPDIR='. ABSPATH .'tmp');
define('WP_TEMP_DIR', ABSPATH . 'tmp');
before
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
near the end of wp-config.php.
You have to make sure, that you have a tmp
directory in your wordpress installation, that is writeable by the server.