TL;DR — Resumen Rápido
Troubleshoot and resolve: Wordpress errror while updating: Download failed.: Destination directory for fil in WordPress.
Nota: Este artículo fue publicado originalmente en 2013. Algunos pasos, comandos o versiones de software pueden haber cambiado. Consulta la documentación actual de WordPress para la información más reciente.
How to resolve Download failed.: Destination directory for file streaming does not exist or is not writable in Wordpress
After some digging I was able to pin down what was the issue with my wordpress installation that was causing the error message mentioned above. It turns out I am hosting Wordpress on a Windows Box and therefore PHP uses a temporary directory to which it may not write. To resolve this there are two possible approaches:
- Give your application pool access to that temporary folder so you can extract the updates there OR
- Tell Wordpress to use a different Temporary folder
Option two is generally the easiest one specially when you don’t have access to the Windows Host. In order to accomplish this simply follow the instructions below: Add this line of code anywhere in the root file wp-config.php:
/* Setup a temporary folder for uploading and updating Wordpress */
define( 'WP_TEMP_DIR', ABSPATH . 'wp-content/temp/') ;
and create a new folder named “temp” inside: /wp-content/ In case you were wondering php uses the C:WindowsTemp folder by default generally. That is all, I hope this helps!
Artículos Relacionados
- Changing file permissions and recommendations for WordPress in a Linux system
- How to: Clean your WordPress database from all the empty Yoast WordPress SEO meta data
- Cómo agregar lenguajes adicionales a tu instalación de Wordpress - Multisitio Multired localización
- How to: Connect to a MySql server using SSL from a WordPress Site