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/tbhoog07/public_html/libraries/gantry5/vendor/rockettheme/toolbox/ArrayTraits/src/NestedArrayAccess.php:146 Stack trace: #0 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Whoops/SystemFacade.php(107): Whoops\Run->handleError() #1 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeDetails.php(27): Gantry\Component\Whoops\SystemFacade->handleError() #2 /home/tbhoog07/public_html/libraries/vendor/composer/ClassLoader.php(444): include('/home/tbhoog07/...') #3 /home/tbhoog07/public_html/libraries/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile() #4 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeTrait.php(448): Composer\Autoload\ClassLoader->loadClass() #5 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeTrait.php(504): Gantry\Framework\Theme->details() #6 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Framework/Theme.php(167): Gantry\Framework\Theme->__set() #7 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php(67): Gantry\Framework\Theme->init() #8 /home/tbhoog07/public_html/templates/rt_gemini/includes/theme.php(28): Gantry\Component\Theme\AbstractTheme->__construct() #9 /home/tbhoog07/public_html/libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php(118): plgSystemGantry5->{closure}() #10 /home/tbhoog07/public_html/plugins/system/gantry5/gantry5.php(239): Pimple\Container->offsetGet() #11 /home/tbhoog07/public_html/plugins/system/gantry5/gantry5.php(62): plgSystemGantry5->onAfterRouteSite() #12 /home/tbhoog07/public_html/libraries/joomla/event/event.php(70): plgSystemGantry5->onAfterRoute() #13 /home/tbhoog07/public_html/libraries/joomla/event/dispatcher.php(160): JEvent->update() #14 /home/tbhoog07/public_html/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger() #15 /home/tbhoog07/public_html/libraries/src/Application/CMSApplication.php(1122): Joomla\CMS\Application\BaseApplication->triggerEvent() #16 /home/tbhoog07/public_html/libraries/src/Application/SiteApplication.php(796): Joomla\CMS\Application\CMSApplication->route() #17 /home/tbhoog07/public_html/libraries/src/Application/SiteApplication.php(218): Joomla\CMS\Application\SiteApplication->route() #18 /home/tbhoog07/public_html/libraries/src/Application/CMSApplication.php(196): Joomla\CMS\Application\SiteApplication->doExecute() #19 /home/tbhoog07/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/tbhoog07/public_html/libraries/gantry5/vendor/rockettheme/toolbox/ArrayTraits/src/NestedArrayAccess.php:146 Stack trace: #0 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Whoops/SystemFacade.php(107): Whoops\Run->handleError() #1 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeDetails.php(27): Gantry\Component\Whoops\SystemFacade->handleError() #2 /home/tbhoog07/public_html/libraries/vendor/composer/ClassLoader.php(444): include('/home/tbhoog07/...') #3 /home/tbhoog07/public_html/libraries/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile() #4 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeTrait.php(448): Composer\Autoload\ClassLoader->loadClass() #5 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeTrait.php(504): Gantry\Framework\Theme->details() #6 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Framework/Theme.php(167): Gantry\Framework\Theme->__set() #7 /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php(67): Gantry\Framework\Theme->init() #8 /home/tbhoog07/public_html/templates/rt_gemini/includes/theme.php(28): Gantry\Component\Theme\AbstractTheme->__construct() #9 /home/tbhoog07/public_html/libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php(118): plgSystemGantry5->{closure}() #10 /home/tbhoog07/public_html/plugins/system/gantry5/gantry5.php(239): Pimple\Container->offsetGet() #11 /home/tbhoog07/public_html/plugins/system/gantry5/gantry5.php(62): plgSystemGantry5->onAfterRouteSite() #12 /home/tbhoog07/public_html/libraries/joomla/event/event.php(70): plgSystemGantry5->onAfterRoute() #13 /home/tbhoog07/public_html/libraries/joomla/event/dispatcher.php(160): JEvent->update() #14 /home/tbhoog07/public_html/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger() #15 /home/tbhoog07/public_html/libraries/src/Application/CMSApplication.php(1122): Joomla\CMS\Application\BaseApplication->triggerEvent() #16 /home/tbhoog07/public_html/libraries/src/Application/SiteApplication.php(796): Joomla\CMS\Application\CMSApplication->route() #17 /home/tbhoog07/public_html/libraries/src/Application/SiteApplication.php(218): Joomla\CMS\Application\SiteApplication->route() #18 /home/tbhoog07/public_html/libraries/src/Application/CMSApplication.php(196): Joomla\CMS\Application\SiteApplication->doExecute() #19 /home/tbhoog07/public_html/index.php(49): Joomla\CMS\Application\CMSApplication->execute() #20 {main}" Stacktrace: #3 Whoops\Exception\ErrorException in /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeDetails.php:27 #2 Whoops\Run:handleError in /home/tbhoog07/public_html/libraries/gantry5/vendor/filp/whoops/src/Whoops/Run.php:433 #1 Whoops\Run:handleShutdown in /home/tbhoog07/public_html/libraries/gantry5/classes/Gantry/Component/Whoops/SystemFacade.php:155 #0 Gantry\Component\Whoops\SystemFacade:handleShutdown in [internal]:0
Stack frames (4)
3
Whoops\Exception\ErrorException
/classes/Gantry/Component/Theme/ThemeDetails.php27
2
Whoops\Run handleError
/vendor/filp/whoops/src/Whoops/Run.php433
1
Whoops\Run handleShutdown
/classes/Gantry/Component/Whoops/SystemFacade.php155
0
Gantry\Component\Whoops\SystemFacade handleShutdown
[internal]0
 * http://opensource.org/licenses/MIT
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * 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
 */
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) {
    /**
     * Special case to deal with Fatal errors and the like.
     */
    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']
            );
        }
    }
 
    /**
     * In certain scenarios, like in shutdown handler, we can not throw exceptions
     * @var bool
     */
    private $canThrowExceptions = true;
 
    /**
     * Echo something to the browser
     * @param  string $output
     * @return $this
     */
    private function writeToOutputNow($output)
    {
        if ($this->sendHttpCode() && \Whoops\Util\Misc::canSendHeaders()) {
            $this->system->setHttpResponseCode(
                $this->sendHttpCode()
        }
 
        // 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 TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjozOntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjI6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMDgyNzM2OTtzOjQ6Imxhc3QiO2k6MTcxMDgyNzM2OTtzOjM6Im5vdyI7aToxNzEwODI3MzY5O319czo4OiJyZWdpc3RyeSI7TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjA6e31zOjE0OiIAKgBpbml0aWFsaXplZCI7YjowO3M6OToic2VwYXJhdG9yIjtzOjE6Ii4iO31zOjQ6InVzZXIiO086MjA6Ikpvb21sYVxDTVNcVXNlclxVc2VyIjoxOntzOjI6ImlkIjtpOjA7fX19czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9
Key Value
HTTP_ACCEPT */*
HTTP_HOST www.tekenburo-hoogenboom.nl
HTTP_USER_AGENT claudebot
DOCUMENT_ROOT /home/tbhoog07/public_html
REMOTE_ADDR 54.235.6.60
REMOTE_PORT 59610
SERVER_ADDR 109.71.54.11
SERVER_NAME www.tekenburo-hoogenboom.nl
SERVER_ADMIN webmaster@tekenburo-hoogenboom.nl
SERVER_PORT 80
REQUEST_SCHEME http
REQUEST_URI /contact/disclaimer-copyrights
REDIRECT_URL /contact/disclaimer-copyrights
REDIRECT_REQUEST_METHOD GET
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
SCRIPT_FILENAME /home/tbhoog07/public_html/index.php
QUERY_STRING
SCRIPT_URI http://www.tekenburo-hoogenboom.nl/contact/disclaimer-copyrights
SCRIPT_URL /contact/disclaimer-copyrights
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710827369.6537
REQUEST_TIME 1710827369
empty
0. Whoops\Handler\PrettyPageHandler