Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Type of JException::$file must be string (as in class Exception) Whoops\Exception\ErrorException thrown with message "Type of JException::$file must be string (as in class Exception)" Stacktrace: #3 Whoops\Exception\ErrorException in /home/sgcaton/public_html/libraries/legacy/exception/exception.php:18 #2 Whoops\Run:handleError in /home/sgcaton/public_html/libraries/gantry5/vendor/filp/whoops/src/Whoops/Run.php:433 #1 Whoops\Run:handleShutdown in /home/sgcaton/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
/home/sgcaton/public_html/libraries/legacy/exception/exception.php18
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
<?php
/**
 * @package     Joomla.Legacy
 * @subpackage  Exception
 *
 * @copyright   (C) 2007 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
 
defined('JPATH_PLATFORM') or die;
 
/**
 * Joomla! Exception object.
 *
 * @since       1.5
 * @deprecated  1.7
 */
class JException extends Exception
{
    /**
     * Error level.
     *
     * @var    string
     * @since  1.5
     * @deprecated  1.7
     */
    protected $level = null;
 
    /**
     * Error code.
     *
     * @var    string
     * @since  1.5
     * @deprecated  1.7
     */
    protected $code = null;
 
    /**
     * Error message.
     *
    /**
     * 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 TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjo0OntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjM6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMDgyNjY4NjtzOjQ6Imxhc3QiO2k6MTcxMDgyNjY4NjtzOjM6Im5vdyI7aToxNzEwODI2Njg2O31zOjY6ImNsaWVudCI7Tzo4OiJzdGRDbGFzcyI6MTp7czo5OiJmb3J3YXJkZWQiO3M6MTI6IjU0LjgxLjE4NS42NiI7fX1zOjg6InJlZ2lzdHJ5IjtPOjI0OiJKb29tbGFcUmVnaXN0cnlcUmVnaXN0cnkiOjM6e3M6NzoiACoAZGF0YSI7Tzo4OiJzdGRDbGFzcyI6MDp7fXM6MTQ6IgAqAGluaXRpYWxpemVkIjtiOjA7czo5OiJzZXBhcmF0b3IiO3M6MToiLiI7fXM6NDoidXNlciI7TzoyMDoiSm9vbWxhXENNU1xVc2VyXFVzZXIiOjE6e3M6MjoiaWQiO2k6MDt9czoyNToicGxnX3N5c3RlbV9sYW5ndWFnZWZpbHRlciI7Tzo4OiJzdGRDbGFzcyI6MTp7czo4OiJsYW5ndWFnZSI7czo1OiJoci1IUiI7fX19czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9
Key Value
CONTEXT_DOCUMENT_ROOT /home/sgcaton/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/sgcaton/public_html
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_AUTHORIZATION
HTTP_HOST sgc-aton.hr
HTTP_REFERER https://sgc-aton.hr/en/our-offer/wellness-center
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_FOR 54.81.185.66
HTTP_X_FORWARDED_HOST sgc-aton.hr
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SERVER sgc-aton.hr
HTTP_X_HTTPS 1
HTTP_X_REAL_IP 54.81.185.66
PATH /bin:/usr/bin
QUERY_STRING
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://sgc-aton.hr/hr/en/our-offer/wellness-center
REDIRECT_SCRIPT_URL /hr/en/our-offer/wellness-center
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZfkkvrwjHAf3avokRNjeiwAAAMc
REDIRECT_URL /hr/en/our-offer/wellness-center
REDIRECT_isproxyrequest 1
REMOTE_ADDR 54.81.185.66
REMOTE_PORT 36838
REQUEST_METHOD GET
REQUEST_SCHEME https
REQUEST_URI /hr/en/our-offer/wellness-center
SCRIPT_FILENAME /home/sgcaton/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI https://sgc-aton.hr/hr/en/our-offer/wellness-center
SCRIPT_URL /hr/en/our-offer/wellness-center
SERVER_ADDR 195.29.178.8
SERVER_ADMIN webmaster@sgc-aton.hr
SERVER_NAME sgc-aton.hr
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
TZ Europe/Zagreb
UNIQUE_ID ZfkkvrwjHAf3avokRNjeiwAAAMc
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710826686.422
REQUEST_TIME 1710826686
empty
0. Whoops\Handler\PrettyPageHandler