Anytime I change any settings, the sites/default/files/mayo#$%^/color.css file gets changed and leaves out the background-clor of the base, with the following error in the code.
body,
#page-wrapper {
background-color: ;
color: #434342;
I also get these messages upon saving;
Notice: Undefined index: wall in _color_rewrite_stylesheet() (line 475 of /home/iwasborn/public_html/growtogive.com/modules/color/color.module).
Notice: Undefined index: even in _color_rewrite_stylesheet() (line 475 of /home/iwasborn/public_html/growtogive.com/modules/color/color.module).
I can change the code, add a color and all is well...until I make any changes in theme settings, and then the color.css file gets changed back to the missing color, faulty code.
Comment | File | Size | Author |
---|---|---|---|
#4 | theme code.jpg | 272.76 KB | IWasBornToWin |
Comments
Comment #1
ontological CreditAttribution: ontological commentedI don't have this problem. Perhaps you might want to check to make sure that permissions are correct so that Drupal has write permission to the folder where the customized style changes are saved.
Comment #2
IWasBornToWin CreditAttribution: IWasBornToWin commentedIt has to have correct write permissions....it changes all other colors anytime I change them in the settings and It deletes the base color. This still doesn't address the issue about base color selector not being visible in the settings?
Thanks
Comment #3
mermentau CreditAttribution: mermentau commentedIWasBornToWin, Don't be too quick to dismiss the idea of a configuration problem in your install. We have hashed this over in http://drupal.org/node/1356622 where you first mentioned the problem, and with over 6,000 users of Mayo now I'm thinking there would be more of a clamor here if it is "faulty code".
That said can you describe how we can recreate the problem? I assume you have the latest 7.x-1.x-dev.
Comment #4
IWasBornToWin CreditAttribution: IWasBornToWin commentedYes, I have the latest dev. I think what you hashed over in the last post is not related to this...but perhaps...not sure.
It may be core, I'm not sure what it is, just trying to figure out how to fix it. But I can be very quick to deduct it's not a file permission issue if the colors.css file is being rewritten, correct? Or could it still be? mayo theme folder is 755. /files/color folder is 755. /files/color/mayo@#$%fsde234 is 755. /files/color/mayo@#$%fsde234/colors.css is 664
I can't tell you much more than I did in my initial post here.
The colors.css file gets rewritten anytime I save theme settings. This rewrite saves all the new settings but deletes the base color. I edit the new saved file, insert the deleted base color, and then after saving it, everything is fine.
Also, there is no filed in my settings to change the base color. Now that i'm thinking about this, since there is no field, the rewrite is saving a blank, null value? If the base field were visible in my settings and I inserted the color, i bet it would work. Instead, I'm having to manually insert the color. So, the golden question--how do I get the base color field to show in my settings? Another interesting things to not, no base color shows in the theme preview either.
Here's some code from inspecting the element. Not sure what this "hidden" means?
<input type="hidden" name="var" value="theme_mayo_settings">
Here's a screen shot of that code
Comment #5
ontological CreditAttribution: ontological commentedIWasBornToWin, not sure if this idea would help, but I've noticed that with the color module, the first time a theme is enabled it creates 4 rows in the variables table. If the names or number of items in the color.inc file have changed (new version of the theme or site buillder adds them) those might not be reflected on the admin appearance screen. To get around this I have deleted those 4 rows, cleared the cache, deleted the sites/default/files/themename#$%^/color.css files, and then customized the settings again. Also, I'm not fully sure, but I suspect that you cannot add items manually to the theme color.css file as it might throw off the writing of the color over-rides done in the admin appearance screen. If you want to add colors then use a different style sheet.
Hope this helps. Let us know.
Comment #6
IWasBornToWin CreditAttribution: IWasBornToWin commentedAwesome....that fixed it!
For reference, Base, Even table background, and Sticky node color were all unavailable settings until I did this.
Thank you.
Comment #7
fuzzy76 CreditAttribution: fuzzy76 commentedWow, I was bitten by this too. What an obscure bug. Is this a problem of the color.module?
To avoid losing my colors I:
Comment #8
mermentau CreditAttribution: mermentau commented@fuzzy76, This issue is so old maybe we should open another issue if you are interested. Drupal core and Mayo have both changed some in the 3 years since this was opened.
Comment #9
fuzzy76 CreditAttribution: fuzzy76 commentedI'm good, thanks. On the other hand, it is the exact same issue, so I don't know why splitting it up would help. But I wonder if this should have been posted in the color.module issue queue instead (depending on how it calculates the numeric hash it appends to the css files).
Comment #10
fuzzy76 CreditAttribution: fuzzy76 commentedAfter some research, I'm pretty sure this is a duplicate of #134321: if default color profile base and original style.css background color are the same, output is invalid CSS background:;