Hi. I am running a drupal installation on a shared host with php safe mode enabled.
I have encountered various problems with uploading files. Now, almost everything works properly. However, when I try to change the theme colors, I get the following error:
The specified file temporary://fileUSMnYL could not be copied to public://color/bartik-f43345ef/colors.css
I tried removing the color folder. Drupal will then recreate the folder when I try to save the theme (so write permission doesn't seem to be the problem) but fails to create the colors.css file. This results is all background colors going to white.
Here are some of the problems I encountered before, as they might be involved in the problem.
At first I could not upload files with IMCE. This was resolved by applying this patch: http://drupal.org/node/1226786
which replaced:
if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->uri)) {
with:
if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], drupal_realpath($file->uri))) {