Whoops \ Exception \ ErrorException (E_ERROR)
During inheritance of ArrayAccess: Uncaught Whoops\Exception\ErrorException: Return type of Gantry\Component\Theme\ThemeDetails::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/kentsurg/public_html/libraries/gantry5/vendor/rockettheme/toolbox/ArrayTraits/src/NestedArrayAccess.php:150 Stack trace: #0 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Whoops/SystemFacade.php(112): Whoops\Run->handleError(8192, 'Return type of ...', '/home/kentsurg/...', 150) #1 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeDetails.php(30): Gantry\Component\Whoops\SystemFacade->handleError(8192, 'Return type of ...', '/home/kentsurg/...', 150) #2 /home/kentsurg/public_html/libraries/vendor/composer/ClassLoader.php(480): include('/home/kentsurg/...') #3 /home/kentsurg/public_html/libraries/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/home/kentsurg/...') #4 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php(494): Composer\Autoload\ClassLoader->loadClass('Gantry\\Componen...') #5 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php(550): Gantry\Framework\Theme->details() #6 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Framework/Theme.php(185): Gantry\Framework\Theme->__set('language', 'en-gb') #7 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php(68): Gantry\Framework\Theme->init() #8 /home/kentsurg/public_html/templates/rt_sienna/includes/theme.php(28): Gantry\Component\Theme\AbstractTheme->__construct('/home/kentsurg/...', 'rt_sienna') #9 /home/kentsurg/public_html/libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php(118): plgSystemGantry5->{closure}(Object(Gantry\Framework\Gantry)) #10 /home/kentsurg/public_html/plugins/system/gantry5/gantry5.php(303): Pimple\Container->offsetGet('theme') #11 /home/kentsurg/public_html/plugins/system/gantry5/gantry5.php(108): plgSystemGantry5->onAfterRouteSite() #12 /home/kentsurg/public_html/libraries/joomla/event/event.php(70): plgSystemGantry5->onAfterRoute() #13 /home/kentsurg/public_html/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array) #14 /home/kentsurg/public_html/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger('onafterroute', Array) #15 /home/kentsurg/public_html/libraries/src/Application/CMSApplication.php(1218): Joomla\CMS\Application\BaseApplication->triggerEvent('onAfterRoute') #16 /home/kentsurg/public_html/libraries/src/Application/SiteApplication.php(796): Joomla\CMS\Application\CMSApplication->route() #17 /home/kentsurg/public_html/libraries/src/Application/SiteApplication.php(218): Joomla\CMS\Application\SiteApplication->route() #18 /home/kentsurg/public_html/libraries/src/Application/CMSApplication.php(225): Joomla\CMS\Application\SiteApplication->doExecute() #19 /home/kentsurg/public_html/index.php(49): Joomla\CMS\Application\CMSApplication->execute() #20 {main} Whoops\Exception\ErrorException thrown with message "During inheritance of ArrayAccess: Uncaught Whoops\Exception\ErrorException: Return type of Gantry\Component\Theme\ThemeDetails::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/kentsurg/public_html/libraries/gantry5/vendor/rockettheme/toolbox/ArrayTraits/src/NestedArrayAccess.php:150 Stack trace: #0 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Whoops/SystemFacade.php(112): Whoops\Run->handleError(8192, 'Return type of ...', '/home/kentsurg/...', 150) #1 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeDetails.php(30): Gantry\Component\Whoops\SystemFacade->handleError(8192, 'Return type of ...', '/home/kentsurg/...', 150) #2 /home/kentsurg/public_html/libraries/vendor/composer/ClassLoader.php(480): include('/home/kentsurg/...') #3 /home/kentsurg/public_html/libraries/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/home/kentsurg/...') #4 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php(494): Composer\Autoload\ClassLoader->loadClass('Gantry\\Componen...') #5 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php(550): Gantry\Framework\Theme->details() #6 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Framework/Theme.php(185): Gantry\Framework\Theme->__set('language', 'en-gb') #7 /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php(68): Gantry\Framework\Theme->init() #8 /home/kentsurg/public_html/templates/rt_sienna/includes/theme.php(28): Gantry\Component\Theme\AbstractTheme->__construct('/home/kentsurg/...', 'rt_sienna') #9 /home/kentsurg/public_html/libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php(118): plgSystemGantry5->{closure}(Object(Gantry\Framework\Gantry)) #10 /home/kentsurg/public_html/plugins/system/gantry5/gantry5.php(303): Pimple\Container->offsetGet('theme') #11 /home/kentsurg/public_html/plugins/system/gantry5/gantry5.php(108): plgSystemGantry5->onAfterRouteSite() #12 /home/kentsurg/public_html/libraries/joomla/event/event.php(70): plgSystemGantry5->onAfterRoute() #13 /home/kentsurg/public_html/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array) #14 /home/kentsurg/public_html/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger('onafterroute', Array) #15 /home/kentsurg/public_html/libraries/src/Application/CMSApplication.php(1218): Joomla\CMS\Application\BaseApplication->triggerEvent('onAfterRoute') #16 /home/kentsurg/public_html/libraries/src/Application/SiteApplication.php(796): Joomla\CMS\Application\CMSApplication->route() #17 /home/kentsurg/public_html/libraries/src/Application/SiteApplication.php(218): Joomla\CMS\Application\SiteApplication->route() #18 /home/kentsurg/public_html/libraries/src/Application/CMSApplication.php(225): Joomla\CMS\Application\SiteApplication->doExecute() #19 /home/kentsurg/public_html/index.php(49): Joomla\CMS\Application\CMSApplication->execute() #20 {main}" Stacktrace: #3 Whoops\Exception\ErrorException in /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeDetails.php:30 #2 Whoops\Run:handleError in /home/kentsurg/public_html/libraries/gantry5/vendor/filp/whoops/src/Whoops/Run.php:486 #1 Whoops\Run:handleShutdown in /home/kentsurg/public_html/libraries/gantry5/src/classes/Gantry/Component/Whoops/SystemFacade.php:160 #0 Gantry\Component\Whoops\SystemFacade:handleShutdown in [internal]:0
Stack frames (4)
3
Whoops\Exception\ErrorException
/src/classes/Gantry/Component/Theme/ThemeDetails.php30
2
Whoops\Run handleError
/vendor/filp/whoops/src/Whoops/Run.php486
1
Whoops\Run handleShutdown
/src/classes/Gantry/Component/Whoops/SystemFacade.php160
0
Gantry\Component\Whoops\SystemFacade handleShutdown
[internal]0
 *
 * Gantry Framework code that extends GPL code is considered GNU/GPLv2 and later
 */
 
namespace Gantry\Component\Theme;
 
use Gantry\Component\File\CompiledYamlFile;
use Gantry\Component\Filesystem\Streams;
use Gantry\Framework\Gantry;
use RocketTheme\Toolbox\ArrayTraits\Export;
use RocketTheme\Toolbox\ArrayTraits\NestedArrayAccessWithGetters;
use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator;
 
/**
 * Class ThemeDetails
 * @package Gantry\Component\Theme
 *
 * @property string $name
 */
class ThemeDetails implements \ArrayAccess
{
    use NestedArrayAccessWithGetters, Export;
 
    protected $items;
    protected $parent;
 
    /**
     * Create new theme details.
     *
     * @param string $theme
     */
    public function __construct($theme)
    {
        $gantry = Gantry::instance();
 
        /** @var UniformResourceLocator $locator */
        $locator = $gantry['locator'];
 
        $filename = $locator->findResource("gantry-themes://{$theme}/gantry/theme.yaml");
        if (!$filename) {
     *
     * @return void
     */
    public function handleShutdown()
    {
        // If we reached this step, we are in shutdown handler.
        // An exception thrown in a shutdown handler will not be propagated
        // to the exception handler. Pass that information along.
        $this->canThrowExceptions = false;
 
        $error = $this->system->getLastError();
        if ($error && Misc::isLevelFatal($error['type'])) {
            // If there was a fatal error,
            // it was not handled in handleError yet.
            $this->allowQuit = false;
            $this->handleError(
                $error['type'],
                $error['message'],
                $error['file'],
                $error['line']
            );
        }
    }
 
    /**
     * @param Throwable $exception
     *
     * @return Inspector
     */
    private function getInspector($exception)
    {
        return new Inspector($exception);
    }
 
    /**
     * Resolves the giving handler.
     *
     * @param callable|HandlerInterface $handler
     *
     * @return HandlerInterface
        }
 
        // Propagate error to the next handler.
        if ($this->platformExceptionHandler) {
            call_user_func_array($this->platformExceptionHandler, [&$exception]);
        }
    }
 
    /**
     * Special case to deal with Fatal errors and the like.
     */
    public function handleShutdown()
    {
        $handler = $this->whoopsShutdownHandler;
 
        $error = $this->getLastError();
 
        // Ignore core warnings and errors.
        if ($error && !($error['type'] & (E_CORE_WARNING | E_CORE_ERROR))) {
            $handler();
        }
    }
}
 

Environment & details:

empty
empty
empty
empty
Key Value
joomla TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjozOntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjI6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMDgyMTU5OTtzOjQ6Imxhc3QiO2k6MTcxMDgyMTU5OTtzOjM6Im5vdyI7aToxNzEwODIxNTk5O319czo4OiJyZWdpc3RyeSI7TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjA6e31zOjE0OiIAKgBpbml0aWFsaXplZCI7YjowO3M6OToic2VwYXJhdG9yIjtzOjE6Ii4iO31zOjQ6InVzZXIiO086MjA6Ikpvb21sYVxDTVNcVXNlclxVc2VyIjoxOntzOjI6ImlkIjtpOjA7fX19czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9
Key Value
CONTEXT_DOCUMENT_ROOT /home/kentsurg/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/kentsurg/public_html
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_HOST kentsurgeon.com
HTTP_USER_AGENT claudebot
PATH /bin:/usr/bin
PATH_INFO /patient-information/colonic-polyps
PATH_TRANSLATED /home/kentsurg/public_html/index.php
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 3.235.42.157
REMOTE_PORT 42992
REQUEST_METHOD GET
REQUEST_SCHEME http
REQUEST_URI /index.php/patient-information/colonic-polyps
SCRIPT_FILENAME /home/kentsurg/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI http://kentsurgeon.com/index.php/patient-information/colonic-polyps
SCRIPT_URL /index.php/patient-information/colonic-polyps
SERVER_ADDR 77.92.83.100
SERVER_ADMIN webmaster@kentsurgeoncom.kentsurgeon.org.uk
SERVER_NAME kentsurgeon.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
TZ Europe/London
UNIQUE_ID ZfkQ3wJapoWTO2b5fTddEwAAAMQ
PHP_SELF /index.php/patient-information/colonic-polyps
REQUEST_TIME_FLOAT 1710821599.3714
REQUEST_TIME 1710821599
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler