Deprecated: Function create_function() is deprecated in /home/customer/www/autismfriendly.com/public_html/libraries/rokcommon/RokCommon/Service/ContainerImpl.php on line 460
Crikey! There was an error...
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 1. 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 1." Stacktrace: #22 Twig_Error_Runtime in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:402 #21 Whoops\Exception\ErrorException in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:533 #20 Gantry\Component\Whoops\System:handleError in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:533 #19 Twig_Template:getAttribute in /home/customer/www/autismfriendly.com/public_html/cache/gantry5/rt_xenon/twig/fa/fa1b88c02583f648a060e955af28c412668d169d6f2939a694576eef28bc56a6.php:28 #18 __TwigTemplate_f410ce97b15316bfd96db80ff68714515127c5999131b4de0036b7ef02cfb636:doDisplay in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:387 #17 Twig_Template:displayWithErrorHandling in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #16 Twig_Template:display in /home/customer/www/autismfriendly.com/public_html/cache/gantry5/rt_xenon/twig/50/50c133374a0b164bf937017f48460d2843ee50f1f7f66e365b9d5514df2ee19a.php:24 #15 __TwigTemplate_0a2c84105a66925c3678560dc2ac3a78e1f7bcddf56c4bff472154772c386d01:doDisplay in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:387 #14 Twig_Template:displayWithErrorHandling in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #13 Twig_Template:display in /home/customer/www/autismfriendly.com/public_html/cache/gantry5/rt_xenon/twig/87/8747da6d61d5f4503605ca239a55350009dd33431a042b447eb43a7127a78184.php:24 #12 __TwigTemplate_7f4fa15446917323d93fd8ecabdf42452284562e09a8c6554aa22ee8b587015b:doDisplay in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:387 #11 Twig_Template:displayWithErrorHandling in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:355 #10 Twig_Template:display in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:366 #9 Twig_Template:render in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:347 #8 Twig_Environment:render in /home/customer/www/autismfriendly.com/public_html/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php:162 #7 Gantry\Component\Theme\AbstractTheme:render in /home/customer/www/autismfriendly.com/public_html/templates/rt_xenon/index.php:24 #6 require in /home/customer/www/autismfriendly.com/public_html/libraries/src/Document/HtmlDocument.php:658 #5 Joomla\CMS\Document\HtmlDocument:_loadTemplate in /home/customer/www/autismfriendly.com/public_html/libraries/src/Document/HtmlDocument.php:720 #4 Joomla\CMS\Document\HtmlDocument:_fetchTemplate in /home/customer/www/autismfriendly.com/public_html/libraries/src/Document/HtmlDocument.php:535 #3 Joomla\CMS\Document\HtmlDocument:parse in /home/customer/www/autismfriendly.com/public_html/libraries/src/Application/CMSApplication.php:1126 #2 Joomla\CMS\Application\CMSApplication:render in /home/customer/www/autismfriendly.com/public_html/libraries/src/Application/SiteApplication.php:780 #1 Joomla\CMS\Application\SiteApplication:render in /home/customer/www/autismfriendly.com/public_html/libraries/src/Application/CMSApplication.php:309 #0 Joomla\CMS\Application\CMSApplication:execute in /home/customer/www/autismfriendly.com/public_html/index.php:49
Stack frames (23):
22 Twig_Error_Runtime
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php402
21 Whoops\Exception\ErrorException
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php533
20 Gantry\Component\Whoops\System handleError
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php533
19 Twig_Template getAttribute
/­home/­customer/­www/­autismfriendly.com/­public_html/­cache/­gantry5/­rt_xenon/­twig/­fa/­fa1b88c02583f648a060e955af28c412668d169d6f2939a694576eef28bc56a6.php28
18 __TwigTemplate_f410ce97b15316bfd96db80ff68714515127c5999131b4de0036b7ef02cfb636 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php387
17 Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php355
16 Twig_Template display
/­home/­customer/­www/­autismfriendly.com/­public_html/­cache/­gantry5/­rt_xenon/­twig/­50/­50c133374a0b164bf937017f48460d2843ee50f1f7f66e365b9d5514df2ee19a.php24
15 __TwigTemplate_0a2c84105a66925c3678560dc2ac3a78e1f7bcddf56c4bff472154772c386d01 doDisplay
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php387
14 Twig_Template displayWithErrorHandling
…/­vendor/­twig/­twig/­lib/­Twig/­Template.php355
13 Twig_Template display
/­home/­customer/­www/­autismfriendly.com/­public_html/­cache/­gantry5/­rt_xenon/­twig/­87/­8747da6d61d5f4503605ca239a55350009dd33431a042b447eb43a7127a78184.php24
12 __TwigTemplate_7f4fa15446917323d93fd8ecabdf42452284562e09a8c6554aa22ee8b587015b 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/­customer/­www/­autismfriendly.com/­public_html/­templates/­rt_xenon/­index.php24
6 require
/­home/­customer/­www/­autismfriendly.com/­public_html/­libraries/­src/­Document/­HtmlDocument.php658
5 Joomla\CMS\Document\HtmlDocument _loadTemplate
/­home/­customer/­www/­autismfriendly.com/­public_html/­libraries/­src/­Document/­HtmlDocument.php720
4 Joomla\CMS\Document\HtmlDocument _fetchTemplate
/­home/­customer/­www/­autismfriendly.com/­public_html/­libraries/­src/­Document/­HtmlDocument.php535
3 Joomla\CMS\Document\HtmlDocument parse
/­home/­customer/­www/­autismfriendly.com/­public_html/­libraries/­src/­Application/­CMSApplication.php1126
2 Joomla\CMS\Application\CMSApplication render
/­home/­customer/­www/­autismfriendly.com/­public_html/­libraries/­src/­Application/­SiteApplication.php780
1 Joomla\CMS\Application\SiteApplication render
/­home/­customer/­www/­autismfriendly.com/­public_html/­libraries/­src/­Application/­CMSApplication.php309
0 Joomla\CMS\Application\CMSApplication execute
/­home/­customer/­www/­autismfriendly.com/­public_html/­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_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   11.1
	 *
	 * @param   array  $params  Parameters for fetching the template
	 *
	 * @return  HtmlDocument 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->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
PATH /usr/local/bin:/usr/bin:/bin
DOCUMENT_ROOT /home/u631-smojreg6p0fr/www/autismfriendly.com/public_html
UNIQUE_ID ZHQw615pZi-p977zFkxiegAAAAk
SCRIPT_URL /
SCRIPT_URI http://autismfriendly.com/
PHPHANDLER /usr/local/php74/bin/php
HTTP_X_PORT 38850
HTTP_X_REAL_IP 18.232.31.255
HTTP_HOST autismfriendly.com
HTTP_IF_MODIFIED_SINCE Fri, 24 Mar 2023 21:44:40 GMT
HTTP_X_ACCEPT_ENCODING br,gzip
HTTP_CONNECTION close
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
SERVER_SOFTWARE Apache
SERVER_NAME autismfriendly.com
SERVER_ADDR 35.208.74.124
SERVER_PORT 80
REMOTE_ADDR 18.232.31.255
SERVER_ADMIN webmaster
SCRIPT_FILENAME /home/u631-smojreg6p0fr/www/autismfriendly.com/public_html/index.php
REMOTE_PORT 12148
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /
SCRIPT_NAME /index.php
PHP_DEFAULT_SOCKET_TIMEOUT 40
PHP_MAX_EXECUTION_TIME 120
PHP_MAX_INPUT_TIME 120
PHP_MEMORY_LIMIT 768M
PHP_POST_MAX_SIZE 256M
PHP_UPLOAD_MAX_FILESIZE 256M
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1685336299.1334
REQUEST_TIME 1685336299
empty
0. Whoops\Handler\PrettyPageHandler