After setting a custom base color (some variant of red) with the color wheel, I set Color Set to Plum and attempted to save. The resulting errors occurred:

* Notice: Undefined index: gradient in _color_render_images() (line 470 of /home/caligan/d7/modules/color/color.module).
* Notice: Undefined index: text in _color_rewrite_stylesheet() (line 401 of /home/caligan/d7/modules/color/color.module).
* Notice: Undefined index: text in _color_rewrite_stylesheet() (line 401 of /home/caligan/d7/modules/color/color.module).
* Notice: Undefined index: link in _color_rewrite_stylesheet() (line 401 of /home/caligan/d7/modules/color/color.module).
* Notice: Undefined index: link in _color_rewrite_stylesheet() (line 401 of /home/caligan/d7/modules/color/color.module).
* Notice: Undefined index: link in _color_rewrite_stylesheet() (line 401 of /home/caligan/d7/modules/color/color.module).
* Notice: Undefined index: link in _color_rewrite_stylesheet() (line 401 of /home/caligan/d7/modules/color/color.module).
* Notice: Undefined index: link in _color_rewrite_stylesheet() (line 401 of /home/caligan/d7/modules/color/color.module).
* Notice: Undefined index: link in _color_rewrite_stylesheet() (line 401 of /home/caligan/d7/modules/color/color.module).

There was no change in the site's colors. The same occurred a second time attempting the same thing with the Blue Lagoon set.

Replicated this in both Firefox 3.6 and IE 8.

CommentFileSizeAuthor
bartik-ss-colorbug-01.jpg30.32 KBCaligan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jacine’s picture

Seems like this has improved, but is still a problem. I just tried the same and got:

Notice: Undefined index: base in _color_rewrite_stylesheet() (line 437 of modules/color/color.module).
Notice: Undefined index: base in _color_rewrite_stylesheet() (line 437 of modules/color/color.module).

Not sure if this is a problem w/Bartik or the color module.

jensimmons’s picture

Smerrill???

Jarek Foksa’s picture

Priority: Normal » Critical

This is a problem with color module and afair it was present before any patches were introduced. It has quite serious implications since colors not defined in color.inc are shifted relatively to base color.

You can work around this issue by declaring base color in color.inc to be slightly different than base color declared in CSS files, but in many cases this will cause colors to be shifted incorrectly.

Jarek Foksa’s picture

Priority: Critical » Normal
mgifford’s picture

I ran into this problem too when playing with Bartik.

It is mentioned here:
#776684: The color.module preview HTML is hardcoded

but I've created an issue for it here:
#789554: Notice: Undefined index: base in _color_rewrite_stylesheet() in line 437

jensimmons’s picture

So..... is there anything we need to do for Bartik to help with this? Or do we close this issue as won't fix, because it's a core color module thing, and not a Bartik thing.

mgifford’s picture

Well, I'm guessing that $base isn't defined where it should be in Bartik because it doesn't show up as an error when switching colors in Garland.

So I don't think it can be closed, but I don't really know enough about D7 theming to say for sure.

Jarek Foksa’s picture

The error does not appear in Garland because it is not using base color (#0072b9) in any of its stylesheets. Try adding #blah { background-color: #0072b9; } to Garland's style.css and you will get the same error:

Notice: Undefined index: base in _color_rewrite_stylesheet() (line 416 of /opt/lampp/htdocs/demosite-1/modules/color/color.module).
mgifford’s picture

Status: Active » Closed (won't fix)

Guess it can be closed then here in Bartik.

geek-merlin’s picture

Title: Undefined index: text in _color_rewrite_stylesheet » Bartik's color integration misses 'base' key
Status: Closed (won't fix) » Active