Nirjonadda

Customer
Server error log

Code:
XF\CssRenderException: Error rendering template public:xb_welcome.less: variable @_xf-xbWelcomeNoticeStyle--background-color is undefined in file public:xb_welcome.less in public:xb_welcome.less (on or near line 3636) src/XF/CssRenderException.php:87

Generated by: Unknown account Oct 1, 2020 at 12:52 AM

Stack trace

 3633 |     padding: 15px;
 3634 |     text-align: center;
 3635 |
*3636*|     background: url(https://cdn.mysite.com/data/styles/3/styles/flatawesome/xenforo/sources/welcome-bg-abstract1.png) no-repeat center center @_xf-xbWelcomeNoticeStyle--background-color;
 3637 |     background-size: cover;
 3638 |
 3639 |
------------

#0 src/XF/CssRenderer.php(416): XF\CssRenderException::createFromLessException(Object(Less_Exception_Compiler), 'public:xb_welco...', '// Note that th...')
#1 src/XF/CssRenderer.php(350): XF\CssRenderer->renderToCss('public:xb_welco...', '// Note that th...')
#2 src/XF/CssRenderer.php(258): XF\CssRenderer->renderTemplate('public:xb_welco...', NULL)
#3 src/addons/ThemeHouse/UIX/XF/CssRenderer.php(40): XF\CssRenderer->renderTemplates(Array, Array, Array)
#4 src/XF/CssRenderer.php(116): ThemeHouse\UIX\XF\CssRenderer->renderTemplates(Array, Array, Array)
#5 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#6 css.php(30): XF\CssWriter->run(Array, 4, 1, 'f89a9e3bab1ae15...')
#7 {main}

-------------

Previous Less_Exception_Compiler: variable @_xf-xbWelcomeNoticeStyle--background-color is undefined in file anonymous-file-8938.less in anonymous-file-8938.less - src/vendor/oyejorge/less.php/lib/Less/Tree/Variable.php:49
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(42): Less_Tree_Variable->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(412): Less_Parser->getCss()
#7 src/XF/CssRenderer.php(350): XF\CssRenderer->renderToCss('public:xb_welco...', '// Note that th...')
#8 src/XF/CssRenderer.php(258): XF\CssRenderer->renderTemplate('public:xb_welco...', NULL)
#9 src/addons/ThemeHouse/UIX/XF/CssRenderer.php(40): XF\CssRenderer->renderTemplates(Array, Array, Array)
#10 src/XF/CssRenderer.php(116): ThemeHouse\UIX\XF\CssRenderer->renderTemplates(Array, Array, Array)
#11 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#12 css.php(30): XF\CssWriter->run(Array, 4, 1, 'f89a9e3bab1ae15...')
#13 {main}

Request state

array(4) {
  ["url"] => string(761) "/css.php?css=public%3Aallm_tag_check_post_links_status.less%2Cpublic%3Aaloph_op_ribbon_style.less%2Cpublic%3Abb_code.less%2Cpublic%3AcontentCopyProtection.less%2Cpublic%3AcontentCopyProtection_quote_bbcode_none.less%2Cpublic%3AcontentCopyProtection_url_bbcode.less%2Cpublic%3Adbtech_shop.less%2Cpublic%3Adbtech_shop_postbit.less%2Cpublic%3Amessage.less%2Cpublic%3Anotices.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Asnog_flags.less%2Cpublic%3Astructured_list.less%2Cpublic%3AsvESE_autocomplete.less%2Cpublic%3AsvESE_macros_similar_contents.less%2Cpublic%3Asv_bbcode_spoiler.less%2Cpublic%3Ath_covers.less%2Cpublic%3Ath_uix_threadStarterPost.less%2Cpublic%3Axb_welcome.less%2Cpublic%3Aextra.less&s=4&l=1&d=1588952540&k=f89a9e3bab1ae154aa13fc0d363cac86aee301f9"
  ["referrer"] => bool(false)
  ["_GET"] => array(5) {
    ["css"] => string(606) "public:allm_tag_check_post_links_status.less,public:aloph_op_ribbon_style.less,public:bb_code.less,public:contentCopyProtection.less,public:contentCopyProtection_quote_bbcode_none.less,public:contentCopyProtection_url_bbcode.less,public:dbtech_shop.less,public:dbtech_shop_postbit.less,public:message.less,public:notices.less,public:share_controls.less,public:snog_flags.less,public:structured_list.less,public:svESE_autocomplete.less,public:svESE_macros_similar_contents.less,public:sv_bbcode_spoiler.less,public:th_covers.less,public:th_uix_threadStarterPost.less,public:xb_welcome.less,public:extra.less"
    ["s"] => string(1) "4"
    ["l"] => string(1) "1"
    ["d"] => string(10) "1588952540"
    ["k"] => string(40) "f89a9e3bab1ae154aa13fc0d363cac86aee301f9"
  }
  ["_POST"] => array(0) {
  }
}
 
Your "xbWelcomeNoticeStyle " property may be outdated or you've removed the background color. It needs a background color to work properly. Search for that property in the admin panel and set a background color if there is none. Let me know if that works.
 
Your "xbWelcomeNoticeStyle " property may be outdated or you've removed the background color. It needs a background color to work properly. Search for that property in the admin panel and set a background color if there is none. Let me know if that works.

I have not edited this property and all are default valve. So what can do_

ScreenShot00006.png
 
@Nirjonadda are you still getting this error? I haven't come across this problem on any other sites I've helped upgrade. I'm wondering if this threw while the upgrade was happening.
 
This is fixed with our 2.2.1 updates. It was essentially using "background-image" to call the normal "background" elements.
 
This is fixed with our 2.2.1 updates. It was essentially using "background-image" to call the normal "background" elements.

No, issue still are not fixed with 2.2.1 updates because getting same Server error log and Welcome notice background set to NONE then does not get any error.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back