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.
Related
Drupal 8.2.6
Media Entity 8.x-1.0-alpha4
Ctools 8.x-3.0-alpha27
So after turn on CSS/JS aggregation I noticed that I can not upload images anymore. When I try to upload an image it gave me an error. So I changed my tmp directory to
sites/default/files/tmp
but that didn't help and gave me an error of
The file could not be saved. An unknown error has occurred.
File upload error. Could not move uploaded file.
This value should not be null.
I checked the permissions. default folder is 755. files folder is 755. tmp folder is 755. This also started affecting my Drupal 7 website after I enabled aggregation, so I am certain this is what is affecting my site.
Any information or leads would be very helpful, as I've been stuck.
After a long 2 days struggling to find the answer, I finally found a temporary solution. I used the command chmod -R 1777 /tmp . Then in admin/config/media/file-system I set directory to /tmp . Might have security vulnerabilities, but it works for me.
I have a problem in OScommerce database backup manager directory folder.
I tried 777, 755, 775 but still the same error, it says Error: Backup directory does not exist. , please create it and/or set location in configure.php.
The folder was there and also in the config file:
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'db_backup/');
Any possible ideas why it happened everytime?
Someone from oscommerce forum just helped me out:
This solved the problem:
in the admin/includes/configure.php
write this define:
define('DIR_FS_ADMIN', '/home/"servernamehere"/public_html/admin/');
After mysteriously losing site administrator access to my wordpress installation, I tried uploading the theme into the wp-content/themes folder directly.
However, I get the following error when attempting to access the main page now
{"success":"-1","alert":"Cannot write style-custom.css file, you may try setting the style-custom.css file permission to 755 or 777 to solved this. ( If file does not exists, you have to create it yourself )"}
How can I solve this?
Thanks
I have the same problem with the bluediamond themes.
To fix this issue I have changed by FTP the permissions on the file style-custom.css (The correct permissions is 777) locate in the root of the theme "wp-content/themes/bluediamond".
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.
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.