Twig_Error_Runtime
An exception has been thrown during the rendering of a template ("array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead") in "@nucleus/page.html.twig" at line 2. Twig_Error_Runtime thrown with message "An exception has been thrown during the rendering of a template ("array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead") in "@nucleus/page.html.twig" at line 2." Stacktrace: #22 Twig_Error_Runtime in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:396 #21 Whoops\Exception\ErrorException in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:527 #20 Gantry\Component\Whoops\System:handleError in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:527 #19 Twig_Template:getAttribute in /home/karlovo/public_html/new2/cache/gantry5/rt_photon/twig/e2/e273bbe00a63872c152ffa3133bd216737ea0a493798f91ecf98918ade1db7d6.php:30 #18 __TwigTemplate_efbd380f58df656178ab44e3b0448dfe8a9704e224c1b474584a2afe7880e607:doDisplay in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:381 #17 Twig_Template:displayWithErrorHandling in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #16 Twig_Template:display in /home/karlovo/public_html/new2/cache/gantry5/rt_photon/twig/00/00e7e9998bee477807f36cd6c3677f228f1f6cdc30ac37471de3bfbc66081fed.php:24 #15 __TwigTemplate_3c8ebb8e98f239f2960a35fb7506f69c0b6dc43a3e8114e30c42921f8b06f4ac:doDisplay in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:381 #14 Twig_Template:displayWithErrorHandling in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #13 Twig_Template:display in /home/karlovo/public_html/new2/cache/gantry5/rt_photon/twig/d3/d314898d1a5c853712368cfb69be5881a6d59c2acc802640c61516eeddef8598.php:24 #12 __TwigTemplate_e14c3b1f1e91aa091879dea89e389c7f4e20a0f8b6b0f153a3c04b2007d07fb0:doDisplay in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:381 #11 Twig_Template:displayWithErrorHandling in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #10 Twig_Template:display in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:366 #9 Twig_Template:render in /home/karlovo/public_html/new2/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:347 #8 Twig_Environment:render in /home/karlovo/public_html/new2/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php:162 #7 Gantry\Component\Theme\AbstractTheme:render in /home/karlovo/public_html/new2/templates/rt_photon/index.php:24 #6 require in /home/karlovo/public_html/new2/libraries/joomla/document/html.php:578 #5 JDocumentHtml:_loadTemplate in /home/karlovo/public_html/new2/libraries/joomla/document/html.php:635 #4 JDocumentHtml:_fetchTemplate in /home/karlovo/public_html/new2/libraries/joomla/document/html.php:455 #3 JDocumentHtml:parse in /home/karlovo/public_html/new2/libraries/cms/application/cms.php:1054 #2 JApplicationCms:render in /home/karlovo/public_html/new2/libraries/cms/application/site.php:745 #1 JApplicationSite:render in /home/karlovo/public_html/new2/libraries/cms/application/cms.php:263 #0 JApplicationCms:execute in /home/karlovo/public_html/new2/index.php:49
Stack frames (23):
22 Twig_Error_Runtime
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php396
21 Whoops\Exception\ErrorException
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php527
20 Gantry\Component\Whoops\System handleError
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php527
19 Twig_Template getAttribute
/­home/­karlovo/­public_html/­new2/­cache/­gantry5/­rt_photon/­twig/­e2/­e273bbe00a63872c152ffa3133bd216737ea0a493798f91ecf98918ade1db7d6.php30
18 __TwigTemplate_efbd380f58df656178ab44e3b0448dfe8a9704e224c1b474584a2afe7880e607 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php381
17 Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php355
16 Twig_Template display
/­home/­karlovo/­public_html/­new2/­cache/­gantry5/­rt_photon/­twig/­00/­00e7e9998bee477807f36cd6c3677f228f1f6cdc30ac37471de3bfbc66081fed.php24
15 __TwigTemplate_3c8ebb8e98f239f2960a35fb7506f69c0b6dc43a3e8114e30c42921f8b06f4ac doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php381
14 Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php355
13 Twig_Template display
/­home/­karlovo/­public_html/­new2/­cache/­gantry5/­rt_photon/­twig/­d3/­d314898d1a5c853712368cfb69be5881a6d59c2acc802640c61516eeddef8598.php24
12 __TwigTemplate_e14c3b1f1e91aa091879dea89e389c7f4e20a0f8b6b0f153a3c04b2007d07fb0 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php381
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/­karlovo/­public_html/­new2/­templates/­rt_photon/­index.php24
6 require
/­home/­karlovo/­public_html/­new2/­libraries/­joomla/­document/­html.php578
5 JDocumentHtml _loadTemplate
/­home/­karlovo/­public_html/­new2/­libraries/­joomla/­document/­html.php635
4 JDocumentHtml _fetchTemplate
/­home/­karlovo/­public_html/­new2/­libraries/­joomla/­document/­html.php455
3 JDocumentHtml parse
/­home/­karlovo/­public_html/­new2/­libraries/­cms/­application/­cms.php1054
2 JApplicationCms render
/­home/­karlovo/­public_html/­new2/­libraries/­cms/­application/­site.php745
1 JApplicationSite render
/­home/­karlovo/­public_html/­new2/­libraries/­cms/­application/­cms.php263
0 JApplicationCms execute
/­home/­karlovo/­public_html/­new2/­index.php49
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            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);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
     *
     * @param array $context An array of parameters to pass to the template
     * @param array $blocks  An array of blocks to pass to the template
     */
    abstract protected function doDisplay(array $context, array $blocks = array());
            } 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;
            }
Exception message: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
            } 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_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), "theme", array()), "setLayout", array(), "method");
        // line 2
        $context["segments"] = $this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "theme", array()), "segments", array());
        // line 4
        ob_start();
        // line 5
        if ($this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "theme", array()), "hasContent", array(), "method")) {
            // line 6
            $this->displayBlock('content', $context, $blocks);
        }
        $context["content"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 11
        $context["offcanvas"] = null;
            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;
        }
 
        return ob_get_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 = JUri::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  JDocumentHTML  instance of $this to allow chaining
	 *
	 * @since   11.1
	 *
	 * @param   array  $params  Parameters for fetching the template
	 *
	 * @return  JDocumentHTML instance of $this to allow chaining
	 *
	 * @since   11.1
	 */
	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->isSite() && $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 ? $_PROFILER->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
TZ Europe/Sofia
REDIRECT_UNIQUE_ID ZgVY6e-MX89icT-3qPKiEwAAAAA
REDIRECT_SCRIPT_URL /index.php/pages/contact/event/123123
REDIRECT_SCRIPT_URI http://new2.karlovo.bg/index.php/pages/contact/event/123123
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HANDLER application/x-httpd-ea-php74
REDIRECT_STATUS 200
UNIQUE_ID ZgVY6e-MX89icT-3qPKiEwAAAAA
SCRIPT_URL /index.php/pages/contact/event/123123
SCRIPT_URI http://new2.karlovo.bg/index.php/pages/contact/event/123123
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST new2.karlovo.bg
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
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME new2.karlovo.bg
SERVER_ADDR 92.204.54.55
SERVER_PORT 80
REMOTE_ADDR 3.88.60.5
DOCUMENT_ROOT /home/karlovo/public_html/new2
REQUEST_SCHEME http
CONTEXT_PREFIX /cgi-sys
CONTEXT_DOCUMENT_ROOT /usr/local/cpanel/cgi-sys/
SERVER_ADMIN webmaster@new2.karlovo.bg
SCRIPT_FILENAME /home/karlovo/public_html/new2/index.php
REMOTE_PORT 35350
REDIRECT_URL /index.php/pages/contact/event/123123
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /index.php/pages/contact/event/123123
SCRIPT_NAME /index.php
PATH_INFO /pages/contact/event/123123
PATH_TRANSLATED /home/karlovo/public_html/new2/pages/contact/event/123123
ORIG_PATH_INFO /index.php/pages/contact/event/123123
ORIG_SCRIPT_NAME /cgi-sys/ea-php74
ORIG_SCRIPT_FILENAME /usr/local/cpanel/cgi-sys/ea-php74
ORIG_PATH_TRANSLATED /home/karlovo/public_html/new2/index.php/pages/contact/event/123123
PHP_SELF /index.php/pages/contact/event/123123
REQUEST_TIME_FLOAT 1711626473.546
REQUEST_TIME 1711626473
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler