Closed (fixed)
Project:
Bartik
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2010 at 20:19 UTC
Updated:
22 Jul 2010 at 03:40 UTC
There's a problem with our color module support.
Changing to a preset gets this warning:
# Notice: Undefined index: base in _color_rewrite_stylesheet() (line 438 of /Users/joachim/Sites/7-drupal/modules/color/color.module).
The reason is this in color.module:
$base = 'base';
// ... SNIP
if ($key = array_search($chunk, $default)) {
$chunk = $conversion[$key];
}
// Not a pre-set color. Extrapolate from the base.
else {
$chunk = _color_shift($palette[$base], $default[$base], $chunk, $info['blend_target']);
}
So basically, it looks like 'base' must be a defined color in a scheme -- it's hardcoded into colour module.
Comments
Comment #1
joachim commentedThis might have been due to my testing #762462: Make footer background and sidebar block borders colorable -- I applied the patch and then reversed it and there may have been glitches due to color module's wacky pseudocaching.
Comment #2
Steven Merrill commentedWith Drupal HEAD upped and with Bartik HEAD cvs upped -dPCA , I cannot reproduce this.
Comment #3
bleen commentedI too cannot reproduce ... if anyone else can, please re-open
Comment #4
joachim commentedYeah me neither.
Comment #5
Steven Merrill commented