WordPress update failing - wordpress

I'm having a problem when trying to update WordPress to the latest version I get the following error:
Download failed.: Destination directory for file streaming does not exist or is not writable.
Installation Failed
I'm also having the same problem when uploading images, it fails and gives the following error
has failed to upload due to an error
The uploaded file could not be moved to "the website path and then uploads directory"
I have checked the permissions of the folders and the folders themselves are set to 755 & the files inside them set to 644.
Could anyone tell me why it would be doing this?
Where running a plesk server.
Thank You,
Mark

Are there any more error messages, probably also in the servers log files? Probably the download for the update should be done to /tmp and you are not allowed to store files there? Try setting the constant WP_TEMP_DIR which should change the directory. Put something like this in your wp_config.php:
define('WP_TEMP_DIR', ABSPATH . 'wp-content/');

The permissions you're using seem reasonable, but they will only work if the FTP user that WordPress is using (set in your wp_config.php file) is the same as the owner of those files/folders.

Related

How to solve this error in moodle ? and setup in localhost?

Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
You need to check 'config.php' in your moodle installation files directory.
There you can find a line like below, which shows your directory name (it seems empty as per your error, you need to define path here) - in this directory/folder your moodle media uploads get store.
$CFG->dataroot = '/var/moodledata';
Moreover, after define this you will require to give Read,Write,Execute permissions to this folder.
(here '/var...' mentioned as Ubuntu directory structure, in localhost you need to mention respectively)

Any plugin installation failed - could not copy file error

everytime I install a new plugin for wordpress it says Could not copy file and the files address. Does anybody know why this is the case.
Check file premissions and (important!) file owner or group. If you use apache server group must be www-data (default). This can be a solution
I was facing the same issue but in my case I was updating using FTP.
I fixed it by setting the hostname to "localhost" instead of using the IP.
This is because there was a loop happening and making the file upload fail and that's logged in the /var/log/vsftpd.log

Error creating the folder

There is a site where I get this type of error
Error creating the folder wp-content/uploads/noisy. Please create it manually and set the permission to 777 through your FTP client.
In ftp part I changed the file permissions to 777 but error is still running. Also I delete this folder but anyway I get this error.
I have solved in at least.
I have added this line to config.php define('UPLOADS', '/wp-content/uploads');
All is fine!
Please try the following:
Go to Settings->Media and unchecked the box that says "Organize my uploads into month- and year-based folders". This solves your problem.

Destination directory is not properly configured for Drupal

I keep getting the error on my Drupal 7 site - even after I have configured the logging and errrors to 'none'
I have made my tmp file writeable 777 and checked the file directory is correct under 'file system' I have made my sites/default/files directory writeable also
Cannot seem to get rid of this error - it reads:
The specified file temporary://fileg2e71m could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
Any suggestions?
Have resolved the issue:
It was an ownership issue where the files are owned by the Apache user. I Set PHP 5 to run in cgi-mode on my cPanel.
Drupal 7 and drupal 8 and 9:
After importing a Database, some paths are not quite well defined. Go to /admin/config/media/file-system and hit "Save Configuration". Now the Translations-import works fine.

Permission denied error in wordpress 3.3.1

I once moved my wordpress directory one level up on my server (its now in the root). Everything seems to work fine for a while but niow i'am starting to have troubles with uploading images.
When i try to include an image by uploading it from my computer wordpress throws an "Permission denied" error:
copy(/home/bram/domains/dutchmountaineer.com/public_html/wp-content/uploads/2012/05/Costa-Rican-Frog.jpg)
[function.copy]: failed to open stream: Permission denied in
/home/bram/domains/dutchmountaineer.com/public_html/wp-admin/includes/file.php on line 348
618
I tried setting the uploads and includes folder to 777 which had no effect. I have set them back to 755.
Any help please!
Jorrit
EDIT:
I tried changing the full path (in media settings) but it was of now help. I think it since i moved the wp installation from /wp/ to the root of my server
Check who owns the directory. It may be possible that you need to add www-data to the group. Weird, yes, but I sometimes encounter scenarios where even files and directories with 777 are denying me access if I don't add my user to the owner group.
It means you are getting error near this code
// Copy the temporary file into its destination
$new_file = $uploads['path'] . "/$filename";
copy( $tmp_file, $new_file );
unlink($tmp_file);
check your settings under settings->Media tab in admin panel and check you have the appropriate permissions for the folder, you can change the upload path as well. Let me know if problem still persists.
You have to allow uploads directory 777 rights and check your folder user and ftp user are same or not.

Resources