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
…/­vendor/­twig/­twig/­lib/­Twig/­Environment.php332
25. __TwigTemplate_cf9a3e7f0cc5184e01dc5ff32caf29ea3090611f897c6db9007984473a42d8e2 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php313
24. Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php287
23. Twig_Template display
…/­vendor/­twig/­twig/­lib/­Twig/­Environment.php332
22. __TwigTemplate_7ed78c917cf9820144b83057dad8ced5c1f2859975b3a7a37f455bf42c6632c1 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php313
21. Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php287
20. Twig_Template display
…/­vendor/­twig/­twig/­lib/­Twig/­Environment.php332
19. __TwigTemplate_8a50d17a2d76d1abae5733c0c7682a2c3e62d689ce44b2b9a1b9f4be0a721134 block_page_head
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php154
18. Twig_Template displayBlock
…/­vendor/­twig/­twig/­lib/­Twig/­Environment.php332
17. __TwigTemplate_8a50d17a2d76d1abae5733c0c7682a2c3e62d689ce44b2b9a1b9f4be0a721134 block_page
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php154
16. Twig_Template displayBlock
…/­vendor/­twig/­twig/­lib/­Twig/­Environment.php332
15. __TwigTemplate_8a50d17a2d76d1abae5733c0c7682a2c3e62d689ce44b2b9a1b9f4be0a721134 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php313
14. Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php287
13. Twig_Template display
…/­vendor/­twig/­twig/­lib/­Twig/­Environment.php332
12. __TwigTemplate_a1e239c7a7dcde8871080dd0aaad4b31c6293058937b07e99e693cb95a611035 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
/­homepages/­18/­d416749488/­htdocs/­app416749505/­templates/­g5_hydrogen/­index.php25
6. require
/­homepages/­18/­d416749488/­htdocs/­app416749505/­libraries/­joomla/­document/­html.php578
5. JDocumentHtml _loadTemplate
/­homepages/­18/­d416749488/­htdocs/­app416749505/­libraries/­joomla/­document/­html.php640
4. JDocumentHtml _fetchTemplate
/­homepages/­18/­d416749488/­htdocs/­app416749505/­libraries/­joomla/­document/­html.php455
3. JDocumentHtml parse
/­homepages/­18/­d416749488/­htdocs/­app416749505/­libraries/­cms/­application/­cms.php1048
2. JApplicationCms render
/­homepages/­18/­d416749488/­htdocs/­app416749505/­libraries/­cms/­application/­site.php758
1. JApplicationSite render
/­homepages/­18/­d416749488/­htdocs/­app416749505/­libraries/­cms/­application/­cms.php263
0. JApplicationCms execute
/­homepages/­18/­d416749488/­htdocs/­app416749505/­index.php49

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 /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:328 #29 Whoops\Exception\ErrorException in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/classes/Gantry/Component/Twig/TwigExtension.php:209 #28 Whoops\Run:handleError in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/classes/Gantry/Component/Whoops/Run.php:71 #27 Gantry\Component\Whoops\Run:handleError in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/classes/Gantry/Component/Twig/TwigExtension.php:209 #26 Gantry\Component\Twig\TwigExtension:parseAssetsFunc in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:332 #25 __TwigTemplate_cf9a3e7f0cc5184e01dc5ff32caf29ea3090611f897c6db9007984473a42d8e2:doDisplay in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:313 #24 Twig_Template:displayWithErrorHandling in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:287 #23 Twig_Template:display in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:332 #22 __TwigTemplate_7ed78c917cf9820144b83057dad8ced5c1f2859975b3a7a37f455bf42c6632c1:doDisplay in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:313 #21 Twig_Template:displayWithErrorHandling in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:287 #20 Twig_Template:display in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:332 #19 __TwigTemplate_8a50d17a2d76d1abae5733c0c7682a2c3e62d689ce44b2b9a1b9f4be0a721134:block_page_head in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:154 #18 Twig_Template:displayBlock in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:332 #17 __TwigTemplate_8a50d17a2d76d1abae5733c0c7682a2c3e62d689ce44b2b9a1b9f4be0a721134:block_page in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:154 #16 Twig_Template:displayBlock in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:332 #15 __TwigTemplate_8a50d17a2d76d1abae5733c0c7682a2c3e62d689ce44b2b9a1b9f4be0a721134:doDisplay in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:313 #14 Twig_Template:displayWithErrorHandling in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:287 #13 Twig_Template:display in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:332 #12 __TwigTemplate_a1e239c7a7dcde8871080dd0aaad4b31c6293058937b07e99e693cb95a611035:doDisplay in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:313 #11 Twig_Template:displayWithErrorHandling in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:287 #10 Twig_Template:display in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:298 #9 Twig_Template:render in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:293 #8 Twig_Environment:render in /homepages/18/d416749488/htdocs/app416749505/libraries/gantry5/classes/Gantry/Framework/Theme.php:80 #7 Gantry\Framework\Theme:render in /homepages/18/d416749488/htdocs/app416749505/templates/g5_hydrogen/index.php:25 #6 require in /homepages/18/d416749488/htdocs/app416749505/libraries/joomla/document/html.php:578 #5 JDocumentHtml:_loadTemplate in /homepages/18/d416749488/htdocs/app416749505/libraries/joomla/document/html.php:640 #4 JDocumentHtml:_fetchTemplate in /homepages/18/d416749488/htdocs/app416749505/libraries/joomla/document/html.php:455 #3 JDocumentHtml:parse in /homepages/18/d416749488/htdocs/app416749505/libraries/cms/application/cms.php:1048 #2 JApplicationCms:render in /homepages/18/d416749488/htdocs/app416749505/libraries/cms/application/site.php:758 #1 JApplicationSite:render in /homepages/18/d416749488/htdocs/app416749505/libraries/cms/application/cms.php:263 #0 JApplicationCms:execute in /homepages/18/d416749488/htdocs/app416749505/index.php:49

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;
            }
 
        if (isset($this->loadedTemplates[$cls])) {
            return $this->loadedTemplates[$cls];
        }
 
        if (!class_exists($cls, false)) {
            if (false === $cache = $this->getCacheFilename($name)) {
                eval('?>'.$this->compileSource($this->getLoader()->getSource($name), $name));
            } else {
                if (!is_file($cache) || ($this->isAutoReload() && !$this->isTemplateFresh($name, filemtime($cache)))) {
 
        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));
    }
 
 
        if (isset($this->loadedTemplates[$cls])) {
            return $this->loadedTemplates[$cls];
        }
 
        if (!class_exists($cls, false)) {
            if (false === $cache = $this->getCacheFilename($name)) {
                eval('?>'.$this->compileSource($this->getLoader()->getSource($name), $name));
            } else {
                if (!is_file($cache) || ($this->isAutoReload() && !$this->isTemplateFresh($name, filemtime($cache)))) {
 
        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));
    }
 
 
        if (isset($this->loadedTemplates[$cls])) {
            return $this->loadedTemplates[$cls];
        }
 
        if (!class_exists($cls, false)) {
            if (false === $cache = $this->getCacheFilename($name)) {
                eval('?>'.$this->compileSource($this->getLoader()->getSource($name), $name));
            } else {
                if (!is_file($cache) || ($this->isAutoReload() && !$this->isTemplateFresh($name, filemtime($cache)))) {
        } else {
            $template = null;
            $block = null;
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                throw $e;
 
        if (isset($this->loadedTemplates[$cls])) {
            return $this->loadedTemplates[$cls];
        }
 
        if (!class_exists($cls, false)) {
            if (false === $cache = $this->getCacheFilename($name)) {
                eval('?>'.$this->compileSource($this->getLoader()->getSource($name), $name));
            } else {
                if (!is_file($cache) || ($this->isAutoReload() && !$this->isTemplateFresh($name, filemtime($cache)))) {
        } else {
            $template = null;
            $block = null;
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                throw $e;
 
        if (isset($this->loadedTemplates[$cls])) {
            return $this->loadedTemplates[$cls];
        }
 
        if (!class_exists($cls, false)) {
            if (false === $cache = $this->getCacheFilename($name)) {
                eval('?>'.$this->compileSource($this->getLoader()->getSource($name), $name));
            } else {
                if (!is_file($cache) || ($this->isAutoReload() && !$this->isTemplateFresh($name, filemtime($cache)))) {
 
        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));
    }
 
 
        if (isset($this->loadedTemplates[$cls])) {
            return $this->loadedTemplates[$cls];
        }
 
        if (!class_exists($cls, false)) {
            if (false === $cache = $this->getCacheFilename($name)) {
                eval('?>'.$this->compileSource($this->getLoader()->getSource($name), $name));
            } else {
                if (!is_file($cache) || ($this->isAutoReload() && !$this->isTemplateFresh($name, filemtime($cache)))) {
 
        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);
    }
 
 
/** @var \Gantry\Framework\Configurations $configurations */
$configurations = $gantry['configurations'];
 
// Render the page.
echo $theme
    ->setLayout($configurations->current())
    ->render('index.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();
		}
 
// Set profiler start time and memory usage and mark afterLoad in the profiler.
JDEBUG ? $_PROFILER->setStart($startTime, $startMem)->mark('afterLoad') : null;
 
// Instantiate the application.
$app = JFactory::getApplication('site');
 
// Execute the application.
$app->execute();
 
Key Value
REDIRECT_UNIQUE_ID ZgVFefZYGaJK0KqrwkDgwwAAAAA
REDIRECT_SCRIPT_URL /index.php/en/referenzen
REDIRECT_SCRIPT_URI http://www.wma-muenchinger.de/index.php/en/referenzen
REDIRECT_DOCUMENT_ROOT /kunden/homepages/18/d416749488/htdocs/app416749505
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HANDLER x-mapp-php5.5
REDIRECT_STATUS 200
UNIQUE_ID ZgVFefZYGaJK0KqrwkDgwwAAAAA
SCRIPT_URL /index.php/en/referenzen
SCRIPT_URI http://www.wma-muenchinger.de/index.php/en/referenzen
HTTP_HOST www.wma-muenchinger.de
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME wma-muenchinger.de
SERVER_ADDR 82.165.85.168
SERVER_PORT 80
REMOTE_ADDR 34.229.50.161
DOCUMENT_ROOT /kunden/homepages/18/d416749488/htdocs/app416749505
REQUEST_SCHEME http
CONTEXT_PREFIX /system-bin/
CONTEXT_DOCUMENT_ROOT /kunden/usr/lib/cgi-bin/
SERVER_ADMIN webmaster@wma-muenchinger.de
SCRIPT_FILENAME /kunden/homepages/18/d416749488/htdocs/app416749505/index.php
REMOTE_PORT 27178
REDIRECT_URL /index.php/en/referenzen
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /index.php/en/referenzen
SCRIPT_NAME /index.php
STATUS 200
ORIG_PATH_INFO /en/referenzen
ORIG_PATH_TRANSLATED /kunden/homepages/18/d416749488/htdocs/app416749505/index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711621497.2948
REQUEST_TIME 1711621497
argv Array ( )
argc 0
empty
empty
empty
Key Value
7c67948307e4bce083b35da626044549 en-GB
empty
Key Value
REDIRECT_UNIQUE_ID ZgVFefZYGaJK0KqrwkDgwwAAAAA
REDIRECT_SCRIPT_URL /index.php/en/referenzen
REDIRECT_SCRIPT_URI http://www.wma-muenchinger.de/index.php/en/referenzen
REDIRECT_DOCUMENT_ROOT /kunden/homepages/18/d416749488/htdocs/app416749505
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HANDLER x-mapp-php5.5
REDIRECT_STATUS 200
UNIQUE_ID ZgVFefZYGaJK0KqrwkDgwwAAAAA
SCRIPT_URL /index.php/en/referenzen
SCRIPT_URI http://www.wma-muenchinger.de/index.php/en/referenzen
HTTP_HOST www.wma-muenchinger.de
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME wma-muenchinger.de
SERVER_ADDR 82.165.85.168
SERVER_PORT 80
REMOTE_ADDR 34.229.50.161
DOCUMENT_ROOT /kunden/homepages/18/d416749488/htdocs/app416749505
REQUEST_SCHEME http
CONTEXT_PREFIX /system-bin/
CONTEXT_DOCUMENT_ROOT /kunden/usr/lib/cgi-bin/
SERVER_ADMIN webmaster@wma-muenchinger.de
SCRIPT_FILENAME /kunden/homepages/18/d416749488/htdocs/app416749505/index.php
REMOTE_PORT 27178
REDIRECT_URL /index.php/en/referenzen
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /index.php/en/referenzen
SCRIPT_NAME /index.php
STATUS 200
ORIG_PATH_INFO /en/referenzen
ORIG_PATH_TRANSLATED /kunden/homepages/18/d416749488/htdocs/app416749505/index.php
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\PlainTextHandler
2. Whoops\Handler\JsonResponseHandler