XF 2.1 Responsive Design Bug?

Brandon K

Active member
  • ErrorException: Error rendering template public:core.less: [E_WARNING] Invalid argument supplied for foreach()
  • src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php:26
Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(26): XF::handlePhpError(2, '[E_WARNING] Inv...', '/home/troykpws/...', 26, Array)
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Media.php(57): Less_Tree_Value->compile(Object(Less_Environment))
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Media->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#5 src/XF/CssRenderer.php(404): Less_Parser->getCss()
#6 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:core.les...', '// Note that th...')
#7 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:core.les...', NULL)
#8 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#9 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#10 css.php(30): XF\CssWriter->run(Array, 50, 1, 'c0a89ce835df076...')
#11 {main}

Request state
array(4) {
["url"] => string(141) "/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=50&l=1&d=1575491285&k=c0a89ce835df0764823f8515b3d79ecde7c34a94"
["referrer"] => string(64) "https://wrestlingsmarks.com/conversations/heads-up.35950/page-15"
["_GET"] => array(5) {
["css"] => string(53) "public:normalize.css,public:core.less,public:app.less"
["s"] => string(2) "50"
["l"] => string(1) "1"
["d"] => string(10) "1575491285"
["k"] => string(40) "c0a89ce835df0764823f8515b3d79ecde7c34a94"
}
["_POST"] => array(0) {
}
}


  • ErrorException: [E_NOTICE] Undefined property: Less_Tree_Operation::$value
  • src/vendor/oyejorge/less.php/lib/Less/Functions.php:663
Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Functions.php(663): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/troykpws/...', 663, Array)
#1 src/vendor/oyejorge/less.php/lib/Less/Functions.php(733): Less_Functions->_minmax(false, Array)
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Call.php(77): Less_Functions->max(Object(Less_Tree_Operation), Object(Less_Tree_Dimension))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Call->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#6 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#7 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#8 src/XF/CssRenderer.php(404): Less_Parser->getCss()
#9 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:th_cover...', '// Note that th...')
#10 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:th_cover...', NULL)
#11 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#12 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#13 css.php(30): XF\CssWriter->run(Array, 50, 1, 'a972263973b116f...')
#14 {main}

Request state
array(4) {
["url"] => string(464) "/css.php?css=public%3Aah_gamerprofiles.less%2Cpublic%3Aalnb_navigation.less%2Cpublic%3Aattachments.less%2Cpublic%3Aeditor.less%2Cpublic%3Akl_em_froala_fullscreen.less%2Cpublic%3Akl_em_froala_image.less%2Cpublic%3Akl_em_froala_special_characters.less%2Cpublic%3Alightbox.less%2Cpublic%3Amessage.less%2Cpublic%3Anotices.less%2Cpublic%3Ath_covers.less%2Cpublic%3Axp_custommenu.css%2Cpublic%3Aextra.less&s=50&l=1&d=1575491285&k=a972263973b116ff66fec7754a3b411ac3fd1648"
["referrer"] => string(64) "https://wrestlingsmarks.com/conversations/heads-up.35950/page-15"
["_GET"] => array(5) {
["css"] => string(336) "public:ah_gamerprofiles.less,public:alnb_navigation.less,public:attachments.less,public:editor.less,public:kl_em_froala_fullscreen.less,public:kl_em_froala_image.less,public:kl_em_froala_special_characters.less,public:lightbox.less,public:message.less,public:notices.less,public:th_covers.less,public:xp_custommenu.css,public:extra.less"
["s"] => string(2) "50"
["l"] => string(1) "1"
["d"] => string(10) "1575491285"
["k"] => string(40) "a972263973b116ff66fec7754a3b411ac3fd1648"
}
["_POST"] => array(0) {
}
}


  • ErrorException: [E_NOTICE] Object of class Less_Tree_Dimension could not be converted to int
  • src/vendor/oyejorge/less.php/lib/Less/Functions.php:27
Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Functions.php(27): XF::handlePhpError(8, '[E_NOTICE] Obje...', '/home/troykpws/...', 27, Array)
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Dimension.php(87): Less_Functions::eek:perate('*', G, Object(Less_Tree_Dimension))
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(48): Less_Tree_Dimension->operate('*', Object(Less_Tree_Paren))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(30): Less_Tree_Operation->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Variable.php(43): Less_Tree_Operation->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(30): Less_Tree_Variable->compile(Object(Less_Environment))
#6 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Operation->compile(Object(Less_Environment))
#7 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Expression->compile(Object(Less_Environment))
#8 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#9 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#10 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#11 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#12 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#13 src/XF/CssRenderer.php(404): Less_Parser->getCss()
#14 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#15 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#16 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#17 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#18 css.php(30): XF\CssWriter->run(Array, 50, 1, 'c0a89ce835df076...')
#19 {main}

Request state
array(4) {
["url"] => string(141) "/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=50&l=1&d=1575491285&k=c0a89ce835df0764823f8515b3d79ecde7c34a94"
["referrer"] => string(64) "https://wrestlingsmarks.com/conversations/heads-up.35950/page-15"
["_GET"] => array(5) {
["css"] => string(53) "public:normalize.css,public:core.less,public:app.less"
["s"] => string(2) "50"
["l"] => string(1) "1"
["d"] => string(10) "1575491285"
["k"] => string(40) "c0a89ce835df0764823f8515b3d79ecde7c34a94"
}
["_POST"] => array(0) {
}
}


  • ErrorException: [E_NOTICE] Undefined property: Less_Tree_Paren::$unit
  • src/vendor/oyejorge/less.php/lib/Less/Tree/Dimension.php:107
Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Dimension.php(107): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/troykpws/...', 107, Array)
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(48): Less_Tree_Dimension->operate('*', Object(Less_Tree_Paren))
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(30): Less_Tree_Operation->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Variable.php(43): Less_Tree_Operation->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(30): Less_Tree_Variable->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Operation->compile(Object(Less_Environment))
#6 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Expression->compile(Object(Less_Environment))
#7 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#8 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#9 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#10 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#11 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#12 src/XF/CssRenderer.php(404): Less_Parser->getCss()
#13 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#14 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#15 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#16 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#17 css.php(30): XF\CssWriter->run(Array, 50, 1, 'c0a89ce835df076...')
#18 {main}

Request state
array(4) {
["url"] => string(141) "/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=50&l=1&d=1575491285&k=c0a89ce835df0764823f8515b3d79ecde7c34a94"
["referrer"] => string(64) "https://wrestlingsmarks.com/conversations/heads-up.35950/page-15"
["_GET"] => array(5) {
["css"] => string(53) "public:normalize.css,public:core.less,public:app.less"
["s"] => string(2) "50"
["l"] => string(1) "1"
["d"] => string(10) "1575491285"
["k"] => string(40) "c0a89ce835df0764823f8515b3d79ecde7c34a94"
}
["_POST"] => array(0) {
}
}


  • ErrorException: [E_NOTICE] Trying to get property 'numerator' of non-object
  • src/vendor/oyejorge/less.php/lib/Less/Tree/Dimension.php:107
Stack trace
#0 src/vendor/oyejorge/less.php/lib/Less/Tree/Dimension.php(107): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/troykpws/...', 107, Array)
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(48): Less_Tree_Dimension->operate('*', Object(Less_Tree_Paren))
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(30): Less_Tree_Operation->compile(Object(Less_Environment))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Variable.php(43): Less_Tree_Operation->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(30): Less_Tree_Variable->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Operation->compile(Object(Less_Environment))
#6 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Expression->compile(Object(Less_Environment))
#7 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#8 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#9 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#10 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#11 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#12 src/XF/CssRenderer.php(404): Less_Parser->getCss()
#13 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#14 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#15 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#16 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#17 css.php(30): XF\CssWriter->run(Array, 50, 1, 'c0a89ce835df076...')
#18 {main}

Request state
array(4) {
["url"] => string(141) "/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=50&l=1&d=1575491285&k=c0a89ce835df0764823f8515b3d79ecde7c34a94"
["referrer"] => string(64) "https://wrestlingsmarks.com/conversations/heads-up.35950/page-15"
["_GET"] => array(5) {
["css"] => string(53) "public:normalize.css,public:core.less,public:app.less"
["s"] => string(2) "50"
["l"] => string(1) "1"
["d"] => string(10) "1575491285"
["k"] => string(40) "c0a89ce835df0764823f8515b3d79ecde7c34a94"
}
["_POST"] => array(0) {
}
}


  • ErrorException: Error rendering template public:app.less: [E_WARNING] array_merge(): Argument #2 is not an array
  • src/vendor/oyejorge/less.php/lib/Less/Tree/Dimension.php:107
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] arr...', '/home/troykpws/...', 107, Array)
#1 src/vendor/oyejorge/less.php/lib/Less/Tree/Dimension.php(107): array_merge(Array, NULL)
#2 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(48): Less_Tree_Dimension->operate('*', Object(Less_Tree_Paren))
#3 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(30): Less_Tree_Operation->compile(Object(Less_Environment))
#4 src/vendor/oyejorge/less.php/lib/Less/Tree/Variable.php(43): Less_Tree_Operation->compile(Object(Less_Environment))
#5 src/vendor/oyejorge/less.php/lib/Less/Tree/Operation.php(30): Less_Tree_Variable->compile(Object(Less_Environment))
#6 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Operation->compile(Object(Less_Environment))
#7 src/vendor/oyejorge/less.php/lib/Less/Tree/Expression.php(52): Less_Tree_Expression->compile(Object(Less_Environment))
#8 src/vendor/oyejorge/less.php/lib/Less/Tree/Value.php(27): Less_Tree_Expression->compile(Object(Less_Environment))
#9 src/vendor/oyejorge/less.php/lib/Less/Tree/Rule.php(75): Less_Tree_Value->compile(Object(Less_Environment))
#10 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Rule->compile(Object(Less_Environment))
#11 src/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php(94): Less_Tree_Ruleset->compile(Object(Less_Environment))
#12 src/vendor/oyejorge/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Object(Less_Environment))
#13 src/XF/CssRenderer.php(404): Less_Parser->getCss()
#14 src/XF/CssRenderer.php(342): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#15 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#16 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#17 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#18 css.php(30): XF\CssWriter->run(Array, 50, 1, 'c0a89ce835df076...')
#19 {main}

Request state
array(4) {
["url"] => string(141) "/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=50&l=1&d=1575491285&k=c0a89ce835df0764823f8515b3d79ecde7c34a94"
["referrer"] => string(64) "https://wrestlingsmarks.com/conversations/heads-up.35950/page-15"
["_GET"] => array(5) {
["css"] => string(53) "public:normalize.css,public:core.less,public:app.less"
["s"] => string(2) "50"
["l"] => string(1) "1"
["d"] => string(10) "1575491285"
["k"] => string(40) "c0a89ce835df0764823f8515b3d79ecde7c34a94"
}
["_POST"] => array(0) {
}
}

I've been getting these errors over the last hour and it's caused my site to become squished like this:
468749e2074d85e04a9f1a136ea3afabe983901d.png

The container seems to be squished to the left and there's all this empty space now on the right.

Anyway to fix this?

Edit: affected version is v2.1.4.
 
This kind of thing may be related to the specific style you are using.

We would strongly recommend testing it with another style, particularly with the XF default style if possible.
 
Back
Top Bottom