I replaced this and got the below error?
width: {xen:calc 'intval(@sidebar.width) - 20'}px;
height: 120px;
View attachment 148298
I do not know what you mean?Try to find and remove any instances of "intval" that you find in that template (You can leave the parenthesis in place)
Can you send me a PM with admin details? I can take a look. Just edited my post with more detail on the issue as wellI do not know what you mean?
I would just replace @sidebar.width to whatever that value is set to for now.
not sure what you mean?I would just replace @sidebar.width to whatever that value is set to for now.
Put 100not sure what you mean?
what should I replace it with?
Hmmm just changechanged to 100
An exception occurred: addm.css - Line 30: Invalid math expression in /******/******/public_html/******. com/forums/library/XenForo/Template/Compiler.php on line 991
- XenForo_Template_Compiler->getNewCompilerException() in XenForo/Template/Compiler/Function/Calc.php at line 189
- XenForo_Template_Compiler_Function_Calc->_parseMathExpression() in XenForo/Template/Compiler/Function/Calc.php at line 55
- XenForo_Template_Compiler_Function_Calc->compile() in XenForo/Template/Compiler.php at line 700
- XenForo_Template_Compiler->compileFunction() in XenForo/Template/Compiler.php at line 576
- XenForo_Template_Compiler->compileSegment() in XenForo/Template/Compiler.php at line 509
- XenForo_Template_Compiler->compileSegments() in XenForo/Template/Compiler.php at line 372
- XenForo_Template_Compiler->compileParsed() in XenForo/Model/Template.php at line 1601
- XenForo_Model_Template->compileAndInsertParsedTemplate() in XenForo/Model/Template.php at line 1379
- XenForo_Model_Template->compileTemplateInStyleTree() in XenForo/Model/Template.php at line 1329
- XenForo_Model_Template->compileNamedTemplateInStyleTree() in XenForo/Model/Template.php at line 1268
- XenForo_Model_Template->compileAllTemplates() in XenForo/Deferred/Template.php at line 36
- XenForo_Deferred_Template->execute() in XenForo/Deferred/Atomic.php at line 66
- XenForo_Deferred_Atomic->execute() in XenForo/Model/Deferred.php at line 295
- XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
- XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
- XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
- XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 130
- XenForo_ViewRenderer_HtmlAdmin->renderContainer() in XenForo/FrontController.php at line 637
- XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
- XenForo_FrontController->run() in /******/******/public_html/******. com/forums/admin.php at line 13
And if you search addm.css for xen:calc it's no longer within the template?Changed to this
.donationCampaign .campaignIconSidebar .avatar.donationCampaignImage{
width: 100px;
height: 120px;
An exception occurred: addm.css - Line 30: Invalid math expression in /****** /******/public_html/******. com/forums/library/XenForo/Template/Compiler.php on line 991
- XenForo_Template_Compiler->getNewCompilerException() in XenForo/Template/Compiler/Function/Calc.php at line 189
- XenForo_Template_Compiler_Function_Calc->_parseMathExpression() in XenForo/Template/Compiler/Function/Calc.php at line 55
- XenForo_Template_Compiler_Function_Calc->compile() in XenForo/Template/Compiler.php at line 700
- XenForo_Template_Compiler->compileFunction() in XenForo/Template/Compiler.php at line 576
- XenForo_Template_Compiler->compileSegment() in XenForo/Template/Compiler.php at line 509
- XenForo_Template_Compiler->compileSegments() in XenForo/Template/Compiler.php at line 372
- XenForo_Template_Compiler->compileParsed() in XenForo/Model/Template.php at line 1601
- XenForo_Model_Template->compileAndInsertParsedTemplate() in XenForo/Model/Template.php at line 1379
- XenForo_Model_Template->compileTemplateInStyleTree() in XenForo/Model/Template.php at line 1329
- XenForo_Model_Template->compileNamedTemplateInStyleTree() in XenForo/Model/Template.php at line 1268
- XenForo_Model_Template->compileAllTemplates() in XenForo/Deferred/Template.php at line 36
- XenForo_Deferred_Template->execute() in XenForo/Deferred/Atomic.php at line 66
- XenForo_Deferred_Atomic->execute() in XenForo/Model/Deferred.php at line 295
- XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
- XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
- XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
- XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 130
- XenForo_ViewRenderer_HtmlAdmin->renderContainer() in XenForo/FrontController.php at line 637
- XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
- XenForo_FrontController->run() in /****** /****** /public_html/******. com/forums/admin.php at line 13
Just change `{xen:calc '(@sidebar.width) - 20'}px;` to `120px`.it is here:
}
.donationCampaign .campaignIconSidebar .avatar.donationCampaignImage img {
max-width: {xen:calc '(@sidebar.width) - 20'}px;
max-height: 120px;
}
Should I also change it to this?
width: 100px;
height: 120px;
Try to find and remove any instances of "intval" that you find in that template (You can leave the parenthesis in place)
I wish there was a nicer way we could fix this, it's sort of a catch-22, if we don't distribute it with the intval in place people get warnings in PHP 7.1, and if we do have it people get errors in XenForo 1.5.8 and below, the best case fix would be to upgrade XenForo to at least 1.5.9, or if The XF developers released a patch that could be applied to lower versions to add support for this function.
We use essential cookies to make this site work, and optional cookies to enhance your experience.