Notice: Undefined index: preview_css in theme_color_scheme_form() (line 246 of ...\modules\color\color.module).
Notice: Undefined index: gradients in color_scheme_form() (line 203 of ...\modules\color\color.module).

I'm on Drupal 7.4

CommentFileSizeAuthor
Acquia Prosper Color Setting.png158.89 KBClean

Comments

goody815’s picture

Status: Active » Closed (works as designed)

Hi Virtual,

Yes there are warnings that will appear when using the color module. The gradient options and image options are not enabled. That is what's throwing the warning. The color module works with this theme though.

Babalu’s picture

i get the same error

King of Picts’s picture

Status: Closed (works as designed) » Needs work

Same as mine, I m still looking for solution on this problem, to stop show up the error message

Satri’s picture

Subscribing. Getting these error messages too.

spatialguru’s picture

following too

shwx’s picture

Subscribing

tomarsh’s picture

I get that as well. No solution anywhere?

esmerel’s picture

Status: Needs work » Closed (won't fix)

Color.module is part of core - this is likely an issue with core.

sw0rdf1sh’s picture

Same problem

causalloop’s picture

subscribing

causalloop’s picture

is there an open issue with core that you know of that we can link to and track?

castelar’s picture

To stop displaying the error go to admin/config/development/logging and set to Errors and Warnings.

ucensys01’s picture

I am getting this error as well. Do not mind the display of the error. More interested in a fix for the error. Has there been any progress on this yet??

itatcheekandscott’s picture

Also looking for resolution for this. Posting to track updates.

sonickkk’s picture

Same issue for me, waiting for a solution..

desmondmorris’s picture

Without hacking up the color.module, you could add the following to the bottom of the themes color.inc file.

$info['preview_css'] = '';
$info['gradients'] = array();

Not ideal. The color module should handle the error better.

sbsxrx’s picture

WAT?
1. -Yes there are warnings that will appear when using the color module. -Yes, we already knows that, that's the point.
2. -The gradient options and image options are not enabled. -How we can enable it, both options? What config file?
3. -That is what's throwing the warning. -Ok, thank you for that information.
4. -The color module works with this theme though. -Yes 'color module' works, but I think this issue is about Acquia Prosper, why you closed this thread so?

kind regards,
Francois Vaan Der Valen

sbsxrx’s picture

Status: Closed (won't fix) » Needs review

Subscribing

sbsxrx’s picture

This is the output of $info:

Array (
[fields] => Array (
[base] => Base
[background] => Background
[text] => Text
[link] => Link
[linkhover] => Hovered Link
[darkestgray] => Darkest Gray
[2nddarkestgray] => 2nd Darkest Gray
[3rddarkestgray] => 3rd Darkest Gray
[mediumgray] => Medium Gray
[2ndmediumgray] => 2nd Medium Gray
[2ndlightestgray] => 2nd Lightest Gray
[lightestgray] => Lightest Gray
)

[schemes] => Array (
[default] => Array (
[title] => Gray (Default)
[colors] => Array (
[base] => #343434
[background] => #f3f3f3
[text] => #000000
[link] => #af0000
[linkhover] => #336699
[darkestgray] => #343434
[2nddarkestgray] => #404040
[3rddarkestgray] => #5b5b5b
[mediumgray] => #a9a9a9
[2ndmediumgray] => #b0b0b0
[2ndlightestgray] => #d8d8d8
[ligthestgray] => #f3f3f3
)
)
)

[css] => Array (
[0] => css/colors.css
)
)

So we can see, 'gradients' and 'preview_css' are not defined!

Regards,
F.

dianacastillo’s picture

Has anyone found the solution to this ?

Karinp76’s picture

Issue summary: View changes

I have the same problem!

Poieo’s picture

Project: Acquia Prosper » Fusion Prosper
Version: 7.x-1.x-dev »

Moving to Fusion Prosper.

This theme is deprecated. There is an unbranded D7 port of this theme available here: https://www.drupal.org/sandbox/poieo/2337715
The theme is currently only available as a sandbox, but functional and only awaiting administrative approval to be promoted to a full project. Any developments are going to happen on the new version of the theme!

klausson’s picture

Version: » 7.x-2.0-beta1

@Poieo: I installed the latest Fusion Prosper and am still having the same problem everybody else is referring to above, plus a ton of error messages whenever I change any of the colors. It sounds like further up there were some fingers pointed at the Colors module. If so, what should we look at to fix the problem?

spyderpie’s picture

I have the same issues with the Fusion Prosper theme as well

Poieo’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
Assigned: Unassigned » Poieo
Status: Needs review » Needs work
Poieo’s picture

Title: Appearance setting warning » Add Proper Color Module Support

Updating the title to better reflect the issue.

  • Poieo committed 851ea69 on 7.x-2.x
    Issue #1210562 by Poieo: Color module support
    
Poieo’s picture

Status: Needs work » Needs review

Proper color module support has been added to the latest dev. It's likely, if you've already setup a custom color scheme, that you'll have to redo your color settings.

There are probably still some minor adjustments to be made. Please post back any issues you find.

ph7’s picture

Add the following to your theme's /color/color.inc $info array and the undefined index error will disappear once you clear the cache

// Drupal's core color.module expects a gradient array definition.
// We do not use gradients, so we define an empty array.
  'gradients' => array(),