wordpress 3.5安裝不了新主題
阿新 • • 發佈:2019-01-25
Did you get this error: “Download failed. Destination directory for file streaming does not exist or is not writable.” after upgrading to WordPress 3.5? The error usually occurs when trying to install or update a plugin or theme. Here is a simple fix to the problem.
- First you will need to gain access to your wordpress files. This will usually mean getting FTP access to your website directory.
- Once you have obtained access to your WordPress directory, open up the wp-config.php file.
-
Add this line of text to the end of the file:
define(‘WP_TEMP_DIR’, ABSPATH . ‘wp-content/’); - Save your wp-config.php file and you should no longer have problems updating/installing plugins or themes
This will fix a PHP problem that fails to write to a temporary folder and will use your wp-content folder as the temporary location when doing updates to plugins or themes.