codemonkey-jack / shoestrap-3

A highly customizable WordPress theme with the ability to use multiple CSS frameworks
http://shoestrap.org
MIT License
395 stars 103 forks source link

error evaluating function `darken` #602

Closed MagenEcoUS closed 9 years ago

MagenEcoUS commented 10 years ago

I've found a couple other posts concerning this issue, but no real solution. The only thing changed recently are the updates to Shoestrap v3.2.9 and Redux Framework v3.3.4. Here is the full error error evaluating functiondarkenObject of type Less_Tree_Anonymous passed to darken function. Expectingcolor. #transp. Array ( [function] => darken [class] => Less_Functions ) index: 417

aristath commented 10 years ago

It looks like some setting in your redux panel has an invalid color specified. Instead of having a hex color, it has #transp which of cource will not work, and simply does not compute. Less tries to darken an invalid color and therefore fails. Can you please check your settings and let us know what you find?

MagenEcoUS commented 10 years ago

I think I see what is happening. In v3.2.6 there is a checkbox for setting the Jumbotron background color to a transparent value. In v3.2.9 that checkbox is no longer there. I think when I upgraded from v3.2.6 to v3.2.9 the values carried over and transparent was entered into the background color field that only accepts hex values. Then when I tried saving a change the compiler threw an error. I was able to catch it by going through the settings as you requested. I noticed that the value for the Jumbotron background color was transparent so I tried changing it to #ffffff, but it would still throw the error when trying to save.

I was able to finally get the Jumbotron background color set to #ffffff by switching back to v3.2.6 then right back to v3.2.9 so I could access the admin area and immediately change the value from transparent to white. Once I saved it finally stuck instead of throwing the error. All seems to be well now.

fovoc commented 9 years ago

hey there, this is fixed in https://github.com/shoestrap/shoestrap-3/commit/94a3002b4c1a63dad1a907db1e5a2a50fad68bff

thanks for the feedback, Dimitris