Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'requiem.scss' failed on error: Incompatible units rem and %.: wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss on line 36, at column 3 Call Stack: #0 import wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss wp-content/themes/rt_requiem/scss/requiem.scss on line 90 #1 import wp-content/themes/rt_requiem/scss/requiem.scss (unknown file) on line 2").
Previous exceptions
  • ERROR: CSS Compilation on file 'requiem.scss' failed on error: Incompatible units rem and %.: wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss on line 36, at column 3 Call Stack: #0 import wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss wp-content/themes/rt_requiem/scss/requiem.scss on line 90 #1 import wp-content/themes/rt_requiem/scss/requiem.scss (unknown file) on line 2 (500)
  • Incompatible units rem and %.: wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss on line 36, at column 3 Call Stack: #0 import wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss wp-content/themes/rt_requiem/scss/requiem.scss on line 90 #1 import wp-content/themes/rt_requiem/scss/requiem.scss (unknown file) on line 2 (0)
  • Incompatible units rem and %. (0)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("ERROR: CSS Compilation on file 'requiem.scss' failed on error: Incompatible units rem and %.: wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss on line 36, at column 3 Call Stack: #0 import wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss wp-content/themes/rt_requiem/scss/requiem.scss on line 90 #1 import wp-content/themes/rt_requiem/scss/requiem.scss (unknown file) on line 2")." Stacktrace: #58 Twig\Error\RuntimeError in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/engines/nucleus/views/partials/page.html.twig:12 #57 RuntimeException in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php:192 #56 ScssPhp\ScssPhp\Exception\CompilerException in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:573 #55 ScssPhp\ScssPhp\Exception\SassScriptException in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php:687 #54 ScssPhp\ScssPhp\Node\Number:valueInUnits in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php:641 #53 ScssPhp\ScssPhp\Node\Number:coerceUnits in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php:618 #52 ScssPhp\ScssPhp\Node\Number:coerceNumber in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Node/Number.php:463 #51 ScssPhp\ScssPhp\Node\Number:minus in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:4061 #50 ScssPhp\ScssPhp\Compiler:opSubNumberNumber in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:3558 #49 ScssPhp\ScssPhp\Compiler:reduce in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:3076 #48 ScssPhp\ScssPhp\Compiler:compileChild in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2388 #47 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:1931 #46 ScssPhp\ScssPhp\Compiler:compileBlock in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2941 #45 ScssPhp\ScssPhp\Compiler:compileChild in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2388 #44 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:1931 #43 ScssPhp\ScssPhp\Compiler:compileBlock in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2941 #42 ScssPhp\ScssPhp\Compiler:compileChild in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2388 #41 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:5759 #40 ScssPhp\ScssPhp\Compiler:importFile in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2713 #39 ScssPhp\ScssPhp\Compiler:compileImport in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2925 #38 ScssPhp\ScssPhp\Compiler:compileChild in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2388 #37 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:5759 #36 ScssPhp\ScssPhp\Compiler:importFile in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2713 #35 ScssPhp\ScssPhp\Compiler:compileImport in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2925 #34 ScssPhp\ScssPhp\Compiler:compileChild in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:2388 #33 ScssPhp\ScssPhp\Compiler:compileChildrenNoReturn in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:744 #32 ScssPhp\ScssPhp\Compiler:compileRoot in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/scssphp/scssphp/src/Compiler.php:522 #31 ScssPhp\ScssPhp\Compiler:compileString in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php:181 #30 Gantry\Component\Stylesheet\ScssCompiler:compileFile in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:271 #29 Gantry\Framework\Theme:css in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Content/Block/HtmlBlock.php:86 #28 Gantry\Component\Content\Block\HtmlBlock:getStyles in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Document.php:57 #27 Gantry\Framework\Document:registerStyles in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Document.php:50 #26 Gantry\Framework\Document:registerAssets in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Base/Platform.php:277 #25 Gantry\Framework\Base\Platform:finalize in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:700 #24 Twig\Template:getAttribute in /home/ahlx5bjji/public_html/wp-content/cache/gantry5/rt_requiem/twig/cf/cf54afc82577df423067e7995f3684389a5c26ffacd4584bb0b941c7a3af01d5.php:63 #23 __TwigTemplate_e2d62c4578f1cf12654af34605c4b81bf5abae4ddc1f34e946080d98700f5784:block_page_footer in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:214 #22 Twig\Template:displayBlock in /home/ahlx5bjji/public_html/wp-content/cache/gantry5/rt_requiem/twig/45/45db7f3fd71f68e99d614ce602f1602e03ae229d919e94c56f51bc51d412d7f7.php:152 #21 __TwigTemplate_9dedc74a9070e37417c020c0491a84bfc0b1a0d0b7f2d59c5f5c9317dc127f62:doDisplay in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #20 Twig\Template:displayWithErrorHandling in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #19 Twig\Template:display in /home/ahlx5bjji/public_html/wp-content/cache/gantry5/rt_requiem/twig/cf/cf54afc82577df423067e7995f3684389a5c26ffacd4584bb0b941c7a3af01d5.php:36 #18 __TwigTemplate_e2d62c4578f1cf12654af34605c4b81bf5abae4ddc1f34e946080d98700f5784:doDisplay in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #17 Twig\Template:displayWithErrorHandling in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #16 Twig\Template:display in /home/ahlx5bjji/public_html/wp-content/cache/gantry5/rt_requiem/twig/c3/c3f5c782ba449e331b3dd400fa3c91f3501814d45aaba75701beec6cdf97f7e7.php:38 #15 __TwigTemplate_cf9b0a71a2292303948f9b37ae24dc8d2823d56fff794101698303d8149325bd:doDisplay in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #14 Twig\Template:displayWithErrorHandling in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #13 Twig\Template:display in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:432 #12 Twig\Template:render in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #11 Twig\TemplateWrapper:render in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Loader.php:79 #10 Timber\Loader:render in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:334 #9 Timber\Timber:compile in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:383 #8 Timber\Timber:fetch in /home/ahlx5bjji/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:410 #7 Timber\Timber:render in /home/ahlx5bjji/public_html/wp-content/themes/rt_requiem/footer.php:30 #6 require_once in /home/ahlx5bjji/public_html/wp-includes/template.php:810 #5 load_template in /home/ahlx5bjji/public_html/wp-includes/template.php:745 #4 locate_template in /home/ahlx5bjji/public_html/wp-includes/general-template.php:92 #3 get_footer in /home/ahlx5bjji/public_html/wp-content/plugins/woocommerce/templates/single-product.php:60 #2 include in /home/ahlx5bjji/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/ahlx5bjji/public_html/wp-blog-header.php:19 #0 require in /home/ahlx5bjji/public_html/index.php:17
Stack frames (59)
58
Twig\Error\RuntimeError
/engines/nucleus/views/partials/page.html.twig12
57
RuntimeException
/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php192
56
ScssPhp\ScssPhp\Exception\CompilerException
/compat/vendor/scssphp/scssphp/src/Compiler.php573
55
ScssPhp\ScssPhp\Exception\SassScriptException
/compat/vendor/scssphp/scssphp/src/Node/Number.php687
54
ScssPhp\ScssPhp\Node\Number valueInUnits
/compat/vendor/scssphp/scssphp/src/Node/Number.php641
53
ScssPhp\ScssPhp\Node\Number coerceUnits
/compat/vendor/scssphp/scssphp/src/Node/Number.php618
52
ScssPhp\ScssPhp\Node\Number coerceNumber
/compat/vendor/scssphp/scssphp/src/Node/Number.php463
51
ScssPhp\ScssPhp\Node\Number minus
/compat/vendor/scssphp/scssphp/src/Compiler.php4061
50
ScssPhp\ScssPhp\Compiler opSubNumberNumber
/compat/vendor/scssphp/scssphp/src/Compiler.php3558
49
ScssPhp\ScssPhp\Compiler reduce
/compat/vendor/scssphp/scssphp/src/Compiler.php3076
48
ScssPhp\ScssPhp\Compiler compileChild
/compat/vendor/scssphp/scssphp/src/Compiler.php2388
47
ScssPhp\ScssPhp\Compiler compileChildrenNoReturn
/compat/vendor/scssphp/scssphp/src/Compiler.php1931
46
ScssPhp\ScssPhp\Compiler compileBlock
/compat/vendor/scssphp/scssphp/src/Compiler.php2941
45
ScssPhp\ScssPhp\Compiler compileChild
/compat/vendor/scssphp/scssphp/src/Compiler.php2388
44
ScssPhp\ScssPhp\Compiler compileChildrenNoReturn
/compat/vendor/scssphp/scssphp/src/Compiler.php1931
43
ScssPhp\ScssPhp\Compiler compileBlock
/compat/vendor/scssphp/scssphp/src/Compiler.php2941
42
ScssPhp\ScssPhp\Compiler compileChild
/compat/vendor/scssphp/scssphp/src/Compiler.php2388
41
ScssPhp\ScssPhp\Compiler compileChildrenNoReturn
/compat/vendor/scssphp/scssphp/src/Compiler.php5759
40
ScssPhp\ScssPhp\Compiler importFile
/compat/vendor/scssphp/scssphp/src/Compiler.php2713
39
ScssPhp\ScssPhp\Compiler compileImport
/compat/vendor/scssphp/scssphp/src/Compiler.php2925
38
ScssPhp\ScssPhp\Compiler compileChild
/compat/vendor/scssphp/scssphp/src/Compiler.php2388
37
ScssPhp\ScssPhp\Compiler compileChildrenNoReturn
/compat/vendor/scssphp/scssphp/src/Compiler.php5759
36
ScssPhp\ScssPhp\Compiler importFile
/compat/vendor/scssphp/scssphp/src/Compiler.php2713
35
ScssPhp\ScssPhp\Compiler compileImport
/compat/vendor/scssphp/scssphp/src/Compiler.php2925
34
ScssPhp\ScssPhp\Compiler compileChild
/compat/vendor/scssphp/scssphp/src/Compiler.php2388
33
ScssPhp\ScssPhp\Compiler compileChildrenNoReturn
/compat/vendor/scssphp/scssphp/src/Compiler.php744
32
ScssPhp\ScssPhp\Compiler compileRoot
/compat/vendor/scssphp/scssphp/src/Compiler.php522
31
ScssPhp\ScssPhp\Compiler compileString
/src/classes/Gantry/Component/Stylesheet/ScssCompiler.php181
30
Gantry\Component\Stylesheet\ScssCompiler compileFile
/src/classes/Gantry/Component/Theme/ThemeTrait.php271
29
Gantry\Framework\Theme css
/src/classes/Gantry/Component/Content/Block/HtmlBlock.php86
28
Gantry\Component\Content\Block\HtmlBlock getStyles
/src/classes/Gantry/Framework/Document.php57
27
Gantry\Framework\Document registerStyles
/src/classes/Gantry/Framework/Document.php50
26
Gantry\Framework\Document registerAssets
/src/classes/Gantry/Framework/Base/Platform.php277
25
Gantry\Framework\Base\Platform finalize
/compat/vendor/twig/twig/src/Template.php700
24
Twig\Template getAttribute
/home/ahlx5bjji/public_html/wp-content/cache/gantry5/rt_requiem/twig/cf/cf54afc82577df423067e7995f3684389a5c26ffacd4584bb0b941c7a3af01d5.php63
23
__TwigTemplate_e2d62c4578f1cf12654af34605c4b81bf5abae4ddc1f34e946080d98700f5784 block_page_footer
/compat/vendor/twig/twig/src/Template.php214
22
Twig\Template displayBlock
/home/ahlx5bjji/public_html/wp-content/cache/gantry5/rt_requiem/twig/45/45db7f3fd71f68e99d614ce602f1602e03ae229d919e94c56f51bc51d412d7f7.php152
21
__TwigTemplate_9dedc74a9070e37417c020c0491a84bfc0b1a0d0b7f2d59c5f5c9317dc127f62 doDisplay
/compat/vendor/twig/twig/src/Template.php453
20
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
19
Twig\Template display
/home/ahlx5bjji/public_html/wp-content/cache/gantry5/rt_requiem/twig/cf/cf54afc82577df423067e7995f3684389a5c26ffacd4584bb0b941c7a3af01d5.php36
18
__TwigTemplate_e2d62c4578f1cf12654af34605c4b81bf5abae4ddc1f34e946080d98700f5784 doDisplay
/compat/vendor/twig/twig/src/Template.php453
17
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
16
Twig\Template display
/home/ahlx5bjji/public_html/wp-content/cache/gantry5/rt_requiem/twig/c3/c3f5c782ba449e331b3dd400fa3c91f3501814d45aaba75701beec6cdf97f7e7.php38
15
__TwigTemplate_cf9b0a71a2292303948f9b37ae24dc8d2823d56fff794101698303d8149325bd doDisplay
/compat/vendor/twig/twig/src/Template.php453
14
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
13
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
12
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
11
Twig\TemplateWrapper render
/vendor/timber/timber/lib/Loader.php79
10
Timber\Loader render
/vendor/timber/timber/lib/Timber.php334
9
Timber\Timber compile
/vendor/timber/timber/lib/Timber.php383
8
Timber\Timber fetch
/vendor/timber/timber/lib/Timber.php410
7
Timber\Timber render
/home/ahlx5bjji/public_html/wp-content/themes/rt_requiem/footer.php30
6
require_once
/home/ahlx5bjji/public_html/wp-includes/template.php810
5
load_template
/home/ahlx5bjji/public_html/wp-includes/template.php745
4
locate_template
/home/ahlx5bjji/public_html/wp-includes/general-template.php92
3
get_footer
/home/ahlx5bjji/public_html/wp-content/plugins/woocommerce/templates/single-product.php60
2
include
/home/ahlx5bjji/public_html/wp-includes/template-loader.php106
1
require_once
/home/ahlx5bjji/public_html/wp-blog-header.php19
0
require
/home/ahlx5bjji/public_html/index.php17
{% extends "@nucleus/page.html.twig" %}
 
{% block page_head -%}
    {% if page_head %}
        {{ page_head|raw }}
    {% else %}
        {{ parent() }}
    {% endif %}
{%- endblock %}
 
{% block page_footer %}
    {% do gantry.platform.finalize() %}
    {{ wp_footer|raw }}
{% endblock %}
 
        // Set the lookup paths.
        $this->functions->setBasePath($path);
        $compiler->setImportPaths([[$this, 'findImport']]);
 
        // Run the compiler.
        $compiler->addVariables($this->getVariables(true));
        $scss = '$output-bourbon-deprecation-warnings: false;' . "\n" . '@import "' . $in . '.scss"';
        try {
            $this->result = $compiler->compileString($scss);
            $css = $this->result->getCss();
        } catch (CompilerException $e) {
            if (version_compare(static::$options['compatibility'], '5.5', '<')) {
                static::$options['legacy'][$in] = true;
                $this->warnings['__TITLE__'] = 'Please update your theme!';
                $this->warnings[$in] = ['WARNING: ' . $e->getMessage()];
 
                return $this->compileLegacyFile($in);
            }
 
            throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on error: {$e->getMessage()}", 500, $e);
        } catch (\Exception $e) {
            throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on fatal error: {$e->getMessage()}", 500, $e);
        }
        if (strpos($css, $scss) === 0) {
            $css = '/* ' . $scss . ' */';
        }
 
        // Extract map from css and save it as separate file.
        $pos = strrpos($css, '/*# sourceMappingURL=');
        if ($pos !== false) {
            $map = json_decode(urldecode(substr($css, $pos + 43, -3)), true);
 
            /** @var Document $document */
            $document = $gantry['document'];
 
            foreach ($map['sources'] as &$source) {
                $source = $document::url($source, false, -1);
            }
            unset($source);
 
Exception message: ERROR: CSS Compilation on file 'requiem.scss' failed on error: Incompatible units rem and %.: wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss on line 36, at column 3 Call Stack: #0 import wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss wp-content/themes/rt_requiem/scss/requiem.scss on line 90 #1 import wp-content/themes/rt_requiem/scss/requiem.scss (unknown file) on line 2
                $sourceMapUrl = null;
 
                switch ($this->sourceMap) {
                    case self::SOURCE_MAP_INLINE:
                        $sourceMapUrl = sprintf('data:application/json,%s', Util::encodeURIComponent($sourceMap));
                        break;
 
                    case self::SOURCE_MAP_FILE:
                        if (isset($this->sourceMapOptions['sourceMapURL'])) {
                            $sourceMapUrl = $this->sourceMapOptions['sourceMapURL'];
                        }
                        break;
                }
 
                if ($sourceMapUrl !== null) {
                    $out .= sprintf('/*# sourceMappingURL=%s */', $sourceMapUrl);
                }
            }
        } catch (SassScriptException $e) {
            throw new CompilerException($this->addLocationToMessage($e->getMessage()), 0, $e);
        }
 
        $includedFiles = [];
 
        foreach ($this->resolvedImports as $resolvedImport) {
            $includedFiles[$resolvedImport['filePath']] = $resolvedImport['filePath'];
        }
 
        $result = new CompilationResult($out, $sourceMap, array_values($includedFiles));
 
        if ($this->cache && isset($cacheKey) && isset($compileOptions)) {
            $this->cache->setCache('compile', $cacheKey, new CachedResult($result, $this->parsedFiles, $this->resolvedImports), $compileOptions);
        }
 
        // Reset state to free memory
        // TODO in 2.0, reset parsedFiles as well when the getter is removed.
        $this->resolvedImports = [];
        $this->importedFiles = [];
 
        return $result;
Exception message: Incompatible units rem and %.: wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss on line 36, at column 3 Call Stack: #0 import wp-content/themes/rt_requiem/scss/requiem/_offcanvas.scss wp-content/themes/rt_requiem/scss/requiem.scss on line 90 #1 import wp-content/themes/rt_requiem/scss/requiem.scss (unknown file) on line 2
            return $this->dimension;
        }
 
        $value = $this->dimension;
        $oldNumerators = $this->numeratorUnits;
 
        foreach ($numeratorUnits as $newNumerator) {
            foreach ($oldNumerators as $key => $oldNumerator) {
                $conversionFactor = self::getConversionFactor($newNumerator, $oldNumerator);
 
                if (\is_null($conversionFactor)) {
                    continue;
                }
 
                $value *= $conversionFactor;
                unset($oldNumerators[$key]);
                continue 2;
            }
 
            throw new SassScriptException(sprintf(
                'Incompatible units %s and %s.',
                self::getUnitString($this->numeratorUnits, $this->denominatorUnits),
                self::getUnitString($numeratorUnits, $denominatorUnits)
            ));
        }
 
        $oldDenominators = $this->denominatorUnits;
 
        foreach ($denominatorUnits as $newDenominator) {
            foreach ($oldDenominators as $key => $oldDenominator) {
                $conversionFactor = self::getConversionFactor($newDenominator, $oldDenominator);
 
                if (\is_null($conversionFactor)) {
                    continue;
                }
 
                $value /= $conversionFactor;
                unset($oldDenominators[$key]);
                continue 2;
            }
Exception message: Incompatible units rem and %.
        }
 
        return new Number($result, $other->numeratorUnits, $other->denominatorUnits);
    }
 
    /**
     * @param Number $other
     * @param callable $operation
     *
     * @return mixed
     *
     * @phpstan-template T
     * @phpstan-param callable(int|float, int|float): T $operation
     * @phpstan-return T
     */
    private function coerceUnits(Number $other, $operation)
    {
        if (!$this->unitless()) {
            $num1 = $this->dimension;
            $num2 = $other->valueInUnits($this->numeratorUnits, $this->denominatorUnits);
        } else {
            $num1 = $this->valueInUnits($other->numeratorUnits, $other->denominatorUnits);
            $num2 = $other->dimension;
        }
 
        return \call_user_func($operation, $num1, $num2);
    }
 
    /**
     * @param string[] $numeratorUnits
     * @param string[] $denominatorUnits
     *
     * @return int|float
     *
     * @phpstan-param list<string> $numeratorUnits
     * @phpstan-param list<string> $denominatorUnits
     *
     * @throws SassScriptException if this number's units are not compatible with $numeratorUnits and $denominatorUnits
     */
    private function valueInUnits(array $numeratorUnits, array $denominatorUnits)
 
    /**
     * {@inheritdoc}
     */
    public function __toString()
    {
        return $this->output();
    }
 
    /**
     * @param Number   $other
     * @param callable $operation
     *
     * @return Number
     *
     * @phpstan-param callable(int|float, int|float): (int|float) $operation
     */
    private function coerceNumber(Number $other, $operation)
    {
        $result = $this->coerceUnits($other, $operation);
 
        if (!$this->unitless()) {
            return new Number($result, $this->numeratorUnits, $this->denominatorUnits);
        }
 
        return new Number($result, $other->numeratorUnits, $other->denominatorUnits);
    }
 
    /**
     * @param Number $other
     * @param callable $operation
     *
     * @return mixed
     *
     * @phpstan-template T
     * @phpstan-param callable(int|float, int|float): T $operation
     * @phpstan-return T
     */
    private function coerceUnits(Number $other, $operation)
    {
    /**
     * @param Number $other
     *
     * @return Number
     */
    public function plus(Number $other)
    {
        return $this->coerceNumber($other, function ($num1, $num2) {
            return $num1 + $num2;
        });
    }
 
    /**
     * @param Number $other
     *
     * @return Number
     */
    public function minus(Number $other)
    {
        return $this->coerceNumber($other, function ($num1, $num2) {
            return $num1 - $num2;
        });
    }
 
    /**
     * @return Number
     */
    public function unaryMinus()
    {
        return new Number(-$this->dimension, $this->numeratorUnits, $this->denominatorUnits);
    }
 
    /**
     * @param Number $other
     *
     * @return Number
     */
    public function modulo(Number $other)
    {
        return $this->coerceNumber($other, function ($num1, $num2) {
     * @param Number $right
     *
     * @return Number
     */
    protected function opMulNumberNumber(Number $left, Number $right)
    {
        return $left->times($right);
    }
 
    /**
     * Subtract numbers
     *
     * @param Number $left
     * @param Number $right
     *
     * @return Number
     */
    protected function opSubNumberNumber(Number $left, Number $right)
    {
        return $left->minus($right);
    }
 
    /**
     * Divide numbers
     *
     * @param Number $left
     * @param Number $right
     *
     * @return Number
     */
    protected function opDivNumberNumber(Number $left, Number $right)
    {
        return $left->dividedBy($right);
    }
 
    /**
     * Mod numbers
     *
     * @param Number $left
     * @param Number $right
                    return $this->expToString($value);
                }
 
                $left  = $this->coerceForExpression($left);
                $right = $this->coerceForExpression($right);
                $ltype = $left[0];
                $rtype = $right[0];
 
                $ucOpName = ucfirst($opName);
                $ucLType  = ucfirst($ltype);
                $ucRType  = ucfirst($rtype);
 
                $shouldEval = $inParens || $inExp;
 
                // this tries:
                // 1. op[op name][left type][right type]
                // 2. op[left type][right type] (passing the op as first arg)
                // 3. op[op name]
                if (\is_callable([$this, $fn = "op{$ucOpName}{$ucLType}{$ucRType}"])) {
                    $out = $this->$fn($left, $right, $shouldEval);
                } elseif (\is_callable([$this, $fn = "op{$ucLType}{$ucRType}"])) {
                    $out = $this->$fn($op, $left, $right, $shouldEval);
                } elseif (\is_callable([$this, $fn = "op{$ucOpName}"])) {
                    $out = $this->$fn($left, $right, $shouldEval);
                } else {
                    $out = null;
                }
 
                if (isset($out)) {
                    return $out;
                }
 
                return $this->expToString($value);
 
            case Type::T_UNARY:
                list(, $op, $exp, $inParens) = $value;
 
                $inExp = $inExp || $this->shouldEval($exp);
                $exp = $this->reduce($exp);
 
                                            if ($divider instanceof Number && \intval($divider->getDimension()) && $divider->unitless()) {
                                                $revert = false;
                                            }
                                        }
                                    }
 
                                    if ($revert) {
                                        $item = $this->expToString($item);
                                        $maxShorthandDividers--;
                                    }
                                }
                            }
                        }
                    }
                }
 
                // if the value reduces to null from something else then
                // the property should be discarded
                if ($value[0] !== Type::T_NULL) {
                    $value = $this->reduce($value);
 
                    if ($value[0] === Type::T_NULL || $value === static::$nullString) {
                        break;
                    }
                }
 
                $compiledValue = $this->compileValue($value);
 
                // ignore empty value
                if (\strlen($compiledValue)) {
                    $line = $this->formatter->property(
                        $compiledName,
                        $compiledValue
                    );
                    $this->appendOutputLine($out, Type::T_ASSIGN, $line);
                }
                break;
 
            case Type::T_COMMENT:
                if ($out->type === Type::T_ROOT) {
     *
     * @return void
     *
     * @throws \Exception
     */
    protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
    {
        $this->pushCallStack($traceName);
 
        foreach ($stms as $stm) {
            if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
                $oldSelfParent = $stm[1]->selfParent;
                $stm[1]->selfParent = $selfParent;
                $ret = $this->compileChild($stm, $out);
                $stm[1]->selfParent = $oldSelfParent;
            } elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                throw $this->error('@return may only be used within a function');
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure unchanged
     *
     * @param array $queryList
     *
     * @return array
     */
    protected function evaluateMediaQuery($queryList)
    {
        assert($block->selectors !== null);
        $env->selectors = $this->evalSelectors($block->selectors);
 
        $out = $this->makeOutputBlock(null);
 
        assert($this->scope !== null);
        $this->scope->children[] = $out;
 
        if (\count($block->children)) {
            $out->selectors = $this->multiplySelectors($env, $block->selfParent);
 
            // propagate selfParent to the children where they still can be useful
            $selfParentSelectors = null;
 
            if (isset($block->selfParent->selectors)) {
                $selfParentSelectors = $block->selfParent->selectors;
                $block->selfParent->selectors = $out->selectors;
            }
 
            $this->compileChildrenNoReturn($block->children, $out, $block->selfParent);
 
            // and revert for the following children of the same block
            if ($selfParentSelectors) {
                assert($block->selfParent !== null);
                $block->selfParent->selectors = $selfParentSelectors;
            }
        }
 
        $this->popEnv();
    }
 
 
    /**
     * Compile the value of a comment that can have interpolation
     *
     * @param array $value
     * @param bool  $pushEnv
     *
     * @return string
     */
            case Type::T_IMPORT:
                $rawPath = $this->reduce($child[1]);
 
                $this->compileImport($rawPath, $out);
                break;
 
            case Type::T_DIRECTIVE:
                $this->compileDirective($child[1], $out);
                break;
 
            case Type::T_AT_ROOT:
                $this->compileAtRoot($child[1]);
                break;
 
            case Type::T_MEDIA:
                $this->compileMedia($child[1]);
                break;
 
            case Type::T_BLOCK:
                $this->compileBlock($child[1]);
                break;
 
            case Type::T_CHARSET:
                break;
 
            case Type::T_CUSTOM_PROPERTY:
                list(, $name, $value) = $child;
                $compiledName = $this->compileValue($name);
 
                // if the value reduces to null from something else then
                // the property should be discarded
                if ($value[0] !== Type::T_NULL) {
                    $value = $this->reduce($value);
 
                    if ($value[0] === Type::T_NULL || $value === static::$nullString) {
                        break;
                    }
                }
 
                $compiledValue = $this->compileValue($value);
     *
     * @return void
     *
     * @throws \Exception
     */
    protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
    {
        $this->pushCallStack($traceName);
 
        foreach ($stms as $stm) {
            if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
                $oldSelfParent = $stm[1]->selfParent;
                $stm[1]->selfParent = $selfParent;
                $ret = $this->compileChild($stm, $out);
                $stm[1]->selfParent = $oldSelfParent;
            } elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                throw $this->error('@return may only be used within a function');
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure unchanged
     *
     * @param array $queryList
     *
     * @return array
     */
    protected function evaluateMediaQuery($queryList)
    {
        assert($block->selectors !== null);
        $env->selectors = $this->evalSelectors($block->selectors);
 
        $out = $this->makeOutputBlock(null);
 
        assert($this->scope !== null);
        $this->scope->children[] = $out;
 
        if (\count($block->children)) {
            $out->selectors = $this->multiplySelectors($env, $block->selfParent);
 
            // propagate selfParent to the children where they still can be useful
            $selfParentSelectors = null;
 
            if (isset($block->selfParent->selectors)) {
                $selfParentSelectors = $block->selfParent->selectors;
                $block->selfParent->selectors = $out->selectors;
            }
 
            $this->compileChildrenNoReturn($block->children, $out, $block->selfParent);
 
            // and revert for the following children of the same block
            if ($selfParentSelectors) {
                assert($block->selfParent !== null);
                $block->selfParent->selectors = $selfParentSelectors;
            }
        }
 
        $this->popEnv();
    }
 
 
    /**
     * Compile the value of a comment that can have interpolation
     *
     * @param array $value
     * @param bool  $pushEnv
     *
     * @return string
     */
            case Type::T_IMPORT:
                $rawPath = $this->reduce($child[1]);
 
                $this->compileImport($rawPath, $out);
                break;
 
            case Type::T_DIRECTIVE:
                $this->compileDirective($child[1], $out);
                break;
 
            case Type::T_AT_ROOT:
                $this->compileAtRoot($child[1]);
                break;
 
            case Type::T_MEDIA:
                $this->compileMedia($child[1]);
                break;
 
            case Type::T_BLOCK:
                $this->compileBlock($child[1]);
                break;
 
            case Type::T_CHARSET:
                break;
 
            case Type::T_CUSTOM_PROPERTY:
                list(, $name, $value) = $child;
                $compiledName = $this->compileValue($name);
 
                // if the value reduces to null from something else then
                // the property should be discarded
                if ($value[0] !== Type::T_NULL) {
                    $value = $this->reduce($value);
 
                    if ($value[0] === Type::T_NULL || $value === static::$nullString) {
                        break;
                    }
                }
 
                $compiledValue = $this->compileValue($value);
     *
     * @return void
     *
     * @throws \Exception
     */
    protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
    {
        $this->pushCallStack($traceName);
 
        foreach ($stms as $stm) {
            if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
                $oldSelfParent = $stm[1]->selfParent;
                $stm[1]->selfParent = $selfParent;
                $ret = $this->compileChild($stm, $out);
                $stm[1]->selfParent = $oldSelfParent;
            } elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                throw $this->error('@return may only be used within a function');
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure unchanged
     *
     * @param array $queryList
     *
     * @return array
     */
    protected function evaluateMediaQuery($queryList)
    {
 
            throw $this->error('The Sass indented syntax is not implemented.');
        }
 
        if (isset($this->importCache[$realPath])) {
            $this->handleImportLoop($realPath);
 
            $tree = $this->importCache[$realPath];
        } else {
            $code   = file_get_contents($path);
            $parser = $this->parserFactory($path);
            $tree   = $parser->parse($code);
 
            $this->importCache[$realPath] = $tree;
        }
 
        $currentDirectory = $this->currentDirectory;
        $this->currentDirectory = dirname($path);
 
        $this->compileChildrenNoReturn($tree->children, $out);
        $this->currentDirectory = $currentDirectory;
        $this->popCallStack();
    }
 
    /**
     * Save the imported files with their resolving path context
     *
     * @param string|null $currentDirectory
     * @param string      $path
     * @param string      $filePath
     *
     * @return void
     */
    private function registerImport($currentDirectory, $path, $filePath)
    {
        $this->resolvedImports[] = ['currentDir' => $currentDirectory, 'path' => $path, 'filePath' => $filePath];
    }
 
    /**
     * Detects whether the import is a CSS import.
 
    /**
     * Compile import; returns true if the value was something that could be imported
     *
     * @param array                                  $rawPath
     * @param \ScssPhp\ScssPhp\Formatter\OutputBlock $out
     * @param bool                                   $once
     *
     * @return bool
     */
    protected function compileImport($rawPath, OutputBlock $out, $once = false)
    {
        if ($rawPath[0] === Type::T_STRING) {
            $path = $this->compileStringContent($rawPath);
 
            if (strpos($path, 'url(') !== 0 && $filePath = $this->findImport($path, $this->currentDirectory)) {
                $this->registerImport($this->currentDirectory, $path, $filePath);
 
                if (! $once || ! \in_array($filePath, $this->importedFiles)) {
                    $this->importFile($filePath, $out);
                    $this->importedFiles[] = $filePath;
                }
 
                return true;
            }
 
            $this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
 
            return false;
        }
 
        if ($rawPath[0] === Type::T_LIST) {
            // handle a list of strings
            if (\count($rawPath[2]) === 0) {
                return false;
            }
 
            foreach ($rawPath[2] as $path) {
                if ($path[0] !== Type::T_STRING) {
                    $this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
            $sourceIndex  = array_search($out->sourceName, $this->sourceNames);
            $this->sourceColumn = $out->sourceColumn;
 
            if ($sourceIndex === false) {
                $sourceIndex = null;
            }
            $this->sourceIndex = $sourceIndex;
        }
 
        switch ($child[0]) {
            case Type::T_SCSSPHP_IMPORT_ONCE:
                $rawPath = $this->reduce($child[1]);
 
                $this->compileImport($rawPath, $out, true);
                break;
 
            case Type::T_IMPORT:
                $rawPath = $this->reduce($child[1]);
 
                $this->compileImport($rawPath, $out);
                break;
 
            case Type::T_DIRECTIVE:
                $this->compileDirective($child[1], $out);
                break;
 
            case Type::T_AT_ROOT:
                $this->compileAtRoot($child[1]);
                break;
 
            case Type::T_MEDIA:
                $this->compileMedia($child[1]);
                break;
 
            case Type::T_BLOCK:
                $this->compileBlock($child[1]);
                break;
 
            case Type::T_CHARSET:
                break;
     *
     * @return void
     *
     * @throws \Exception
     */
    protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
    {
        $this->pushCallStack($traceName);
 
        foreach ($stms as $stm) {
            if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
                $oldSelfParent = $stm[1]->selfParent;
                $stm[1]->selfParent = $selfParent;
                $ret = $this->compileChild($stm, $out);
                $stm[1]->selfParent = $oldSelfParent;
            } elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                throw $this->error('@return may only be used within a function');
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure unchanged
     *
     * @param array $queryList
     *
     * @return array
     */
    protected function evaluateMediaQuery($queryList)
    {
 
            throw $this->error('The Sass indented syntax is not implemented.');
        }
 
        if (isset($this->importCache[$realPath])) {
            $this->handleImportLoop($realPath);
 
            $tree = $this->importCache[$realPath];
        } else {
            $code   = file_get_contents($path);
            $parser = $this->parserFactory($path);
            $tree   = $parser->parse($code);
 
            $this->importCache[$realPath] = $tree;
        }
 
        $currentDirectory = $this->currentDirectory;
        $this->currentDirectory = dirname($path);
 
        $this->compileChildrenNoReturn($tree->children, $out);
        $this->currentDirectory = $currentDirectory;
        $this->popCallStack();
    }
 
    /**
     * Save the imported files with their resolving path context
     *
     * @param string|null $currentDirectory
     * @param string      $path
     * @param string      $filePath
     *
     * @return void
     */
    private function registerImport($currentDirectory, $path, $filePath)
    {
        $this->resolvedImports[] = ['currentDir' => $currentDirectory, 'path' => $path, 'filePath' => $filePath];
    }
 
    /**
     * Detects whether the import is a CSS import.
 
    /**
     * Compile import; returns true if the value was something that could be imported
     *
     * @param array                                  $rawPath
     * @param \ScssPhp\ScssPhp\Formatter\OutputBlock $out
     * @param bool                                   $once
     *
     * @return bool
     */
    protected function compileImport($rawPath, OutputBlock $out, $once = false)
    {
        if ($rawPath[0] === Type::T_STRING) {
            $path = $this->compileStringContent($rawPath);
 
            if (strpos($path, 'url(') !== 0 && $filePath = $this->findImport($path, $this->currentDirectory)) {
                $this->registerImport($this->currentDirectory, $path, $filePath);
 
                if (! $once || ! \in_array($filePath, $this->importedFiles)) {
                    $this->importFile($filePath, $out);
                    $this->importedFiles[] = $filePath;
                }
 
                return true;
            }
 
            $this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
 
            return false;
        }
 
        if ($rawPath[0] === Type::T_LIST) {
            // handle a list of strings
            if (\count($rawPath[2]) === 0) {
                return false;
            }
 
            foreach ($rawPath[2] as $path) {
                if ($path[0] !== Type::T_STRING) {
                    $this->appendRootDirective('@import ' . $this->compileImportPath($rawPath) . ';', $out);
            $sourceIndex  = array_search($out->sourceName, $this->sourceNames);
            $this->sourceColumn = $out->sourceColumn;
 
            if ($sourceIndex === false) {
                $sourceIndex = null;
            }
            $this->sourceIndex = $sourceIndex;
        }
 
        switch ($child[0]) {
            case Type::T_SCSSPHP_IMPORT_ONCE:
                $rawPath = $this->reduce($child[1]);
 
                $this->compileImport($rawPath, $out, true);
                break;
 
            case Type::T_IMPORT:
                $rawPath = $this->reduce($child[1]);
 
                $this->compileImport($rawPath, $out);
                break;
 
            case Type::T_DIRECTIVE:
                $this->compileDirective($child[1], $out);
                break;
 
            case Type::T_AT_ROOT:
                $this->compileAtRoot($child[1]);
                break;
 
            case Type::T_MEDIA:
                $this->compileMedia($child[1]);
                break;
 
            case Type::T_BLOCK:
                $this->compileBlock($child[1]);
                break;
 
            case Type::T_CHARSET:
                break;
     *
     * @return void
     *
     * @throws \Exception
     */
    protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent = null, $traceName = '')
    {
        $this->pushCallStack($traceName);
 
        foreach ($stms as $stm) {
            if ($selfParent && isset($stm[1]) && \is_object($stm[1]) && $stm[1] instanceof Block) {
                $oldSelfParent = $stm[1]->selfParent;
                $stm[1]->selfParent = $selfParent;
                $ret = $this->compileChild($stm, $out);
                $stm[1]->selfParent = $oldSelfParent;
            } elseif ($selfParent && \in_array($stm[0], [Type::T_INCLUDE, Type::T_EXTEND])) {
                $stm['selfParent'] = $selfParent;
                $ret = $this->compileChild($stm, $out);
            } else {
                $ret = $this->compileChild($stm, $out);
            }
 
            if (isset($ret)) {
                throw $this->error('@return may only be used within a function');
            }
        }
 
        $this->popCallStack();
    }
 
 
    /**
     * evaluate media query : compile internal value keeping the structure unchanged
     *
     * @param array $queryList
     *
     * @return array
     */
    protected function evaluateMediaQuery($queryList)
    {
            $out->sourceName = isset($this->sourceNames[$this->sourceIndex]) ? $this->sourceNames[$this->sourceIndex] : '(stdin)';
            $out->sourceLine = $this->sourceLine;
            $out->sourceColumn = $this->sourceColumn;
        }
 
        return $out;
    }
 
    /**
     * Compile root
     *
     * @param \ScssPhp\ScssPhp\Block $rootBlock
     *
     * @return void
     */
    protected function compileRoot(Block $rootBlock)
    {
        $this->rootBlock = $this->scope = $this->makeOutputBlock(Type::T_ROOT);
 
        $this->compileChildrenNoReturn($rootBlock->children, $this->scope);
        assert($this->scope !== null);
        $this->flattenSelectors($this->scope);
        $this->missingSelectors();
    }
 
    /**
     * Report missing selectors
     *
     * @return void
     */
    protected function missingSelectors()
    {
        foreach ($this->extends as $extend) {
            if (isset($extend[3])) {
                continue;
            }
 
            list($target, $origin, $block) = $extend;
 
            // ignore if !optional
            $this->rootDirectory = getcwd();
        }
 
        try {
            $this->parser = $this->parserFactory($path);
            $tree         = $this->parser->parse($source);
            $this->parser = null;
 
            $this->formatter = new $this->configuredFormatter();
            $this->rootBlock = null;
            $this->rootEnv   = $this->pushEnv($tree);
 
            $warnCallback = function ($message, $deprecation) {
                $this->logger->warn($message, $deprecation);
            };
            $previousWarnCallback = Warn::setCallback($warnCallback);
 
            try {
                $this->injectVariables($this->registeredVars);
                $this->compileRoot($tree);
                $this->popEnv();
            } finally {
                Warn::setCallback($previousWarnCallback);
            }
 
            $sourceMapGenerator = null;
 
            if ($this->sourceMap) {
                if (\is_object($this->sourceMap) && $this->sourceMap instanceof SourceMapGenerator) {
                    $sourceMapGenerator = $this->sourceMap;
                    $this->sourceMap = self::SOURCE_MAP_FILE;
                } elseif ($this->sourceMap !== self::SOURCE_MAP_NONE) {
                    $sourceMapGenerator = new SourceMapGenerator($this->sourceMapOptions);
                }
            }
            assert($this->scope !== null);
 
            $out = $this->formatter->format($this->scope, $sourceMapGenerator);
 
            $prefix = '';
        if ($file->locked() === false) {
            // File was already locked by another process, lets avoid compiling the same file twice.
            return false;
        }
 
        $logfile = fopen('php://memory', 'rb+');
        $logger = new StreamLogger($logfile, true);
 
        $compiler = $this->getCompiler();
        $compiler->setLogger($logger);
 
        // Set the lookup paths.
        $this->functions->setBasePath($path);
        $compiler->setImportPaths([[$this, 'findImport']]);
 
        // Run the compiler.
        $compiler->addVariables($this->getVariables(true));
        $scss = '$output-bourbon-deprecation-warnings: false;' . "\n" . '@import "' . $in . '.scss"';
        try {
            $this->result = $compiler->compileString($scss);
            $css = $this->result->getCss();
        } catch (CompilerException $e) {
            if (version_compare(static::$options['compatibility'], '5.5', '<')) {
                static::$options['legacy'][$in] = true;
                $this->warnings['__TITLE__'] = 'Please update your theme!';
                $this->warnings[$in] = ['WARNING: ' . $e->getMessage()];
 
                return $this->compileLegacyFile($in);
            }
 
            throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on error: {$e->getMessage()}", 500, $e);
        } catch (\Exception $e) {
            throw new \RuntimeException("ERROR: CSS Compilation on file '{$in}.scss' failed on fatal error: {$e->getMessage()}", 500, $e);
        }
        if (strpos($css, $scss) === 0) {
            $css = '/* ' . $scss . ' */';
        }
 
        // Extract map from css and save it as separate file.
        $pos = strrpos($css, '/*# sourceMappingURL=');
    /**
     * Returns URL to CSS file.
     *
     * If file does not exist, it will be created by using CSS compiler.
     *
     * @param string $name
     * @return string
     */
    public function css($name)
    {
        if (!isset($this->cssCache[$name])) {
            $compiler = $this->compiler();
 
            if ($compiler->needsCompile($name, [$this, 'getCssVariables'])) {
                if (\GANTRY_DEBUGGER) {
                    Debugger::startTimer("css-{$name}", "Compiling CSS: {$name}");
                    Debugger::addMessage("Compiling CSS: {$name}");
                }
 
                $compiler->compileFile($name);
 
                if (\GANTRY_DEBUGGER) {
                    Debugger::stopTimer("css-{$name}");
                }
            }
 
            $this->cssCache[$name] = $compiler->getCssUrl($name);
        }
 
        return $this->cssCache[$name];
    }
 
    /**
     * @return array
     */
    public function getCssVariables()
    {
        if ($this->preset) {
            $variables = $this->presets()->flatten($this->preset . '.styles', '-');
        } else {
        $styles = $this->getAssetsInLocation('styles', $location);
 
        if (!$styles) {
            return [];
        }
 
        $gantry = Gantry::instance();
 
        /** @var Theme|null $theme */
        $theme = isset($gantry['theme']) ? $gantry['theme'] : null;
 
        /** @var Document $document */
        $document = $gantry['document'];
 
        foreach ($styles as $key => $style) {
            if (isset($style['href'])) {
                $url = $style['href'];
                if ($theme && preg_match('|\.scss$|', $url)) {
                    // Compile SCSS files.
                    $url = $theme->css(Gantry::basename($url, '.scss'));
                }
                // Deal with streams and relative paths.
                $url = $document::url($url, null, null, false);
 
                $styles[$key]['href'] = $url;
            }
        }
 
        return $styles;
    }
 
    /**
     * @param string $location
     * @return array
     * @since 5.4.3
     */
    public function getScripts($location = 'head')
    {
        $scripts = $this->getAssetsInLocation('scripts', $location);
 
        'bootstrap.5' => 'registerBootstrap5',
        'mootools' => 'registerMootools',
        'mootools.framework' => 'registerMootools',
        'mootools.core' => 'registerMootools',
        'mootools.more' => 'registerMootoolsMore',
        'lightcase' => 'registerLightcase',
        'lightcase.init' => 'registerLightcaseInit',
    ];
 
    public static function registerAssets()
    {
        static::registerFrameworks();
        static::registerStyles();
        static::registerScripts('head');
        static::registerScripts('footer');
    }
 
    public static function registerStyles()
    {
        $styles = static::$stack[0]->getStyles();
 
        foreach ($styles as $style) {
            switch ($style[':type']) {
                case 'file':
                    $array = explode('?', $style['href']);
                    $href = array_shift($array);
                    $version = array_shift($array) ?: false;
                    $name = isset($style['id']) ? $style['id'] : Gantry::basename($href, '.css');
                    if (strpos($version, '=')) {
                        $href .= '?' . $version;
                        $version = null;
                    }
                    \wp_enqueue_style($name, $href, [], $version, $style['media']);
                    break;
                case 'inline':
                    $type = !empty($style['type']) ? $style['type'] : 'text/css';
                    self::$wp_styles[] = "<style type=\"{$type}\">{$style['content']}</style>";
                    break;
            }
        }
        'jquery' => 'registerJquery',
        'jquery.framework' => 'registerJquery',
        'jquery.ui.core' => 'registerJqueryUiCore',
        'jquery.ui.sortable' => 'registerJqueryUiSortable',
        'bootstrap.2' => 'registerBootstrap2',
        'bootstrap.3' => 'registerBootstrap3',
        'bootstrap.4' => 'registerBootstrap4',
        'bootstrap.5' => 'registerBootstrap5',
        'mootools' => 'registerMootools',
        'mootools.framework' => 'registerMootools',
        'mootools.core' => 'registerMootools',
        'mootools.more' => 'registerMootoolsMore',
        'lightcase' => 'registerLightcase',
        'lightcase.init' => 'registerLightcaseInit',
    ];
 
    public static function registerAssets()
    {
        static::registerFrameworks();
        static::registerStyles();
        static::registerScripts('head');
        static::registerScripts('footer');
    }
 
    public static function registerStyles()
    {
        $styles = static::$stack[0]->getStyles();
 
        foreach ($styles as $style) {
            switch ($style[':type']) {
                case 'file':
                    $array = explode('?', $style['href']);
                    $href = array_shift($array);
                    $version = array_shift($array) ?: false;
                    $name = isset($style['id']) ? $style['id'] : Gantry::basename($href, '.css');
                    if (strpos($version, '=')) {
                        $href .= '?' . $version;
                        $version = null;
                    }
                    \wp_enqueue_style($name, $href, [], $version, $style['media']);
    {
        return null;
    }
 
    /**
     * @param string $text
     * @return string
     */
    public function filter($text)
    {
        return $text;
    }
 
    public function finalize()
    {
        $gantry = Gantry::instance();
        /** @var Document $document */
        $document = $gantry['document'];
 
        $document::registerAssets();
    }
 
    /**
     * @return mixed|null
     */
    public function call()
    {
        $args = func_get_args();
        $callable = array_shift($args);
        return is_callable($callable) ? call_user_func_array($callable, $args) : null;
    }
 
    /**
     * @param string $action
     * @param int|string|null $id
     * @return bool
     */
    public function authorize($action, $id = null)
    {
        return true;
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
        }
 
        if ($isDefinedTest) {
            return true;
        }
 
        if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
            $this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
        }
 
        // Some objects throw exceptions when they have __call, and the method we try
        // to call is not supported. If ignoreStrictCheck is true, we should return null.
        try {
            if (!$arguments) {
                $ret = $object->$method();
            } else {
                $ret = \call_user_func_array([$object, $method], $arguments);
            }
        } catch (\BadMethodCallException $e) {
            if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
                return;
            }
            throw $e;
        }
 
        // @deprecated in 1.28
        if ($object instanceof \Twig_TemplateInterface) {
            $self = $object->getTemplateName() === $this->getTemplateName();
            $message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
            if ('renderBlock' === $method || 'displayBlock' === $method) {
                $message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('hasBlock' === $method) {
                $message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('render' === $method || 'display' === $method) {
                $message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
            // line 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
 
    // line 11
    public function block_page_footer($context, array $blocks = [])
    {
        // line 12
        echo "    ";
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "finalize", [], "method");
        // line 13
        echo "    ";
        echo ($context["wp_footer"] ?? null);
        echo "
";
    }
 
    public function getTemplateName()
    {
        return "partials/page.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
    }
 
    public function getDebugInfo()
    {
        return array (  65 => 13,  62 => 12,  59 => 11,  51 => 7,  45 => 5,  43 => 4,  40 => 3,  30 => 1,);
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new \LogicException('A block must be a method on a \Twig\Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for \Twig\Error\LoaderError exceptions
                // see \Twig\Error\LoaderError
                if (-1 === $e->getTemplateLine()) {
                    $e->guess();
                }
 
                throw $e;
            } catch (\Exception $e) {
                $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
                $e->guess();
 
                throw $e;
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
        // line 62
        echo "    ";
        echo twig_join_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "getHtml", [0 => "body_bottom"], "method"), "
    ");
        echo "
";
        $context["body_bottom"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 65
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "document", []), "addScript", [0 => $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc("gantry-assets://js/main.js"), 1 => 11, 2 => "footer"], "method");
        // line 69
        ob_start(function () { return ''; });
        // line 70
        echo "    ";
        $this->displayBlock('page_head', $context, $blocks);
        $context["page_head"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 75
        ob_start(function () { return ''; });
        // line 76
        echo "    ";
        $this->displayBlock('page_footer', $context, $blocks);
        // line 80
        echo "
    ";
        // line 81
        echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "render", [], "method");
        echo "
";
        $context["page_footer"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 84
        $this->displayBlock('page', $context, $blocks);
    }
 
    // line 8
    public function block_content($context, array $blocks = [])
    {
        // line 9
        echo "        ";
    }
 
    // line 21
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->blocks = [
            'page_head' => [$this, 'block_page_head'],
            'page_footer' => [$this, 'block_page_footer'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_page_head($context, array $blocks = [])
    {
        // line 4
        if (($context["page_head"] ?? null)) {
            // line 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
        parent::__construct($env);
 
        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 2
        $context["twigTemplate"] = "page-plugin.html.twig";
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "page-plugin.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 4
    public function block_content($context, array $blocks = [])
    {
        // line 5
        echo "
    <div class=\"platform-content\">
        <div class=\"plugin-content\">
            ";
        // line 8
        echo ($context["content"] ?? null);
        echo "
        </div> <!-- /content-wrapper -->
    </div>
 
";
    }
 
    public function getTemplateName()
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
     * @internal
     */
    public function __construct(Environment $env, Template $template)
    {
        $this->env = $env;
        $this->template = $template;
    }
 
    /**
     * Renders the template.
     *
     * @param array $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     */
    public function render($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Displays the template.
     *
     * @param array $context An array of parameters to pass to the template
     */
    public function display($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        $this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Checks if a block is defined.
     *
     * @param string $name    The block name
     * @param array  $context An array of parameters to pass to the template
     *
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $template = $twig->load($file);
            $output = $template->render($data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        } else {
            if ( is_array($filenames) ) {
                $filenames = implode(", ", $filenames);
            }
            Helper::error_log( 'Error loading your template files: '.$filenames.'. Make sure one of these files exists.' );
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
 
defined('ABSPATH') or die;
 
use Timber\Timber;
 
/*
 * Third party plugins that hijack the theme will call wp_footer() to get the footer template.
 * We use this to end our output buffer (started in header.php) and render into the views/page-plugin.html.twig template.
 */
 
$timberContext = $GLOBALS['timberContext'];
 
if (!isset($timberContext)) {
    throw new RuntimeException('Timber context not set in footer.');
}
 
$timberContext['content'] = ob_get_clean();
 
$templates = ['page-plugin.html.twig'];
Timber::render($templates, $timberContext);
 
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
 
    if ( $load_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
 
 
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
            $located = $wp_stylesheet_path . '/' . $template_name;
            break;
        } elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
            $located = $wp_template_path . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' !== $located ) {
        load_template( $located, $load_once, $args );
    }
 
    return $located;
}
 
/**
 * Requires the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
     * Fires before the footer template file is loaded.
     *
     * @since 2.1.0
     * @since 2.8.0 The `$name` parameter was added.
     * @since 5.5.0 The `$args` parameter was added.
     *
     * @param string|null $name Name of the specific footer file to use. Null for the default footer.
     * @param array       $args Additional arguments passed to the footer template.
     */
    do_action( 'get_footer', $name, $args );
 
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "footer-{$name}.php";
    }
 
    $templates[] = 'footer.php';
 
    if ( ! locate_template( $templates, true, true, $args ) ) {
        return false;
    }
}
 
/**
 * Loads sidebar template.
 *
 * Includes the sidebar template for a theme or if a name is specified then a
 * specialized sidebar will be included.
 *
 * For the parameter, if the file is called "sidebar-special.php" then specify
 * "special".
 *
 * @since 1.5.0
 * @since 5.5.0 A return value was added.
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @param string $name The name of the specialized sidebar.
 * @param array  $args Optional. Additional arguments passed to the sidebar template.
 *                     Default empty array.
    <?php
        /**
         * woocommerce_after_main_content hook.
         *
         * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
         */
        do_action( 'woocommerce_after_main_content' );
    ?>
 
    <?php
        /**
         * woocommerce_sidebar hook.
         *
         * @hooked woocommerce_get_sidebar - 10
         */
        do_action( 'woocommerce_sidebar' );
    ?>
 
<?php
get_footer( 'shop' );
 
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
 
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /complexe-allergies/
USER ahlx5bjji
HOME /home/ahlx5bjji
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /complexe-allergies/
REMOTE_PORT 38730
SCRIPT_FILENAME /home/ahlx5bjji/public_html/index.php
SERVER_ADMIN webmaster@esprit-des-simples.fr
CONTEXT_DOCUMENT_ROOT /home/ahlx5bjji/public_html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/ahlx5bjji/public_html
REMOTE_ADDR 18.97.14.83
SERVER_PORT 443
SERVER_ADDR 81.171.6.67
SERVER_NAME www.esprit-des-simples.fr
SERVER_SIGNATURE
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
HTTP_X_HTTPS 1
HTTP_HOST www.esprit-des-simples.fr
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Sat, 02 Nov 2024 13:53:52 GMT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
proxy-nokeepalive 1
H2_STREAM_TAG 2260817-534-3
H2_STREAM_ID 3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH on
H2PUSH on
HTTP2 on
SSL_TLS_SNI www.esprit-des-simples.fr
HTTPS on
REWRITEBASE /
HTTP_MOD_REWRITE On
SCRIPT_URI https://www.esprit-des-simples.fr/complexe-allergies/
SCRIPT_URL /complexe-allergies/
UNIQUE_ID Z7NjvnjY9Dxht_9qPxRJNwAAThg
REDIRECT_STATUS 200
REDIRECT_H2_STREAM_TAG 2260817-534-3
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH on
REDIRECT_H2PUSH on
REDIRECT_HTTP2 on
REDIRECT_SSL_TLS_SNI www.esprit-des-simples.fr
REDIRECT_HTTPS on
REDIRECT_REWRITEBASE /
REDIRECT_HTTP_MOD_REWRITE On
REDIRECT_SCRIPT_URI https://www.esprit-des-simples.fr/complexe-allergies/
REDIRECT_SCRIPT_URL /complexe-allergies/
REDIRECT_UNIQUE_ID Z7NjvnjY9Dxht_9qPxRJNwAAThg
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1739809726.8818
REQUEST_TIME 1739809726
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler