I have installed Drupal 7. This is a fresh install on a Ubuntu 10.10 system. I am attempting to upload a new logo and change a color in the Bartik theme.
I am getting errors that I cannot resolve releted to permission setting of files and directories.
"- The specified file themes/bartik/logo.png 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."
I have attempted to change the color, upload a new logo, change back to the old logo, etc but I am not sure what is going on.
When I look at the Reports inside Drupal I see the following message related to the last attempt to change the color.
Location: http://www.website.com/admin/appearance/settings/bartik?
render=overlay&render=overlay&render=overlay&render=overlay&render=overlay&render=overlay&render=overlay
Referrer: http://www.website.com/admin/appearance/settings/bartik?
render=overlay&render=overlay&render=overlay&render=overlay&render=overlay&render=overlay
Message: The file permissions could not be set on public://color/bartik-625cfda9/colors.css.
I was able to change the color back to the default.
Also, when I attempt to load a new custom logo I entered the following path:
/includes/filetransfer/newlogo.jpg
and I get another error
" The custom logo path is invalid. "
SO, what is going on with the permission settings?
1. How can I see the system log? Where does Drupal report errors?
2. What permissions are required for files and Directories in order to upload a new picture?
3. Where does Drupal store the pictures? I assume its in includes/filetransfer but I could be wrong.
4. What do I need to do to customize Bartik and save the setting? ..... again related to permissions of files and Directories.
5. I also had an error related to .htaccess not allowing access to upload a logo....however I cannot seem to duplicate that error now. Is there any information on how .htaccess might prevent modifing the site?
Thanks,
Spineless
Comments
1. Enable dblog module and
1. Enable dblog module and them /admin/reports/dblog
2. read write access for everyone. chmod 0666 on your server
3. admin/settings/file-system | Here you ll find where your files folder is
4. Fix 2
5. .htaccess should not be involved in your prob. That would be then a server issue. But again fix 2 first and test :)
--patrick
This is helpful. However, I
This is helpful. However, I cannot find a module titled dblog.
I looked in the modules section of Drupal 7 to see if the module dblog was part of the core. The only thing I found was a module called "Database Logging" which came with the core and is activated. When I took a closer look at it to see how it generated error reports I found it pointed to the Admin> reports tab....which is what I have been using up until now.
So, I went to the drupal website and did a search for "dblog" and I could not find a module titled dblog. What I did find was 8 other modules instead.
Util
Brilliant Gallery
Modal Frame Contrib Package
Petition Node
Rawlog
Remote File Inclusion Report
WatchBug
Database log save
Just to be clear, What I am looking for is the system error log that the system generates as a result of a drupal error. The kind of information I am looking for would be something useful to a programmer (like myself) to troubleshoot at a server level not necassarily within Drupal.
Can you provide me a link to where I could find dblog?
.htaccess error
While troubleshooting this issue and following your direciton.... I took a look at the area of the admin panel to see where the uploaded files are stored. I went to administration>>Configuration>>Media. Here I found the Public file system path, which looks like the place where my uploaded files would likly be saved. .... This looks like what I need in regards to one of my previous questions.
However I also saw an error on this page... here is the warning message.
Warning: file_put_contents(sites/default/files/.htaccess): failed to open stream: Permission denied in file_create_htaccess()(line 507 of /home/mywebsite/includes/file.inc).
I am not really sure what this error is refering to. Is it a file permission problem with .htaccess or file.inc? Or is there a coding error at line 507 of file.inc?
Any ideas what this warning is about?
Solution - "..specified file %file could not be copied.."
The solution for me was simply..
.
Go to 'Configuration' > 'Media' > 'File System'
[*root*]/admin/config/media/file-system
and change the 'Temporary directory' from
/tmp
... to...
tmp
.
.
.
===
Error:
"The specified file temporary://file****** could not be copied,
because the destination directory is not properly configured..."
===
2011.03.26 - I updated this post to refine the work-around solution.
See http://drupal.org/node/1106492 for all the details.
All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *
This is notice of an important change in my comment above.
I corrected my post above to reflect a better solution.
The details are at http://drupal.org/node/1106492
All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *
Write permission Files em Dirs - solve problem.
Hello,
My old and problematic configuration
My new and work fineconfiguration