Deprecated: Function create_function() is deprecated in /home/customer/www/tradingbud.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/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:443 #21 Whoops\Exception\ErrorException in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:576 #20 Gantry\Component\Whoops\System:handleError in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:576 #19 Twig_Template:getAttribute in /home/customer/www/tradingbud.com/public_html/cache/gantry5/rt_ambrosia/twig/95/951478f175ef65d76d1875e8b5d0c7e4113fe23df04477b7cb3153500d6debc8.php:28 #18 __TwigTemplate_59584a7e8c7949e469d99793e39f93551965d151f1e35344474dd918d9c53146:doDisplay in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:428 #17 Twig_Template:displayWithErrorHandling in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:396 #16 Twig_Template:display in /home/customer/www/tradingbud.com/public_html/cache/gantry5/rt_ambrosia/twig/6c/6cb058f566f3510d64693b23c8226d1b7412ac2160a7e9933bfec46ad2c0c314.php:24 #15 __TwigTemplate_6a071bdecf7db8e215c86bff746e54fa014b3fdbabee2bfdc0c30926d902bc27:doDisplay in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:428 #14 Twig_Template:displayWithErrorHandling in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:396 #13 Twig_Template:display in /home/customer/www/tradingbud.com/public_html/cache/gantry5/rt_ambrosia/twig/d7/d7b1beda6eb0d76641fb685eb5c4abc74f62c51f21285f3e2b1e9d37ff273304.php:24 #12 __TwigTemplate_e9c06bc5cd72301ae21b422b18fbd474fc8d0b7f2141b94ad95fad4c285777cd:doDisplay in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:428 #11 Twig_Template:displayWithErrorHandling in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:396 #10 Twig_Template:display in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Template.php:407 #9 Twig_Template:render in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:362 #8 Twig_Environment:render in /home/customer/www/tradingbud.com/public_html/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php:162 #7 Gantry\Component\Theme\AbstractTheme:render in /home/customer/www/tradingbud.com/public_html/templates/rt_ambrosia/index.php:24 #6 require in /home/customer/www/tradingbud.com/public_html/libraries/joomla/document/html.php:578 #5 JDocumentHtml:_loadTemplate in /home/customer/www/tradingbud.com/public_html/libraries/joomla/document/html.php:640 #4 JDocumentHtml:_fetchTemplate in /home/customer/www/tradingbud.com/public_html/libraries/joomla/document/html.php:455 #3 JDocumentHtml:parse in /home/customer/www/tradingbud.com/public_html/libraries/cms/application/cms.php:1072 #2 JApplicationCms:render in /home/customer/www/tradingbud.com/public_html/libraries/cms/application/site.php:773 #1 JApplicationSite:render in /home/customer/www/tradingbud.com/public_html/libraries/cms/application/cms.php:267 #0 JApplicationCms:execute in /home/customer/www/tradingbud.com/public_html/index.php:49
Stack frames (23)
22
Twig_Error_Runtime
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
443
21
Whoops
\
Exception
\
ErrorException
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
576
20
Gantry
\
Component
\
Whoops
\
System
handleError
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
576
19
Twig_Template
getAttribute
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
cache
/
gantry5
/
rt_ambrosia
/
twig
/
95
/
951478f175ef65d76d1875e8b5d0c7e4113fe23df04477b7cb3153500d6debc8.php
28
18
__TwigTemplate_59584a7e8c7949e469d99793e39f93551965d151f1e35344474dd918d9c53146
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
428
17
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
396
16
Twig_Template
display
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
cache
/
gantry5
/
rt_ambrosia
/
twig
/
6c
/
6cb058f566f3510d64693b23c8226d1b7412ac2160a7e9933bfec46ad2c0c314.php
24
15
__TwigTemplate_6a071bdecf7db8e215c86bff746e54fa014b3fdbabee2bfdc0c30926d902bc27
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
428
14
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
396
13
Twig_Template
display
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
cache
/
gantry5
/
rt_ambrosia
/
twig
/
d7
/
d7b1beda6eb0d76641fb685eb5c4abc74f62c51f21285f3e2b1e9d37ff273304.php
24
12
__TwigTemplate_e9c06bc5cd72301ae21b422b18fbd474fc8d0b7f2141b94ad95fad4c285777cd
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
428
11
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
396
10
Twig_Template
display
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
407
9
Twig_Template
render
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
362
8
Twig_Environment
render
/
classes
/
Gantry
/
Component
/
Theme
/
AbstractTheme.php
162
7
Gantry
\
Component
\
Theme
\
AbstractTheme
render
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
templates
/
rt_ambrosia
/
index.php
24
6
require
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
libraries
/
joomla
/
document
/
html.php
578
5
JDocumentHtml
_loadTemplate
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
libraries
/
joomla
/
document
/
html.php
640
4
JDocumentHtml
_fetchTemplate
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
libraries
/
joomla
/
document
/
html.php
455
3
JDocumentHtml
parse
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
libraries
/
cms
/
application
/
cms.php
1072
2
JApplicationCms
render
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
libraries
/
cms
/
application
/
site.php
773
1
JApplicationSite
render
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
libraries
/
cms
/
application
/
cms.php
267
0
JApplicationCms
execute
/
home
/
customer
/
www
/
tradingbud.com
/
public_html
/
index.php
49
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateName()) {
                $e->setTemplateName($this->getTemplateName());
            }
 
            // 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());
 
    /**
     * Returns a variable from the context.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * This method should not be overridden in a sub-class as this is an
     * implementation detail that has been introduced to optimize variable
     * access for versions of PHP before 5.4. This is not a way to override
            if ($isDefinedTest) {
                return false;
            }
 
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            if (null === $object) {
                $message = sprintf('Impossible to invoke a method ("%s") on a null variable.', $item);
            } 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('Twig_Extension_Sandbox')) {
                    $this->env->getExtension('Twig_Extension_Sandbox')->checkPropertyAllowed($object, $item);
                }
 
                return $object->$item;
            }
        }
 
        $class = get_class($object);
 
        // object method
        if (!isset(self::$cache[$class])) {
            // get_class_methods returns all methods accessible in the scope, but we only want public ones to be accessible in templates
            if ($object instanceof self) {
                $ref = new ReflectionClass($class);
                $methods = array();
Exception message: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
            if ($isDefinedTest) {
                return false;
            }
 
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            if (null === $object) {
                $message = sprintf('Impossible to invoke a method ("%s") on a null variable.', $item);
            } 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('Twig_Extension_Sandbox')) {
                    $this->env->getExtension('Twig_Extension_Sandbox')->checkPropertyAllowed($object, $item);
                }
 
                return $object->$item;
            }
        }
 
        $class = get_class($object);
 
        // object method
        if (!isset(self::$cache[$class])) {
            // get_class_methods returns all methods accessible in the scope, but we only want public ones to be accessible in templates
            if ($object instanceof self) {
                $ref = new ReflectionClass($class);
                $methods = array();
 
        $this->parent = false;
 
        $this->blocks = array(
            'content' => array($this, 'block_content'),
            'page_offcanvas' => array($this, 'block_page_offcanvas'),
            'page_layout' => array($this, 'block_page_layout'),
            'page_top' => array($this, 'block_page_top'),
            'page_bottom' => array($this, 'block_page_bottom'),
            'page_head' => array($this, 'block_page_head'),
            '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(($context["gantry"] ?? null), "debugger", array()), "startTimer", array(0 => "render", 1 => "Rendering page"), "method");
        // line 2
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", array()), "setLayout", array(), "method");
        // line 3
        $context["segments"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", array()), "segments", array());
        // line 5
        ob_start();
        // line 6
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", array()), "hasContent", array(), "method")) {
            // line 7
            $this->displayBlock('content', $context, $blocks);
        }
        $context["content"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 12
        $context["offcanvas"] = null;
        // line 13
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            if (($this->getAttribute($context["segment"], "type", array()) == "offcanvas")) {
                // line 14
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            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->getTemplateName()) {
                $e->setTemplateName($this->getTemplateName());
            }
 
            // 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.
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    /**
     * {@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) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);
 
        // line 1
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->blocks = array(
            'page_footer' => array($this, 'block_page_footer'),
        );
    }
 
    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\" />";
    }
 
    public function getTemplateName()
    {
        return "partials/page.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
    }
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            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->getTemplateName()) {
                $e->setTemplateName($this->getTemplateName());
            }
 
            // 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.
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    /**
     * {@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) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);
 
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "index.html.twig", 1);
        $this->blocks = array(
            'content' => array($this, 'block_content'),
        );
    }
 
    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(($context["gantry"] ?? null), "platform", array()), "displayContent", array(0 => ($context["content"] ?? null)), "method");
    }
 
    public function getTemplateName()
    {
        return "index.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
    }
 
    public function getDebugInfo()
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            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->getTemplateName()) {
                $e->setTemplateName($this->getTemplateName());
            }
 
            // 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.
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    /**
     * {@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) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
        return $this->blocks;
    }
 
    /**
     * {@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) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @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
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function display($name, array $context = array())
    {
        $this->loadTemplate($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
 
            $this->renderer = $this->extendTwig($twig, $loader);
        }
 
        return $this->renderer;
    }
 
    /**
     * Render a template file by using given context.
     *
     * @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 = [])
    {
        $renderer = $this->renderer();
        $template = $renderer->createTemplate($string);
 
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $template->render($context);
    }
 
 * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
 * @license   GNU/GPLv2 and later
 *
 * http://www.gnu.org/licenses/gpl-2.0.html
 */
 
defined('_JEXEC') or die;
 
// Bootstrap Gantry framework or fail gracefully (inside included file).
$gantry = include __DIR__ . '/includes/gantry.php';
 
/** @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');
 
if($_REQUEST['option']=='com_users' && $_REQUEST['layout']== 'edit')
print '<script>
		jQuery(document).ready(function(){
		jQuery(".g-menu-item-101").removeClass("active");
		});
</script>';
	 * @param   string  $directory  The name of the template
	 * @param   string  $filename   The actual filename
	 *
	 * @return  string  The contents of the template
	 *
	 * @since   11.1
	 */
	protected function _loadTemplate($directory, $filename)
	{
		$contents = '';
 
		// 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))
			{
				$path = str_replace(JPATH_BASE, '', $dir);
				$path = str_replace('\\', '/', $path);
				$this->addFavicon(JUri::base(true) . $path . $icon);
				break;
			}
		}
 
		return $contents;
	}
 
		if (!file_exists($directory . '/' . $template . '/' . $file))
		{
			$file = 'index.php';
		}
 
		// Load the language file for the template
		$lang = JFactory::getLanguage();
 
		// 1.5 or core then 1.6
		$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
	 */
	protected function _parseTemplate()
	{
		$matches = array();
 
		if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
		{
			$template_tags_first = array();
			$template_tags_last = array();
 
			$options['title'] = (isset($args[3])) ? $args[3] : null;
		}
 
		parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
 
		return $this;
	}
 
	/**
	 * Parses the template and populates the buffer
	 *
	 * @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
	 *
	 * @since   11.1
	 */
	public function render($caching = false, $params = array())
	{
		$this->_caching = $caching;
 
		if (empty($this->_template))
		{
			$this->parse($params);
		}
	 */
	protected function render()
	{
		// Setup the document options.
		$this->docOptions['template'] = $this->get('theme');
		$this->docOptions['file']     = $this->get('themeFile', 'index.php');
		$this->docOptions['params']   = $this->get('themeParams');
 
		if ($this->get('themes.base'))
		{
			$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;
		}
 
		// Render the document.
		$data = $this->document->render($caching, $this->docOptions);
 
		// Set the application output data.
		$this->setBody($data);
 
		// Trigger the onAfterRender event.
		$this->triggerEvent('onAfterRender');
					$this->setUserState('users.login.form.data', array('return' => JUri::getInstance()->toString()));
					$this->set('themeFile', 'offline.php');
					$this->setHeader('Status', '503 Service Temporarily Unavailable', 'true');
				}
 
				if (!is_dir(JPATH_THEMES . '/' . $template->template) && !$this->get('offline'))
				{
					$this->set('themeFile', 'component.php');
				}
 
				// 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.
	 *
	 * @return  void
	 *
	 * @since   3.2
	 */
	protected function route()
	{
		// Execute the parent method
		parent::route();
 
		$Itemid = $this->input->getInt('Itemid', null);
		}
	}
 
	/**
	 * Execute the application.
	 *
	 * @return  void
	 *
	 * @since   3.2
	 */
	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');
		}
 
		// Send the application response.
		$this->respond();
 
		// Trigger the onAfterRespond event.
		$this->triggerEvent('onAfterRespond');
	}
 
	/**
	 * Check if the user is required to reset their password.
{
	include_once __DIR__ . '/defines.php';
}
 
if (!defined('_JDEFINES'))
{
	define('JPATH_BASE', __DIR__);
	require_once JPATH_BASE . '/includes/defines.php';
}
 
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
Key Value
a9f4c6b9af513aa6faf4ea3a902328c3 en-GB
empty
Key Value
PATH /usr/local/bin:/usr/bin:/bin
DOCUMENT_ROOT /home/u572-gnhhr4hmsxkw/www/tradingbud.com/public_html
REDIRECT_STATUS 200
HTTPS on
UNIQUE_ID Zh_IutfaGZl1plYUoOXpzwAAAAU
SCRIPT_URL /en/tools/social-scanner
SCRIPT_URI https://tradingbud.com/en/tools/social-scanner
HTTP_AUTHORIZATION
PHPHANDLER /usr/local/php74/bin/php
HTTP_X_PORT 60348
HTTP_X_REAL_IP 35.174.62.162
HTTP_X_FORWARDED_PROTO https
HTTP_HOST tradingbud.com
HTTP_IF_MODIFIED_SINCE Sun, 04 Jun 2023 04:11:35 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 tradingbud.com
SERVER_ADDR 35.214.173.250
SERVER_PORT 443
REMOTE_ADDR 35.174.62.162
SERVER_ADMIN webmaster
SCRIPT_FILENAME /home/u572-gnhhr4hmsxkw/www/tradingbud.com/public_html/index.php
REMOTE_PORT 12148
REDIRECT_URL /en/tools/social-scanner
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /en/tools/social-scanner
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 1713359034.9334
REQUEST_TIME 1713359034
empty
0. Whoops\Handler\PrettyPageHandler