Wordpress Update Error: Could not open handle for fopen

Asked by:
tinoman / 13 Points
Time:
2013-09-07 1:13 pm EST
Category:
Wordpress
Hits:
3,462
hello, when i choose to update wordpress to its current version (3.6) it gives me an error:

download failed.: Could not open handle for fopen() to /tmp/wordpress-3.tmp

Installation Failed


Pls advise - thanks in advance

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

johnpaulb-whh2
Staff
12,339 Points
2013-09-09 4:13 pm EST
Hello tinoman,

Thank you for your question. I noticed that the directory in the error is /tmp/wordpress-3.tmp, which is a temporary folder location.

This location (/tmp) is on the server, but not on your account.

I recommend updating the temporary folder location in Wordpress, by editing the wpconfig.php file and adding the following code:
define( 'WP_TEMP_DIR', ABSPATH . 'wp-content/tmp/') ;


This tells wordpress to use a folder within its existing directories, and should also inherit the permissions of a parent folder.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul

To submit a comment on this answer, please first login.

Hi John-Paul, thank you very much for your reply.
I changed the permissions for all top directories (www, public html etc.) and added the line in the wpconfig.php file.

However, it now shows me this error:
"Destination directory for file streaming does not exist or is not writable."

Any ideas? Thanks for your help ;)
tinoman
13 Points

2013-09-10 4:23 am EST
Hello Tinoman,

I'm sorry to hear you're having problems with the upgrade. If you can please provide us a URL for the exact installation you are updating, then we could take a close look at the issue for you. I am not sure which account is yours and what installation you are referring to, but if you can provide a little more information we can definitely troubleshoot the issue for you and give you a solution. The answer that John Paul was referring to comes from the WordPress forums here: WordPress.org support forums: Destination directory for file streaming does not exist" which then points to this article: Troubleshooting WP master list.

Please provide us more information and we'd be happy to help.

Regards,
Arnel C.
arnelc
17,314 Points
Staff
2013-09-10 8:08 pm EST
Want to share this Question?
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}