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/englishpower/public_html/libraries/gantry5/vendor/rockettheme/toolbox/ArrayTraits/src/NestedArrayAccess.php:146 Stack trace: #0 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Whoops/SystemFacade.php(107): Whoops\Run->handleError(8192, 'Return type of ...', '/home/englishpo...', 146) #1 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeDetails.php(27): Gantry\Component\Whoops\SystemFacade->handleError(8192, 'Return type of ...', '/home/englishpo...', 146) #2 /home/englishpower/public_html/libraries/vendor/composer/ClassLoader.php(480): include('/home/englishpo...') #3 /home/englishpower/public_html/libraries/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/home/englishpo...') #4 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeTrait.php(448): Composer\Autoload\ClassLoader->loadClass('Gantry\\Componen...') #5 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeTrait.php(504): Gantry\Framework\Theme->details() #6 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Framework/Theme.php(167): Gantry\Framework\Theme->__set('language', 'it-it') #7 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php(67): Gantry\Framework\Theme->init() #8 /home/englishpower/public_html/templates/ep_helium/includes/theme.php(28): Gantry\Component\Theme\AbstractTheme->__construct('/home/englishpo...', 'ep_helium') #9 /home/englishpower/public_html/libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php(118): plgSystemGantry5->{closure}(Object(Gantry\Framework\Gantry)) #10 /home/englishpower/public_html/plugins/system/gantry5/gantry5.php(234): Pimple\Container->offsetGet('theme') #11 /home/englishpower/public_html/plugins/system/gantry5/gantry5.php(57): plgSystemGantry5->onAfterRouteSite() #12 /home/englishpower/public_html/libraries/joomla/event/event.php(70): plgSystemGantry5->onAfterRoute() #13 /home/englishpower/public_html/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array) #14 /home/englishpower/public_html/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger('onafterroute', Array) #15 /home/englishpower/public_html/libraries/src/Application/CMSApplication.php(1196): Joomla\CMS\Application\BaseApplication->triggerEvent('onAfterRoute') #16 /home/englishpower/public_html/libraries/src/Application/SiteApplication.php(797): Joomla\CMS\Application\CMSApplication->route() #17 /home/englishpower/public_html/libraries/src/Application/SiteApplication.php(219): Joomla\CMS\Application\SiteApplication->route() #18 /home/englishpower/public_html/libraries/src/Application/CMSApplication.php(203): Joomla\CMS\Application\SiteApplication->doExecute() #19 /home/englishpower/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/englishpower/public_html/libraries/gantry5/vendor/rockettheme/toolbox/ArrayTraits/src/NestedArrayAccess.php:146 Stack trace: #0 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Whoops/SystemFacade.php(107): Whoops\Run->handleError(8192, 'Return type of ...', '/home/englishpo...', 146) #1 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeDetails.php(27): Gantry\Component\Whoops\SystemFacade->handleError(8192, 'Return type of ...', '/home/englishpo...', 146) #2 /home/englishpower/public_html/libraries/vendor/composer/ClassLoader.php(480): include('/home/englishpo...') #3 /home/englishpower/public_html/libraries/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/home/englishpo...') #4 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeTrait.php(448): Composer\Autoload\ClassLoader->loadClass('Gantry\\Componen...') #5 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeTrait.php(504): Gantry\Framework\Theme->details() #6 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Framework/Theme.php(167): Gantry\Framework\Theme->__set('language', 'it-it') #7 /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php(67): Gantry\Framework\Theme->init() #8 /home/englishpower/public_html/templates/ep_helium/includes/theme.php(28): Gantry\Component\Theme\AbstractTheme->__construct('/home/englishpo...', 'ep_helium') #9 /home/englishpower/public_html/libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php(118): plgSystemGantry5->{closure}(Object(Gantry\Framework\Gantry)) #10 /home/englishpower/public_html/plugins/system/gantry5/gantry5.php(234): Pimple\Container->offsetGet('theme') #11 /home/englishpower/public_html/plugins/system/gantry5/gantry5.php(57): plgSystemGantry5->onAfterRouteSite() #12 /home/englishpower/public_html/libraries/joomla/event/event.php(70): plgSystemGantry5->onAfterRoute() #13 /home/englishpower/public_html/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array) #14 /home/englishpower/public_html/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger('onafterroute', Array) #15 /home/englishpower/public_html/libraries/src/Application/CMSApplication.php(1196): Joomla\CMS\Application\BaseApplication->triggerEvent('onAfterRoute') #16 /home/englishpower/public_html/libraries/src/Application/SiteApplication.php(797): Joomla\CMS\Application\CMSApplication->route() #17 /home/englishpower/public_html/libraries/src/Application/SiteApplication.php(219): Joomla\CMS\Application\SiteApplication->route() #18 /home/englishpower/public_html/libraries/src/Application/CMSApplication.php(203): Joomla\CMS\Application\SiteApplication->doExecute() #19 /home/englishpower/public_html/index.php(49): Joomla\CMS\Application\CMSApplication->execute() #20 {main}" Stacktrace: #3 Whoops\Exception\ErrorException in /home/englishpower/public_html/libraries/gantry5/classes/Gantry/Component/Theme/ThemeDetails.php:27 #2 Whoops\Run:handleError in /home/englishpower/public_html/libraries/gantry5/vendor/filp/whoops/src/Whoops/Run.php:433 #1 Whoops\Run:handleShutdown in /home/englishpower/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 TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjo0OntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjM6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMDgxOTk4OTtzOjQ6Imxhc3QiO2k6MTcxMDgxOTk4OTtzOjM6Im5vdyI7aToxNzEwODE5OTg5O31zOjY6ImNsaWVudCI7Tzo4OiJzdGRDbGFzcyI6MTp7czo5OiJmb3J3YXJkZWQiO3M6MTQ6IjQ0LjIwNC4xNjQuMTQ3Ijt9fXM6ODoicmVnaXN0cnkiO086MjQ6Ikpvb21sYVxSZWdpc3RyeVxSZWdpc3RyeSI6Mzp7czo3OiIAKgBkYXRhIjtPOjg6InN0ZENsYXNzIjowOnt9czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9czo0OiJ1c2VyIjtPOjIwOiJKb29tbGFcQ01TXFVzZXJcVXNlciI6MTp7czoyOiJpZCI7aTowO31zOjI1OiJwbGdfc3lzdGVtX2xhbmd1YWdlZmlsdGVyIjtPOjg6InN0ZENsYXNzIjoxOntzOjg6Imxhbmd1YWdlIjtzOjU6ImVuLUdCIjt9fX1zOjE0OiIAKgBpbml0aWFsaXplZCI7YjowO3M6OToic2VwYXJhdG9yIjtzOjE6Ii4iO30=
Key Value
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST www.englishpower.eu
HTTP_REFERER http://www.englishpower.eu/en/ep-courses/specialised-english/socialising-and-networking
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_FOR 44.204.164.147
HTTP_X_FORWARDED_HOST www.englishpower.eu
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SERVER www.englishpower.eu
HTTP_X_REAL_IP 44.204.164.147
HTTP_X_HTTPS 1
REDIRECT_UNIQUE_ID ZfkKlcA8Ld7fV8kNcz9y-AAAABI
REDIRECT_isproxyrequest 1
REDIRECT_SCRIPT_URL /en/ep-courses/specialised-english/socialising-and-networking
REDIRECT_SCRIPT_URI https://www.englishpower.eu/en/ep-courses/specialised-english/socialising-and-networking
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HTTPS on
REDIRECT_STATUS 200
UNIQUE_ID ZfkKlcA8Ld7fV8kNcz9y-AAAABI
SCRIPT_URL /en/ep-courses/specialised-english/socialising-and-networking
SCRIPT_URI https://www.englishpower.eu/en/ep-courses/specialised-english/socialising-and-networking
HTTP_AUTHORIZATION
HTTPS on
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.englishpower.eu
SERVER_ADDR 149.255.62.60
SERVER_PORT 443
REMOTE_ADDR 44.204.164.147
DOCUMENT_ROOT /home/englishpower/public_html
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/englishpower/public_html
SERVER_ADMIN webmaster@englishpower.eu
SCRIPT_FILENAME /home/englishpower/public_html/index.php
REMOTE_PORT 51688
REDIRECT_URL /en/ep-courses/specialised-english/socialising-and-networking
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /en/ep-courses/specialised-english/socialising-and-networking
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710819989.5617
REQUEST_TIME 1710819989
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler