Update Problem in Wordpress

If you get the error message "Unable to locate WordPress Content directory (wp-content)" on upgrading plugins or themes in your wordpress installation, you have to add

putenv('TMPDIR='. ABSPATH .'tmp'); 
define('WP_TEMP_DIR', ABSPATH . 'tmp');

before the lines

/** Sets up WordPress vars and included files. */ 
require_once(ABSPATH . 'wp-settings.php');

near the end of wp-config.php. You also have to make sure there is a tmp directory in the root of your wordpress installation, which is writable by the webserver.

 

Syndicate content