30. Twig_Error_Runtime
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php328
29. Whoops\Exception\ErrorException
…/­classes/­Gantry/­Component/­Twig/­TwigExtension.php209
28. Whoops\Run handleError
…/­classes/­Gantry/­Component/­Whoops/­Run.php71
27. Gantry\Component\Whoops\Run handleError
…/­classes/­Gantry/­Component/­Twig/­TwigExtension.php209
26. Gantry\Component\Twig\TwigExtension parseAssetsFunc
/­var/­www/­clima.nu/­public_html/­cache/­gantry5/­twig/­b/­f/­bffe0261d32672a4170979528300b150b36ce01168016e0d9ba0d55ca2c344ef.php34
25. __TwigTemplate_bffe0261d32672a4170979528300b150b36ce01168016e0d9ba0d55ca2c344ef doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php313
24. Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php287
23. Twig_Template display
/­var/­www/­clima.nu/­public_html/­cache/­gantry5/­twig/­1/­9/­1957ad39163b389e1c6a92af3b1847795b835499f50ed316442bbe28ccbb85cd.php26
22. __TwigTemplate_1957ad39163b389e1c6a92af3b1847795b835499f50ed316442bbe28ccbb85cd doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php313
21. Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php287
20. Twig_Template display
/­var/­www/­clima.nu/­public_html/­cache/­gantry5/­twig/­1/­e/­1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2.php180
19. __TwigTemplate_1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2 block_page_head
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php154
18. Twig_Template displayBlock
/­var/­www/­clima.nu/­public_html/­cache/­gantry5/­twig/­1/­e/­1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2.php166
17. __TwigTemplate_1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2 block_page
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php154
16. Twig_Template displayBlock
/­var/­www/­clima.nu/­public_html/­cache/­gantry5/­twig/­1/­e/­1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2.php77
15. __TwigTemplate_1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php313
14. Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php287
13. Twig_Template display
/­var/­www/­clima.nu/­public_html/­cache/­gantry5/­twig/­1/­3/­13c36c33c9b017b389ae1c43f7c80ed27f05a9137cbfea915a351a892e755e14.php24
12. __TwigTemplate_13c36c33c9b017b389ae1c43f7c80ed27f05a9137cbfea915a351a892e755e14 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php313
11. Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php287
10. Twig_Template display
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php298
9. Twig_Template render
…/­vendor/­twig/­twig/­lib/­Twig/­Environment.php293
8. Twig_Environment render
…/­classes/­Gantry/­Framework/­Theme.php80
7. Gantry\Framework\Theme render
/­var/­www/­clima.nu/­public_html/­templates/­g5_hydrogen/­component.php24
6. require
/­var/­www/­clima.nu/­public_html/­libraries/­joomla/­document/­html/­html.php578
5. JDocumentHTML _loadTemplate
/­var/­www/­clima.nu/­public_html/­libraries/­joomla/­document/­html/­html.php635
4. JDocumentHTML _fetchTemplate
/­var/­www/­clima.nu/­public_html/­libraries/­joomla/­document/­html/­html.php455
3. JDocumentHTML parse
/­var/­www/­clima.nu/­public_html/­libraries/­cms/­application/­cms.php1045
2. JApplicationCms render
/­var/­www/­clima.nu/­public_html/­libraries/­cms/­application/­site.php729
1. JApplicationSite render
/­var/­www/­clima.nu/­public_html/­libraries/­cms/­application/­cms.php258
0. JApplicationCms execute
/­var/­www/­clima.nu/­public_html/­index.php50

Twig_Error_Runtime

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
Twig_Error_Runtime thrown with message "An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()") in "@nucleus/page_head.html.twig" at line 14." Stacktrace: #30 Twig_Error_Runtime in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:328 #29 Whoops\Exception\ErrorException in /var/www/clima.nu/public_html/libraries/gantry5/classes/Gantry/Component/Twig/TwigExtension.php:209 #28 Whoops\Run:handleError in /var/www/clima.nu/public_html/libraries/gantry5/classes/Gantry/Component/Whoops/Run.php:71 #27 Gantry\Component\Whoops\Run:handleError in /var/www/clima.nu/public_html/libraries/gantry5/classes/Gantry/Component/Twig/TwigExtension.php:209 #26 Gantry\Component\Twig\TwigExtension:parseAssetsFunc in /var/www/clima.nu/public_html/cache/gantry5/twig/b/f/bffe0261d32672a4170979528300b150b36ce01168016e0d9ba0d55ca2c344ef.php:34 #25 __TwigTemplate_bffe0261d32672a4170979528300b150b36ce01168016e0d9ba0d55ca2c344ef:doDisplay in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:313 #24 Twig_Template:displayWithErrorHandling in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:287 #23 Twig_Template:display in /var/www/clima.nu/public_html/cache/gantry5/twig/1/9/1957ad39163b389e1c6a92af3b1847795b835499f50ed316442bbe28ccbb85cd.php:26 #22 __TwigTemplate_1957ad39163b389e1c6a92af3b1847795b835499f50ed316442bbe28ccbb85cd:doDisplay in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:313 #21 Twig_Template:displayWithErrorHandling in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:287 #20 Twig_Template:display in /var/www/clima.nu/public_html/cache/gantry5/twig/1/e/1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2.php:180 #19 __TwigTemplate_1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2:block_page_head in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:154 #18 Twig_Template:displayBlock in /var/www/clima.nu/public_html/cache/gantry5/twig/1/e/1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2.php:166 #17 __TwigTemplate_1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2:block_page in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:154 #16 Twig_Template:displayBlock in /var/www/clima.nu/public_html/cache/gantry5/twig/1/e/1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2.php:77 #15 __TwigTemplate_1e91deede3af65baff4353fd6a623bc9f672e5ed40562e2a03e58d8676e9ede2:doDisplay in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:313 #14 Twig_Template:displayWithErrorHandling in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:287 #13 Twig_Template:display in /var/www/clima.nu/public_html/cache/gantry5/twig/1/3/13c36c33c9b017b389ae1c43f7c80ed27f05a9137cbfea915a351a892e755e14.php:24 #12 __TwigTemplate_13c36c33c9b017b389ae1c43f7c80ed27f05a9137cbfea915a351a892e755e14:doDisplay in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:313 #11 Twig_Template:displayWithErrorHandling in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:287 #10 Twig_Template:display in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:298 #9 Twig_Template:render in /var/www/clima.nu/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:293 #8 Twig_Environment:render in /var/www/clima.nu/public_html/libraries/gantry5/classes/Gantry/Framework/Theme.php:80 #7 Gantry\Framework\Theme:render in /var/www/clima.nu/public_html/templates/g5_hydrogen/component.php:24 #6 require in /var/www/clima.nu/public_html/libraries/joomla/document/html/html.php:578 #5 JDocumentHTML:_loadTemplate in /var/www/clima.nu/public_html/libraries/joomla/document/html/html.php:635 #4 JDocumentHTML:_fetchTemplate in /var/www/clima.nu/public_html/libraries/joomla/document/html/html.php:455 #3 JDocumentHTML:parse in /var/www/clima.nu/public_html/libraries/cms/application/cms.php:1045 #2 JApplicationCms:render in /var/www/clima.nu/public_html/libraries/cms/application/site.php:729 #1 JApplicationSite:render in /var/www/clima.nu/public_html/libraries/cms/application/cms.php:258 #0 JApplicationCms:execute in /var/www/clima.nu/public_html/index.php:50

An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()") in "@nucleus/page_head.html.twig" at line 14.

            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getTemplateName(), $e);
        }
    }
    {
        $doc = new \DOMDocument();
        $doc->loadHTML('<html><head>' . $input . '</head><body></body></html>');
        $raw = [];
        /** @var \DomElement $element */
        foreach ($doc->getElementsByTagName('head')->item(0)->childNodes as $element) {
            $result = ['tag' => $element->tagName, 'content' => $element->textContent];
            foreach ($element->attributes as $attribute) {
                $result[$attribute->name] = $attribute->value;
            }
Exception message: Invalid argument supplied for foreach()
        }
 
        // If there are registered patterns, only handle errors if error matches one of the patterns.
        if ($level & error_reporting()) {
            foreach ($this->registeredPatterns as $entry) {
                $pathMatches = (bool) preg_match($entry["pattern"], $file);
                if ($pathMatches) {
                    return parent::handleError($level, $message, $file, $line);
                }
            }
    {
        $doc = new \DOMDocument();
        $doc->loadHTML('<html><head>' . $input . '</head><body></body></html>');
        $raw = [];
        /** @var \DomElement $element */
        foreach ($doc->getElementsByTagName('head')->item(0)->childNodes as $element) {
            $result = ['tag' => $element->tagName, 'content' => $element->textContent];
            foreach ($element->attributes as $attribute) {
                $result[$attribute->name] = $attribute->value;
            }
        // line 2
        echo "    ";
        $this->displayBlock('head_stylesheets', $context, $blocks);
        // line 12
        $this->displayBlock('head_platform', $context, $blocks);
        $context["headStylesheets"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 14
        $this->env->getExtension('UrlExtension')->parseAssetsFunc((isset($context["headStylesheets"]) ? $context["headStylesheets"] : null), "head", 10);
        // line 16
        echo "<head>";
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
    }
 
    /**
     * {@inheritdoc}
     */
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    protected function doGetParent(array $context)
    {
        return "@nucleus/page_head.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
    }
 
    /**
     * {@inheritdoc}
     */
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
";
    }
 
    // line 46
    public function block_page_head($context, array $blocks = array())
    {
        // line 47
        $this->loadTemplate("partials/page_head.html.twig", "@nucleus/page.html.twig", 47)->display($context);
    }
 
        } else {
            $template = null;
            $block = null;
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                throw $e;
        echo ">
<html";
        // line 45
        echo $this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "page", array()), "htmlAttributes", array());
        echo ">
    ";
        // line 46
        $this->displayBlock('page_head', $context, $blocks);
        // line 49
        echo "    ";
        } else {
            $template = null;
            $block = null;
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                throw $e;
        // line 37
        ob_start();
        // line 38
        echo "    ";
        $this->displayBlock('page_bottom', $context, $blocks);
        $context["page_bottom"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 43
        $this->displayBlock('page', $context, $blocks);
        // line 66
        $this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "platform", array()), "finalize", array(), "method");
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
    }
 
    /**
     * {@inheritdoc}
     */
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    protected function doGetParent(array $context)
    {
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
    }
 
    /**
     * {@inheritdoc}
     */
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
     * {@inheritdoc}
     */
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function render($name, array $context = array())
    {
        return $this->loadTemplate($name)->render($context);
    }
 
    }
 
    public function render($file, array $context = array())
    {
        // Include Gantry specific things to the context.
        $context = $this->add_to_context($context);
 
        return $this->renderer()->render($file, $context);
    }
 
$theme = $gantry['theme'];
 
$raw = JFactory::getApplication()->input->getString('type') == 'raw';
 
// Render the component.
echo $theme
    ->setLayout('_body_only')
    ->render($raw ? 'raw.html.twig' : 'component.html.twig');
 
		if (file_exists($directory . '/' . $filename))
		{
			// Store the file path
			$this->_file = $directory . '/' . $filename;
 
			// Get the file content
			ob_start();
			require $directory . '/' . $filename;
			$contents = ob_get_contents();
			ob_end_clean();
 
		// Assign the variables
		$this->template = $template;
		$this->baseurl = JUri::base(true);
		$this->params = isset($params['params']) ? $params['params'] : new Registry;
 
		// Load
		$this->_template = $this->_loadTemplate($directory . '/' . $template, $file);
 
		return $this;
	 *
	 * @return  JDocumentHTML instance of $this to allow chaining
	 *
	 * @since   11.1
	 */
	public function parse($params = array())
	{
		return $this->_fetchTemplate($params)->_parseTemplate();
	}
 
		// Fall back to constants.
		else
		{
			$this->docOptions['directory'] = defined('JPATH_THEMES') ? JPATH_THEMES : (defined('JPATH_BASE') ? JPATH_BASE : __DIR__) . '/themes';
		}
 
		// Parse the document.
		$this->document->parse($this->docOptions);
 
		// Trigger the onBeforeRender event.
				{
					$this->set('themeFile', $file . '.php');
				}
 
				break;
		}
 
		parent::render();
	}
 
		// Perform application routines.
		$this->doExecute();
 
		// If we have an application document object, render it.
		if ($this->document instanceof JDocument)
		{
			// Render the application output.
			$this->render();
		}
 
// Mark afterLoad in the profiler.
JDEBUG ? $_PROFILER->mark('afterLoad') : null;
 
// Instantiate the application.
$app = JFactory::getApplication('site');
 
// Execute the application.
$app->execute();
 
Key Value
PATH /usr/local/bin:/usr/bin:/bin
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST www.clima.nu
HTTP_USER_AGENT claudebot
HTTP_X_REAL_IP 3.239.208.72
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_PORT 80
UNIQUE_ID ZgZ7iBZY1ynU6574EAmTCQAAAKI
iubenda_api_key d29ac07a0559e3c2fe13101ba87b1d516ced9087
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.clima.nu
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 3.239.208.72
DOCUMENT_ROOT /var/www/clima.nu/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/clima.nu/public_html
SERVER_ADMIN [no address given]
SCRIPT_FILENAME /var/www/clima.nu/public_html/index.php
REMOTE_PORT 40214
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING tmpl=component&print=1&page=
REQUEST_URI /index.php/info?tmpl=component&print=1&page=
SCRIPT_NAME /index.php
PATH_INFO /info
PATH_TRANSLATED /var/www/clima.nu/public_html/info
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711700872.9457
REQUEST_TIME 1711700872
Key Value
tmpl component
print 1
page
empty
empty
empty
Key Value
__default Array ( [session.counter] => 1 [session.timer.start] => 1711700873 [session.timer.last] => 1711700873 [session.timer.now] => 1711700873 [session.client.browser] => claudebot [registry] => Joomla\Registry\Registry Object ( [data:protected] => stdClass Object ( ) [separator] => . ) [user] => JUser Object ( [isRoot:protected] => [id] => 0 [name] => [username] => [email] => [password] => [password_clear] => [block] => [sendEmail] => 0 [registerDate] => [lastvisitDate] => [activation] => [params] => [groups] => Array ( [0] => 9 ) [guest] => 1 [lastResetTime] => [resetCount] => [requireReset] => [_params:protected] => Joomla\Registry\Registry Object ( [data:protected] => stdClass Object ( ) [separator] => . ) [_authGroups:protected] => Array ( [0] => 1 [1] => 9 ) [_authLevels:protected] => Array ( [0] => 1 [1] => 1 [2] => 5 ) [_authActions:protected] => [_errorMsg:protected] => [userHelper:protected] => JUserWrapperHelper Object ( ) [_errors:protected] => Array ( ) [aid] => 0 ) [session.token] => bef30918613e0d9f98903dd716089aa8 )
Key Value
PATH /usr/local/bin:/usr/bin:/bin
PWD /
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\PlainTextHandler
2. Whoops\Handler\JsonResponseHandler