By davidjmcq on
I've installed v5 rc1 for the third time on three different Ubuntu machines.
The color picker has vanished from the last one. It worked well in the first two. I can't see what I've done differently.
When I go to the theme configuration on the third install, the first item listed is "toggle display". The other two have a section before that called "color scheme" which includes the color picker.
The only difference in the installs is that the last one is for production, so I've used a site name instead of default.
Any help much appreciated.
Comments
Download method
If your download method is set to Private downloads, color picker is not able to function. This will be documented. A patch is in the queue to provide a message. I'm afraid this will generate massive amounts of support requests.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
thanks.. you are right.
thanks.. you are right. Change to public and it works immediately
I've just had the same
I've just had the same problem, and now it works too. Will this get fixed so that private will work with the colour controls?
No
Perhaps after a rewrite of the filesystem, but not in 5.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
What you can do for now is
What you can do for now is generate the color scheme in a test site which uses public download method and copy it yourself to your main site.
faking the color scheme from a test site
This sounded like a really good idea, but copying the files from a different installation to "file/colour/garland-hexidecimal" didn't work. It defaults to blue. There must be a trick to it. If you know what it is, I would love to know :)
I assume that hexidecimal has a significance, but I couldn't work it out. I tried
/var/www/drupal $ find . -cmin -10
to see what was being changed, but only the files/color directory came up. Any other suggestions?
It would probably help if I was an expert at themes, but I'm not ;-)
Many thanks.
changing garland color with private files
This is what I did, and it worked:
You need two installations - one with private files, one with public. This is because garland keeps it's color information in the files directory, and if files is set to private garland can't access the color info. bummer.
Install 1: set files to public initially, choose a color (admin/sitebuilding/themes/garland/configure) and then change files to private (admin/siteconfig/filesystem). You will have a directory called files/color/garland-xxxxxxxx where xxxxxxxx is some apparently random hexidecimal. NB: I think you really need to do this part when you first create the site, or you could mess up your private/public files.
Install 2: set files to public, create a color directory as above. Copy this directory to files/color and change it's hex part to the same as the hex part created above thus:
/var/www/drupal/files/color # rm -r garland-0ab4d799
/var/www/drupal/files/color # mv garland-cc96b239 garland-0ab4d799
You need root to do all this I guess. Each multi-site creates it's own garland color file, so be sure not to get confused which is which.
The hexadecimal number is
The hexadecimal number is irrelevant, just a random number to ensure unique directory names.
What you can do is create a subdirectory under Garland, call it "mytheme" or anything you want, and dump all the contents of that hex-named directory into it.
Further explanation
I just went through this process but I did it slightly differently.
If you do that it creates garland variants. Nothing wrong with that of course, but if you want to change the colors right in garland it's not much harder.
All you need to do is dump the contents of that theme-(hexcode) dir into the themes/garland/images directory. Now move background.png and the css up to themes/garland. Edit the css file and prepend every image name with "images/" - do a global search and replace for "url(" and change it to "url(images/". in vi, from the first line, that's
:.,$s/url(/url(images\//This process changes the colors for the garland theme directly instead of creating a variant. I don't remember why I wanted to do it this way, but I did, and it works fine. I used the rPath LAMP VMware Appliance to install a plain vanilla drupal 5.0, so that I could use it to generate themes.
It would be really nice if we could get this functionality in such a form that we could still use the color picker, and instead of creating entries in /files/color, it would create variants under the theme. These color variants could then be enabled from theme administration like any other theme, and it seems to me that it would solve the problems that make it so that you cannot use color schemes and the picker with files set private. It still wouldn't let users create their own variants, but at least we would be able to use the picker without having to create color schemes on a whole separate site if we want file protection.
What is the issue if it just does not change colors?
I have files public, color module installed and PHP libraries all working.
When I select another color combination or make a custom one, I do get a new directory under files/color
BUT, my colors never change.
Have this same problem for all my sites I have built.
ALSO: If I change the color to anything other then default the site name appears twice in the header.
Once in bold more centered.
once right below the other not bolded and on the left margin.
Could get rid of this by turning off Logo. Still not changing color thou.
Thanks much for any help! Hard to even start with 5.0 if I can't get the color going first.
When changing the color
When changing the color combination, take a look at the directory created under files/color. How many files does it contain? 17 or fewer? Is there a style.css file? If you find fewer files, then it may be a php memory problem (because the color picker needs a lot of memory for a moment), in which case you can try to increase the memory (see http://drupal.org/node/29268).
The double site name that you see when you enable the logo is the logo's "alt" label. Drupal cannot find the logo image, so it displays its "alt" label. Look at the source html with your browser to see at what path Drupal expected to find the logo, and then try to figure out why it doesn't find it.
Have exactly 17
Have 17 files and a style.css that does have the currently selected colors called out in it.
The program is just not using the information. Defaulting to the the blues default.
-rw-rw-rw- 1 apache apache 140 Jan 16 15:53 bg-bar.png
-rw-rw-rw- 1 apache apache 133 Jan 16 15:53 bg-bar-white.png
-rw-rw-rw- 1 apache apache 2054 Jan 16 15:53 bg-content-left.png
-rw-rw-rw- 1 apache apache 294 Jan 16 15:53 bg-content.png
-rw-rw-rw- 1 apache apache 1958 Jan 16 15:53 bg-content-right.png
-rw-rw-rw- 1 apache apache 427 Jan 16 15:53 bg-navigation-item-hover.png
-rw-rw-rw- 1 apache apache 489 Jan 16 15:53 bg-navigation-item.png
-rw-rw-rw- 1 apache apache 101 Jan 16 15:53 bg-navigation.png
-rw-rw-rw- 1 apache apache 119 Jan 16 15:53 bg-tab.png
-rw-rw-rw- 1 apache apache 186 Jan 16 15:53 body.png
-rw-rw-rw- 1 apache apache 206 Jan 16 15:53 gradient-inner.png
-rw-rw-rw- 1 apache apache 4302 Jan 16 15:53 logo.png
-rw-rw-rw- 1 apache apache 176 Jan 16 15:53 menu-collapsed.gif
-rw-rw-rw- 1 apache apache 183 Jan 16 15:53 menu-expanded.gif
-rw-rw-rw- 1 apache apache 175 Jan 16 15:53 menu-leaf.gif
-rw-rw-rw- 1 apache apache 6483 Jan 16 15:53 screenshot.png
-rw-rw-rw- 1 apache apache 16437 Jan 16 15:53 style.css
Here is my status report as well, with all green check marks.
Drupal 5.0
Configuration file Protected
Cron maintenance tasks Last run 2 min 55 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
MySQL database 5.0.27
PHP 5.1.6
Unicode library PHP Mbstring Extension
Web server Apache/2.2.3 (Fedora)
Should also add I am running under ISPConfig
and various install your system like this texts tell you to put the following the Apache directives in any host that is running drupal. Could the "Deny from all" /Files be what does not allow the changes to be seen?
Note I Changed added the < to [ so they show up.
Options +Includes +FollowSymlinks -Indexes
AllowOverride All
Order allow,deny
Allow from all
[Files ~ "^\.ht"]
Deny from all
[/Files]
[Directory]
I am no .htaccess expert but
I am no .htaccess expert but I doubt this is the problem. This "deny from all" is only for the .htaccess file, not for the files directory, and everything else seem ok.
Try the trick I describe above in my comment http://drupal.org/node/107484#comment-189385 in this thread to see if the new colors show up when you select the new theme name.
If that works, then you have narrowed down the problem somehow.
---------
Edited to add: Do you have Drupal installed in a subdirectory? Did you check the html source in your browser to see at what path Drupal expects to find the css files and the logo?
YES that works!
It did change color now, when I went into Admin-Themes and selected it.
Also, that theme shows up with the thumbnail.
Once I've changed Garland to a none default color, that thumbnail does not show up. Normally it should?
style type="text/css" media="all">@import "/themes/garland/mytheme/style.css
SOOOO... what does this tell us exactly???
Going back to the normal garland and default colors I have this in the source.
style type="text/css" media="all">@import "/files/color/garland-d32851a0/style.css";
Which is the correct directory. No there is not really a drupal subdirectory.
/var/www/web5/web/files
/var/www/web5/web/modules
are the full paths etc.
Thanks much!
What should happen normally
What should happen normally once you've changed Garland to a non default color scheme is that Garland's thumbnail itself should change colors in '/admin/build/themes'.
What those paths say is that your paths are correct and that you should look for another cause, so it is still a mystery.
Hmm... What about the "read" permissions of the 'files' directory and its subdirectories? Are they readable by the web server? (this usually means either owned by you and "777" or owned by apache and at least "755").
Also, does the 'files' directory contain a small .htaccess file containing just 3 lines, one about security, an
Options Noneand then anOptions +FollowSymlinks?more info
drwxrwxrwx 4 root root 4096 Jan 17 08:29 files
total 8
drwxrwxrwx 3 apache apache 4096 Jan 17 11:51 color
drwxrwxrwx 3 apache apache 4096 Oct 26 11:33 images
drwxr-xr-x 2 apache apache 4096 Jan 17 11:51 garland-e472056d
-rw-r--r-- 1 apache apache 148 Jan 17 11:51 bg-bar.png
-rw-r--r-- 1 apache apache 133 Jan 17 11:51 bg-bar-white.png
-rw-r--r-- 1 apache apache 1985 Jan 17 11:51 bg-content-left.png
-rw-r--r-- 1 apache apache 288 Jan 17 11:51 bg-content.png
-rw-r--r-- 1 apache apache 1852 Jan 17 11:51 bg-content-right.png
-rw-r--r-- 1 apache apache 389 Jan 17 11:51 bg-navigation-item-hover.png
-rw-r--r-- 1 apache apache 436 Jan 17 11:51 bg-navigation-item.png
-rw-r--r-- 1 apache apache 103 Jan 17 11:51 bg-navigation.png
-rw-r--r-- 1 apache apache 129 Jan 17 11:51 bg-tab.png
-rw-r--r-- 1 apache apache 167 Jan 17 11:51 body.png
-rw-r--r-- 1 apache apache 209 Jan 17 11:51 gradient-inner.png
-rw-r--r-- 1 apache apache 4178 Jan 17 11:51 logo.png
-rw-r--r-- 1 apache apache 176 Jan 17 11:51 menu-collapsed.gif
-rw-r--r-- 1 apache apache 183 Jan 17 11:51 menu-expanded.gif
-rw-r--r-- 1 apache apache 175 Jan 17 11:51 menu-leaf.gif
-rw-r--r-- 1 apache apache 6765 Jan 17 11:51 screenshot.png
-rw-r--r-- 1 apache apache 16437 Jan 17 11:51 style.css
.htaccess under files
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks
So unless I am not seeing something all is correct.
Yes, all seems correct.
Yes, all seems correct.
I would also try to see what happens with all caching disabled... although caching is supposed to be for anonymous users and also the random numbers in the color directory name are for this purpose, for giving you different files so that you don't get cached ones.
no cache
I am not using any cache.
And have rebooted the server several times.
Never would have guessed...
Never would have guessed... thanks!
You probably have disabled
You probably have disabled color.module.
Check that the GD library
Check that the GD library for PHP is installed correctly.
www.jws.co.za/we_install_modify_and_maintain_drupal_web_sites
Doesn't work with opera browser
I use opera 9.10. And the color picker doesn't show well. I have a big unicolor square instead.
I tested with Firefox 1.5.0.9 and it works well.
Ronan
Brute Force It
I'm working around this problem on a crappy UVa server that I can't control the configuration of.
Color module generates the correct files, but then throws a bunch of errors attempting to use them.
So I just moved the color files into the default garland image folder, and now it works.
If you don't love your computer, you need Different Computers.
http://differentcomputers.com