Could not open handle for fopen() while updating wordpress


Issue : I got the above while updating wordpress and the plugins.

Solution :

This might be due to the temporary directory created on the wordpress directory. You can resolve it using following steps.

1. Create a new directory “tmp” inside “wp-content” directory.

# mkdir tmp

2. Now give it 777 permission and correct it to user ownership.

#chmod 777 tmp

#chown user.user tmp

3. Now define the new directory in wordpress configuration file wp-config.php

define(‘WP_TEMP_DIR’,ABSPATH.’wp-content/tmp/’);

4. Try to update it now.

That’s all….!!!!

Blog Stats

  • 37,399 hits