Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Array and string offset access syntax with curly braces is no longer supported Whoops\Exception\ErrorException thrown with message "Array and string offset access syntax with curly braces is no longer supported" Stacktrace: #3 Whoops\Exception\ErrorException in /home/velapos/public_html/verona-manual.intercloudmall.com/user/plugins/toc/classes/Toc.php:129 #2 Whoops\Run:handleError in /home/velapos/public_html/verona-manual.intercloudmall.com/vendor/filp/whoops/src/Whoops/Run.php:408 #1 Whoops\Run:handleShutdown in /home/velapos/public_html/verona-manual.intercloudmall.com/system/src/Grav/Common/Errors/SystemFacade.php:37 #0 Grav\Common\Errors\SystemFacade:handleShutdown in [internal]:0
Stack frames (4)
3
Whoops\Exception\ErrorException
/user/plugins/toc/classes/Toc.php129
2
Whoops\Run handleError
/vendor/filp/whoops/src/Whoops/Run.php408
1
Whoops\Run handleShutdown
/system/src/Grav/Common/Errors/SystemFacade.php37
0
Grav\Common\Errors\SystemFacade handleShutdown
[internal]0
/home/velapos/public_html/verona-manual.intercloudmall.com/user/plugins/toc/classes/Toc.php
     *
     * @param  string $content The content to be tocified
     * @param  array  $options Array of options for the TOC filter
     *
     * @return string          The content with inserted anchor- and
     *                         permalinks in headings
     */
    public function tocify($content, $options = [])
    {
        // Change regex, i.e. allow headers in (block-)quotes being parsed
        $regex = str_replace('blockquote|q|cite|', '', $this->regex['html']);
 
        $counter = [];
        $content = preg_replace_callback($regex,
            function($match) use ($options, &$counter) {
                $tag = strtolower($match['tag']);
                $text = trim($match['text']);
 
                // Don't consider headings in code or pre environments
                if (($tag{0} !== 'h') || (mb_strlen($text) == 0)) {
                    // Ignore empty headers, too
                    return $match[0];
                }
 
                // Extract informations from HTML tags
                $level = $indent = (int) mb_substr($tag, 1);
 
                // Expand tag attributes
                $language = $options->get('language');
                $attributes = $this->parseAttributes($match['attr']);
                $id = isset($attributes['id']) ? $attributes['id'] : $this->hyphenize($text, $options, $language);
 
                $classes = isset($attributes['class']) ? $attributes['class'] . ' headeranchor' : 'headeranchor';
 
                // Replace empty id with hash of text
                if (strlen($id) == 0) {
                    $id = substr(md5($text), 0, 6);
                }
 
                // Increment counter on same heading names
Arguments
  1. "Array and string offset access syntax with curly braces is no longer supported"
    
/home/velapos/public_html/verona-manual.intercloudmall.com/vendor/filp/whoops/src/Whoops/Run.php
    /**
     * 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;
 
    private function resolveHandler($handler)
    {
        if (is_callable($handler)) {
            $handler = new CallbackHandler($handler);
        }
 
        if (!$handler instanceof HandlerInterface) {
            throw new InvalidArgumentException(
                  "Handler must be a callable, or instance of "
                . "Whoops\\Handler\\HandlerInterface"
/home/velapos/public_html/verona-manual.intercloudmall.com/system/src/Grav/Common/Errors/SystemFacade.php
     *
     * @return void
     */
    public function registerShutdownFunction(callable $function)
    {
        $this->whoopsShutdownHandler = $function;
        register_shutdown_function([$this, 'handleShutdown']);
    }
 
    /**
     * Special case to deal with Fatal errors and the like.
     */
    public function handleShutdown()
    {
        $error = $this->getLastError();
 
        // Ignore core warnings and errors.
        if ($error && !($error['type'] & (E_CORE_WARNING | E_CORE_ERROR))) {
            $handler = $this->whoopsShutdownHandler;
            $handler();
        }
    }
}
 
[internal]

Environment & details:

empty
empty
empty
empty
Key Value
redirect_after_login
"/manual/operations/sales & payments/managing orders/item ring-up"
user
User {#1505}
Key Value
LSPHP_ENABLE_USER_INI
"on"
PATH
"/usr/local/bin:/usr/bin:/bin"
TEMP
"/tmp"
TMP
"/tmp"
TMPDIR
"/tmp"
PWD
"/"
HTTP_AUTHORIZATION
"Basic dmVyb25hLW1hbnVhbDojbDJpZ3YrczBQaW0="
HTTP_CONNECTION
"Keep-Alive"
CONTENT_LENGTH
"0"
HTTP_HOST
"verona-manual.intercloudmall.com"
HTTP_USER_AGENT
"Amazon CloudFront"
HTTP_X_FORWARDED_FOR
"3.89.163.120"
HTTP_VIA
"2.0 73c5607bdb5db0d651e25c848846d554.cloudfront.net (CloudFront)"
HTTP_X_AMZ_CF_ID
"V8eVcffnOaa5Ifo0hywZYxmd3pQEdEUniVW-sXJIUIVpZaRMlABV_w=="
REDIRECT_UNIQUE_ID
"ZgXBd4MXsLLi3zAxvFRolgAAAGA"
REDIRECT_SCRIPT_URL
"/manual/operations/sales%20&%20payments/managing%20orders/item%20ring-up"
REDIRECT_SCRIPT_URI
"http://verona-manual.intercloudmall.com/manual/operations/sales%20&%20payments/managing%20orders/item%20ring-up"
REDIRECT_USER_ID
"1253079"
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZgXBd4MXsLLi3zAxvFRolgAAAGA"
SCRIPT_URL
"/manual/operations/sales%20&%20payments/managing%20orders/item%20ring-up"
SCRIPT_URI
"http://verona-manual.intercloudmall.com/manual/operations/sales%20&%20payments/managing%20orders/item%20ring-up"
USER_ID
"1253079"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"verona-manual.intercloudmall.com"
SERVER_ADDR
"208.109.227.27"
SERVER_PORT
"80"
REMOTE_ADDR
"64.252.69.228"
DOCUMENT_ROOT
"/home/velapos/public_html/verona-manual.intercloudmall.com"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/velapos/public_html/verona-manual.intercloudmall.com"
SERVER_ADMIN
"webmaster@verona-manual.intercloudmall.com"
SCRIPT_FILENAME
"/home/velapos/public_html/verona-manual.intercloudmall.com/index.php"
REMOTE_PORT
"21198"
REMOTE_USER
"verona-manual"
AUTH_TYPE
"Basic"
REDIRECT_URL
"/manual/operations/sales%20&%20payments/managing%20orders/item%20ring-up"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/manual/operations/sales%2520&%2520payments/managing%2520orders/item%2520ring-up"
SCRIPT_NAME
"/index.php"
PHP_AUTH_USER
"verona-manual"
PHP_AUTH_PW
"************"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711653239.3306
REQUEST_TIME
1711653239
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler