gantry5
gantry5 copied to clipboard
wordpress update theme error
Hi, I have tried to update helium theme 5.4 from 5.3 and I got this error.
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'helium.scss' failed on error: Incompatible units rem and %.: wp-content/themes/g5_helium/scss/helium/sections/_offcanvas.scss on line 35, at column 3 Call Stack: #0 import wp-content/themes/g5_helium/scss/helium/sections/_offcanvas.scss wp-content/themes/g5_helium/scss/helium.scss on line 92 #1 import wp-content/themes/g5_helium/scss/helium.scss (unknown file) on line 2")."
Stacktrace: #54 Twig\Error\RuntimeError in /var/www/html/wp-content/plugins/gantry5/engines/nucleus/views/partials/page.html.twig:12 #53 RuntimeException in /var/www/html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php:192 #52 ScssPhp\ScssPhp\Exception\CompilerException in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:573 #51 ScssPhp\ScssPhp\Exception\SassScriptException in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php:657 #50 ScssPhp\ScssPhp\Node\Number:valueInUnits in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php:611 #49 ScssPhp\ScssPhp\Node\Number:coerceUnits in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php:588 #48 ScssPhp\ScssPhp\Node\Number:coerceNumber in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php:435 #47 ScssPhp\ScssPhp\Node\Number:minus in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:4051 #46 ScssPhp\ScssPhp\Compiler:opSubNumberNumber in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:3548 #45 ScssPhp\ScssPhp\Compiler:reduce in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:3066 #44 ScssPhp\ScssPhp\Compiler:compileChild in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2378 #43 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:1930 #42 ScssPhp\ScssPhp\Compiler:compileBlock in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2931 #41 ScssPhp\ScssPhp\Compiler:compileChild in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2378 #40 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:1930 #39 ScssPhp\ScssPhp\Compiler:compileBlock in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2931 #38 ScssPhp\ScssPhp\Compiler:compileChild in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2378 #37 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:5747 #36 ScssPhp\ScssPhp\Compiler:importFile in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2703 #35 ScssPhp\ScssPhp\Compiler:compileImport in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2915 #34 ScssPhp\ScssPhp\Compiler:compileChild in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2378 #33 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:5747 #32 ScssPhp\ScssPhp\Compiler:importFile in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2703 #31 ScssPhp\ScssPhp\Compiler:compileImport in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2915 #30 ScssPhp\ScssPhp\Compiler:compileChild in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2378 #29 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:744 #28 ScssPhp\ScssPhp\Compiler:compileRoot in /var/www/html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:522 #27 ScssPhp\ScssPhp\Compiler:compileString in /var/www/html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php:181 #26 Gantry\Component\Stylesheet\ScssCompiler:compileFile in /var/www/html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:271 #25 Gantry\Framework\Theme:css in /var/www/html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Content/Block/HtmlBlock.php:86 #24 Gantry\Component\Content\Block\HtmlBlock:getStyles in /var/www/html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Document.php:57 #23 Gantry\Framework\Document:registerStyles in /var/www/html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Document.php:50 #22 Gantry\Framework\Document:registerAssets in /var/www/html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Base/Platform.php:277 #21 Gantry\Framework\Base\Platform:finalize in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:700 #20 Twig\Template:getAttribute in /var/www/html/wp-content/cache/gantry5/g5_helium/twig/20/20f28f015b70f50480faff335eeb60097683d8725de35b6f9c99951bfa17aa05.php:63 #19 __TwigTemplate_9635a60d93a1ca7b2f16638b13e8adbe8826da9f8fb8c4452220d7728afff216:block_page_footer in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:214 #18 Twig\Template:displayBlock in /var/www/html/wp-content/cache/gantry5/g5_helium/twig/27/27cbb50a365abb7a8f31fadb17ebca8532cf2397ed16a854944d25d85bcaec9a.php:150 #17 __TwigTemplate_c04885d7a5a7c022cb416cea42e04d27d2425b2e7373240c6c10ec3b4d693609:doDisplay in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #16 Twig\Template:displayWithErrorHandling in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #15 Twig\Template:display in /var/www/html/wp-content/cache/gantry5/g5_helium/twig/20/20f28f015b70f50480faff335eeb60097683d8725de35b6f9c99951bfa17aa05.php:36 #14 __TwigTemplate_9635a60d93a1ca7b2f16638b13e8adbe8826da9f8fb8c4452220d7728afff216:doDisplay in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #13 Twig\Template:displayWithErrorHandling in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #12 Twig\Template:display in /var/www/html/wp-content/cache/gantry5/g5_helium/twig/ec/ec0b71882acfb6378db412aecdda8ffbecb5b85d2da8f43f5d65fc7edc009fac.php:40 #11 __TwigTemplate_be642cfa3a19bea6573bdd2d164d963d8463e3d1ad367ffd66653c01f9943a9c:doDisplay in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #10 Twig\Template:displayWithErrorHandling in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #9 Twig\Template:display in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:432 #8 Twig\Template:render in /var/www/html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #7 Twig\TemplateWrapper:render in /var/www/html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Loader.php:79 #6 Timber\Loader:render in /var/www/html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:334 #5 Timber\Timber:compile in /var/www/html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:383 #4 Timber\Timber:fetch in /var/www/html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:410 #3 Timber\Timber:render in /var/www/html/wp-content/themes/g5_helium/page.php:46 #2 include in /var/www/html/wp-includes/template-loader.php:106 #1 require_once in /var/www/html/wp-blog-header.php:19 #0 require in /var/www/html/index.php:17
Please also update the theme and clear cache from Gantry admin.