hi all...
need help...
for about a week i cant upload images to drupal:
--•The specified file temporary://file2oHhEz 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---

the worst thing that the error shows on every page...

my tmp file is in root and got 777 cmhod.

my sit is basically shot down - please help.

hilit

Comments

john_b’s picture

Assuming you are renting a commercial server, /tmp is on a partition mounted as nonexec for security reasons (sometimes). Make a directory called /temporary or something, set that as temporary folder in the Drupal file system, and it will work. Provided you are satisfied that it is does not present a security risk on your server.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

sweethilit’s picture

The first thing that i did was to create a folder called "temporary"and set it up as temporary folder in the Drupal file system. gave him 777 permissions. it didnt changed a bit.
my site has a lot of traffic and for now i cant upload image. a big problem.

john_b’s picture

Don't know. Maybe there is more in the logs, as the message says.

Is the problem for image fields recorded in database or for images uploaded via the file browser (IMCE etc)?

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

Anonymous’s picture

Try installing the "devel" module and clear the cache via the devel-block. This might fix your issue.

khumbu’s picture

I have the same issue after upgrading the core to 7.1

I have a Vps hosting with full admin and did not change anything according permission.

trying to resolve the problem and will keep you guys up to date.

edit:

Ok...in my case it had to do with the language folder sites/default/languages

changed the dir settings to 775 en the errors are gone...

check your logs (reports, recent log messages)

better way is to just delete the sites/default/languages folder en create it again....

i hope it helps you

scuba_fly’s picture

I had the same problem. In my case the logs said that it could not copy to public://js and public://languages etc.

I chown the 'webuser':
# chown www:www *
in the default/files folder trough a ssh shell on the server and now everything works fine.
Also note that the www user was already chown of the default/files folder

As I understand this it gives the www user the owner rights of the folder.

hope this helps and correct me if I'm wrong.

Freelance Drupal developer, contact me if you want help on your Drupal project.