XF 2.0 error evaluating function `rgba` color functions take numbers as parameters index: 34109

originalk

Member
My forum is working fine but this error keeps showing up in my error log:

Code:
Less_Exception_Compiler: error evaluating function `rgba` color functions take numbers as parameters index: 34109 src/vendor/oyejorge/less.php/lib/Less/Tree/Call.php:80
Generated by: Unknown account Jan 14, 2018 at 1:57 PM

Code:
Stack trace

#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Call->compile(Object(Less_Environment))
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#6 src/XF/CssRenderer.php(330): Less_Parser->getCss()
#7 src/XF/CssRenderer.php(311): XF\CssRenderer->renderToCss('public:extra.le...', '// Note that th...')
#8 src/XF/CssRenderer.php(235): XF\CssRenderer->renderTemplate('public:extra.le...', NULL)
#9 src/XF/CssRenderer.php(101): XF\CssRenderer->renderTemplates(Array, Array, Array)
#10 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#11 css.php(30): XF\CssWriter->run(Array, 3, 1, 'b8ca0fcedd3ca56...')
#12 {main}

Code:
Request state

array(4) {
  ["url"] => string(103) "/forums/css.php?css=public%3Aextra.less&s=3&l=1&d=1515937353&k=b8ca0fcedd3ca56f444fa940023fdd628624c92a"
  ["referrer"] => string(38) "http://www.deadites.net/forums/online/"
  ["_GET"] => array(5) {
    ["css"] => string(17) "public:extra.less"
    ["s"] => string(1) "3"
    ["l"] => string(1) "1"
    ["d"] => string(10) "1515937353"
    ["k"] => string(40) "b8ca0fcedd3ca56f444fa940023fdd628624c92a"
  }
  ["_POST"] => array(0) {
  }
}

Anyone encounter this before? How do I fix it?
 
How do I figure out what that invalid code is? Here's the entire file:

Code:
.block-tabHeader {
    color: #fff;
    background: rgb(69,69,69);
    border-bottom: 1px solid #2f2f2f;
    font-size: 0;
}
.block-tabHeader .tabs-tab.is-active {
    background: rgb(189,117,19);
    color: #fff;
    border-color: #cacaca;
}
.p-footer a {
    color: rgba(255, 255, 255) !important;
}
.p-footer-copyright {
    color: rgb(222, 222, 222);
}
.button, a.button {
    background: rgb(37,119,177);
    border: transparent;
    color: #fff;
}
.button.button--scroll, a.button.button--scroll {
    background: rgb(37,119,177);
}
.select2 .select2-selection ul .select2-search .select2-search__field {
    color: #fff;
}
.node--unread .node-icon i::before {
    color: rgba(242, 147, 13, 0.70);
}
.button:hover {
    background: rgb(44,44,44) !important;
    color: rgb(242, 147, 13) !important;
}
.block-tabHeader .tabs-tab:hover {
    color: #fff;
    background: grey;
}
.block-row.block-row--separated + .block-row {
    border-top: 1px solid rgba(252, 252, 252, 0.12);
}
.menu-separator {
    border-top: 1px solid rgb(70, 70, 70, 0.75);
}
/* Border between sticky/normal threads */
.structItemContainer-group--sticky {
    border-bottom: 1px solid;
    color: green;
}
.structItem-status--sticky::before {
    color: green;
}
/* Editor Code Entry in Posts */
.CodeMirror pre {
    color: rgb(222, 222, 222) !important;     
}
.CodeMirror-gutters {
    background-color: green !important;
}
.CodeMirror-linenumber {
    color: rgb(222, 222, 222) !important;
}
/* Code Editor Blinking Cursor Color */
.CodeMirror-cursor {
    border-left: 1px solid rgb(222, 222, 222) !important;
}
/* Flash Message */
.flashMessage {
    background-color: green !important;
    color: rgb(222, 222, 222) !important;
}
/* Icons for Login and Register buttons */
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--logIn:before {
    font-family: FontAwesome;
    content: "\f090";
    color: rgb(222, 222, 222);
    padding-right: 5px;
}
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--register:before {
    font-family: FontAwesome;
    content: "\f084";
    color: rgb(222, 222, 222);
    padding-right: 5px;
}
/**********/
/* Hightlight Text Fix */
.fr-wrapper ::-moz-selection {
    background: green;
    color: white;
}
.fr-wrapper ::selection {
    background: green;
    color: white;
}
 
I'm not positive, but it may be this:
Code:
 border-top: 1px solid rgb(70, 70, 70, 0.75);
That should either be rgba or only have 3 params.

Unfortunately not an ideal error message, though not something we have control over.
 
Actually, nevermind. It's happening again.

Code:
Less_Exception_Compiler: error evaluating function `rgba` color functions take numbers as parameters index: 34109 src/vendor/oyejorge/less.php/lib/Less/Tree/Call.php:80

Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Call->compile(Object(Less_Environment))
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#6 src/XF/CssRenderer.php(330): Less_Parser->getCss()
#7 src/XF/CssRenderer.php(311): XF\CssRenderer->renderToCss('public:extra.le...', '// Note that th...')
#8 src/XF/CssRenderer.php(235): XF\CssRenderer->renderTemplate('public:extra.le...', NULL)
#9 src/XF/CssRenderer.php(101): XF\CssRenderer->renderTemplates(Array, Array, Array)
#10 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#11 css.php(30): XF\CssWriter->run(Array, 3, 1, 'dfb688f6023f14b...')
#12 {main}

Request state
array(4) {
  ["url"] => string(160) "/forums/css.php?css=public%3Anode_list.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Aextra.less&s=3&l=1&d=1516022116&k=dfb688f6023f14bb3cb84fb72e42d23ba0cfab0f"
  ["referrer"] => string(31) "http://www.deadites.net/forums/"
  ["_GET"] => array(5) {
    ["css"] => string(66) "public:node_list.less,public:share_controls.less,public:extra.less"
    ["s"] => string(1) "3"
    ["l"] => string(1) "1"
    ["d"] => string(10) "1516022116"
    ["k"] => string(40) "dfb688f6023f14bb3cb84fb72e42d23ba0cfab0f"
  }
  ["_POST"] => array(0) {
  }
}

My code:

Code:
.block-tabHeader {
    color: #fff;
    background: rgb(69,69,69);
    border-bottom: 1px solid #2f2f2f;
    font-size: 0;
}
.block-tabHeader .tabs-tab.is-active {
    background: rgb(189,117,19);
    color: #fff;
    border-color: #cacaca;
}
.p-footer a {
    color: rgba(255,255,255) !important;
}
.p-footer-copyright {
    color: rgb(222,222,222);
}
.button, a.button {
    background: rgb(37,119,177);
    border: transparent;
    color: #fff;
}
.button.button--scroll, a.button.button--scroll {
    background: rgb(37,119,177);
}
.select2 .select2-selection ul .select2-search .select2-search__field {
    color: #fff;
}
.node--unread .node-icon i::before {
    color: rgba(242,147,13);
}
.button:hover {
    background: rgb(44,44,44) !important;
    color: rgb(242,147,13) !important;
}
.block-tabHeader .tabs-tab:hover {
    color: #fff;
    background: grey;
}
.block-row.block-row--separated + .block-row {
    border-top: 1px solid rgba(252,252,252);
}
.menu-separator {
    border-top: 1px solid rgb(70,70,70);
}
/* Border between sticky/normal threads */
.structItemContainer-group--sticky {
    border-bottom: 1px solid;
    color: green;
}
.structItem-status--sticky::before {
    color: green;
}
/* Editor Code Entry in Posts */
.CodeMirror pre {
    color: rgb(222,222,222) !important;    
}
.CodeMirror-gutters {
    background-color: green !important;
}
.CodeMirror-linenumber {
    color: rgb(222, 222, 222) !important;
}
/* Code Editor Blinking Cursor Color */
.CodeMirror-cursor {
    border-left: 1px solid rgb(222, 222, 222) !important;
}
/* Flash Message */
.flashMessage {
    background-color: green !important;
    color: rgb(222, 222, 222) !important;
}
/* Icons for Login and Register buttons */
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--logIn:before {
    font-family: FontAwesome;
    content: "\f090";
    color: rgb(222, 222, 222);
    padding-right: 5px;
}
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--register:before {
    font-family: FontAwesome;
    content: "\f084";
    color: rgb(222, 222, 222);
    padding-right: 5px;
}
/**********/
/* Hightlight Text Fix */
.fr-wrapper ::-moz-selection {
    background: green;
    color: white;
}
.fr-wrapper ::selection {
    background: green;
    color: white;
}
 
You still have at least 2 lines using rgba (invalid as you haven’t put a decimal value to define transparency)

Why are you using rgba if you don’t want to adjust opacity?

Change it to rgb or add a decimal value to make it transparent.
 
Back
Top Bottom