TypeError
array_key_exists(): Argument #2 ($array) must be of type array, Gantry\Framework\Gantry given TypeError thrown with message "array_key_exists(): Argument #2 ($array) must be of type array, Gantry\Framework\Gantry given" Stacktrace: #20 TypeError in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:533 #19 Twig_Template:getAttribute in /home/public/sites/www.voelcoachingmetpaarden.nl/cache/gantry5/rt_xenon/twig/ec/ece1247fa7c89a3a015afaf413784f3f7b96c4973cd04f9fd2e699fc6e31dcaa.php:28 #18 __TwigTemplate_a4cdea41f34c3db2663d1e7435e82ee4eda57e221b9edc9a4e7ceee17e1c5690:doDisplay in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:387 #17 Twig_Template:displayWithErrorHandling in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #16 Twig_Template:display in /home/public/sites/www.voelcoachingmetpaarden.nl/cache/gantry5/rt_xenon/twig/bc/bce3a59ee4a38af9193f277e0b11ae32b4e4b443c6cc0b0bffd23c03b1a2f048.php:24 #15 __TwigTemplate_b9acf200aff3ac2a4ca4778e4dc1303a68eb16c22d183fdb5f595fd54bbe8fa7:doDisplay in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:387 #14 Twig_Template:displayWithErrorHandling in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #13 Twig_Template:display in /home/public/sites/www.voelcoachingmetpaarden.nl/cache/gantry5/rt_xenon/twig/1f/1fba92298fd2621c9c960d479547aeddbc63a7cabe165901b1544ae208696bb5.php:24 #12 __TwigTemplate_547bb3807959bcbe28202c06aa7fe7a4a6498f2e651fc8ac9b43e7c27d1fde17:doDisplay in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:387 #11 Twig_Template:displayWithErrorHandling in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #10 Twig_Template:display in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:366 #9 Twig_Template:render in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:347 #8 Twig_Environment:render in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php:162 #7 Gantry\Component\Theme\AbstractTheme:render in /home/public/sites/www.voelcoachingmetpaarden.nl/templates/rt_xenon/index.php:24 #6 require in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/src/Document/HtmlDocument.php:658 #5 Joomla\CMS\Document\HtmlDocument:_loadTemplate in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/src/Document/HtmlDocument.php:720 #4 Joomla\CMS\Document\HtmlDocument:_fetchTemplate in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/src/Document/HtmlDocument.php:535 #3 Joomla\CMS\Document\HtmlDocument:parse in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/src/Application/CMSApplication.php:1030 #2 Joomla\CMS\Application\CMSApplication:render in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/src/Application/SiteApplication.php:778 #1 Joomla\CMS\Application\SiteApplication:render in /home/public/sites/www.voelcoachingmetpaarden.nl/libraries/src/Application/CMSApplication.php:202 #0 Joomla\CMS\Application\CMSApplication:execute in /home/public/sites/www.voelcoachingmetpaarden.nl/index.php:49
Stack frames (21):
20 TypeError
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php533
19 Twig_Template getAttribute
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­cache/­gantry5/­rt_xenon/­twig/­ec/­ece1247fa7c89a3a015afaf413784f3f7b96c4973cd04f9fd2e699fc6e31dcaa.php28
18 __TwigTemplate_a4cdea41f34c3db2663d1e7435e82ee4eda57e221b9edc9a4e7ceee17e1c5690 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php387
17 Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php355
16 Twig_Template display
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­cache/­gantry5/­rt_xenon/­twig/­bc/­bce3a59ee4a38af9193f277e0b11ae32b4e4b443c6cc0b0bffd23c03b1a2f048.php24
15 __TwigTemplate_b9acf200aff3ac2a4ca4778e4dc1303a68eb16c22d183fdb5f595fd54bbe8fa7 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php387
14 Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php355
13 Twig_Template display
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­cache/­gantry5/­rt_xenon/­twig/­1f/­1fba92298fd2621c9c960d479547aeddbc63a7cabe165901b1544ae208696bb5.php24
12 __TwigTemplate_547bb3807959bcbe28202c06aa7fe7a4a6498f2e651fc8ac9b43e7c27d1fde17 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php387
11 Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php355
10 Twig_Template display
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php366
9 Twig_Template render
…/­vendor/­twig/­twig/­lib/­Twig/­Environment.php347
8 Twig_Environment render
…/­classes/­Gantry/­Component/­Theme/­AbstractTheme.php162
7 Gantry\Component\Theme\AbstractTheme render
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­templates/­rt_xenon/­index.php24
6 require
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­libraries/­src/­Document/­HtmlDocument.php658
5 Joomla\CMS\Document\HtmlDocument _loadTemplate
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­libraries/­src/­Document/­HtmlDocument.php720
4 Joomla\CMS\Document\HtmlDocument _fetchTemplate
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­libraries/­src/­Document/­HtmlDocument.php535
3 Joomla\CMS\Document\HtmlDocument parse
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­libraries/­src/­Application/­CMSApplication.php1030
2 Joomla\CMS\Application\CMSApplication render
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­libraries/­src/­Application/­SiteApplication.php778
1 Joomla\CMS\Application\SiteApplication render
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­libraries/­src/­Application/­CMSApplication.php202
0 Joomla\CMS\Application\CMSApplication execute
/­home/­public/­sites/­www.voelcoachingmetpaarden.nl/­index.php49
            } else {
                $message = sprintf('Impossible to invoke a method ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
            }
 
            throw new Twig_Error_Runtime($message, -1, $this->getTemplateName());
        }
 
        // object property
        if (self::METHOD_CALL !== $type && !$object instanceof self) { // Twig_Template does not have public properties, and we don't want to allow access to internal ones
            if (isset($object->$item) || array_key_exists((string) $item, $object)) {
                if ($isDefinedTest) {
                    return true;
                }
 
                if ($this->env->hasExtension('sandbox')) {
                    $this->env->getExtension('sandbox')->checkPropertyAllowed($object, $item);
                }
 
                return $object->$item;
            }
            'page_footer' => array($this, 'block_page_footer'),
            'page' => array($this, 'block_page'),
            'page_body' => array($this, 'block_page_body'),
        );
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        $this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "debugger", array()), "startTimer", array(0 => "render", 1 => "Rendering page"), "method");
        // line 2
        $this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "theme", array()), "setLayout", array(), "method");
        // line 3
        $context["segments"] = $this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "theme", array()), "segments", array());
        // line 5
        ob_start();
        // line 6
        if ($this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "theme", array()), "hasContent", array(), "method")) {
            // line 7
            $this->displayBlock('content', $context, $blocks);
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
                $e->setTemplateFile($this->getTemplateName());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
 
        return implode("\n", $source);
    }
 
    /**
     * {@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 {
    }
 
    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));
    }
 
    // line 3
    public function block_page_footer($context, array $blocks = array())
    {
        // line 4
        $this->displayParentBlock("page_footer", $context, $blocks);
        echo "
    <jdoc:include type=\"modules\" name=\"debug\" />";
    }
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
                $e->setTemplateFile($this->getTemplateName());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
 
        return implode("\n", $source);
    }
 
    /**
     * {@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 {
    }
 
    protected function doGetParent(array $context)
    {
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_content($context, array $blocks = array())
    {
        // line 4
        echo $this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "platform", array()), "displayContent", array(0 => (isset($context["content"]) ? $context["content"] : null)), "method");
    }
 
    public function getTemplateName()
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
                $e->setTemplateFile($this->getTemplateName());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
 
        return implode("\n", $source);
    }
 
    /**
     * {@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 {
 
    /**
     * {@inheritdoc}
     */
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        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();
            }
     *
     * @return string The rendered template
     *
     * @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);
    }
 
    /**
     * Displays a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @param string $file
     * @param array $context
     * @return string
     */
    public function render($file, array $context = [])
    {
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $this->renderer()->render($file, $context);
    }
 
    /**
     * Compile and render twig string.
     *
     * @param string $string
     * @param array $context
     * @return string
     */
    public function compile($string, array $context = [])
 
/** @var \Gantry\Framework\Theme $theme */
$theme = $gantry['theme'];
 
/** @var \Gantry\Framework\Configurations $configurations */
$configurations = $gantry['configurations'];
 
// Render the page.
echo $theme
    ->render('index.html.twig');
 
 
		// Check to see if we have a valid template file
		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();
		}
 
		// Try to find a favicon by checking the template and root folder
		$icon = '/favicon.ico';
 
		foreach (array($directory, JPATH_BASE) as $dir)
		{
			if (file_exists($dir . $icon))
		$lang->load('tpl_' . $template, JPATH_BASE, null, false, true)
			|| $lang->load('tpl_' . $template, $directory . '/' . $template, null, false, true);
 
		// Assign the variables
		$this->template = $template;
		$this->baseurl = Uri::base(true);
		$this->params = isset($params['params']) ? $params['params'] : new Registry;
 
		// Load
		$this->_template = $this->_loadTemplate($directory . '/' . $template, $file);
 
		return $this;
	}
 
	/**
	 * Parse a document template
	 *
	 * @return  HtmlDocument  instance of $this to allow chaining
	 *
	 * @since   1.7.0
	 *
	 * @param   array  $params  Parameters for fetching the template
	 *
	 * @return  HtmlDocument instance of $this to allow chaining
	 *
	 * @since   1.7.0
	 */
	public function parse($params = array())
	{
		return $this->_fetchTemplate($params)->_parseTemplate();
	}
 
	/**
	 * Outputs the template to the browser.
	 *
	 * @param   boolean  $caching  If true, cache the output
	 * @param   array    $params   Associative array of attributes
	 *
	 * @return  string The rendered data
	 *
			$this->docOptions['directory'] = $this->get('themes.base');
		}
		// 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.
		\JPluginHelper::importPlugin('system');
		$this->triggerEvent('onBeforeRender');
 
		$caching = false;
 
		if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !\JFactory::getUser()->get('id'))
		{
			$caching = true;
				// Ensure themeFile is set by now
				if ($this->get('themeFile') == '')
				{
					$this->set('themeFile', $file . '.php');
				}
 
				break;
		}
 
		parent::render();
	}
 
	/**
	 * Route the application.
	 *
	 * Routing is the process of examining the request environment to determine which
	 * component should receive the request. The component optional parameters
	 * are then set in the request object to be processed when the application is being
	 * dispatched.
	 *
	public function execute()
	{
		// 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();
		}
 
		// If gzip compression is enabled in configuration and the server is compliant, compress the output.
		if ($this->get('gzip') && !ini_get('zlib.output_compression') && ini_get('output_handler') !== 'ob_gzhandler')
		{
			$this->compress();
 
			// Trigger the onAfterCompress event.
			$this->triggerEvent('onAfterCompress');
		}
require_once JPATH_BASE . '/includes/framework.php';
 
// Set profiler start time and memory usage and mark afterLoad in the profiler.
JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad') : null;
 
// Instantiate the application.
$app = JFactory::getApplication('site');
 
// Execute the application.
$app->execute();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_SCRIPT_URI http://voelcoachingmetpaarden.nl/partners/jg-ondersteuning
REDIRECT_HTTP_X_FORWARDED_PROTO http
REDIRECT_AWDOMAIN voelcoachingmetpaarden.nl
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_STATUS 200
HTTP_AUTHORIZATION
HTTP_HOST voelcoachingmetpaarden.nl
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_PORT 8080
HTTP_X_AMZN_TRACE_ID Root=1-65f94b08-2b704ef647a8689e419f2c3e
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_ACCEPT_ENCODING gzip
HTTP_X_VARNISH 250886879
HTTP_X_FORWARDED_HOST voelcoachingmetpaarden.nl
HTTP_X_FORWARDED_SERVER ip-172-16-1-50.eu-west-1.compute.internal
HTTP_CONNECTION close
PATH /bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME voelcoachingmetpaarden.nl
SERVER_ADDR 192.168.0.6
SERVER_PORT 80
REMOTE_ADDR 44.220.245.254
DOCUMENT_ROOT /home/public/sites/www.voelcoachingmetpaarden.nl
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/public/sites/www.voelcoachingmetpaarden.nl
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /home/public/sites/www.voelcoachingmetpaarden.nl/index.php
REMOTE_PORT 49524
REDIRECT_URL /partners/jg-ondersteuning
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /partners/jg-ondersteuning
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710836488.8463
REQUEST_TIME 1710836488
empty
0. Whoops\Handler\PrettyPageHandler