Whoops \ Exception \ ErrorException (E_ERROR)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097160 bytes) Whoops\Exception\ErrorException thrown with message "Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097160 bytes)" Stacktrace: #3 Whoops\Exception\ErrorException in /home/akademija/public_html/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Parser/RegularParser.php:358 #2 Whoops\Run:handleError in /home/akademija/public_html/vendor/filp/whoops/src/Whoops/Run.php:486 #1 Whoops\Run:handleShutdown in /home/akademija/public_html/system/src/Grav/Common/Errors/SystemFacade.php:43 #0 Grav\Common\Errors\SystemFacade:handleShutdown in [internal]:0
Stack frames (4)
3
Whoops\Exception\ErrorException
/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Parser/RegularParser.php358
2
Whoops\Run handleError
/vendor/filp/whoops/src/Whoops/Run.php486
1
Whoops\Run handleShutdown
/system/src/Grav/Common/Errors/SystemFacade.php43
0
Grav\Common\Errors\SystemFacade handleShutdown
[internal]0
/home/akademija/public_html/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Parser/RegularParser.php
        $count = preg_match_all($this->lexerRegex, $text, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
        if(false === $count || preg_last_error() !== PREG_NO_ERROR) {
            throw new \RuntimeException(sprintf('PCRE failure `%s`.', preg_last_error()));
        }
 
        $tokens = array();
        $position = 0;
 
        foreach($matches as $match) {
            switch(true) {
                case -1 !== $match['string'][1]: { $token = $match['string'][0]; $type = self::TOKEN_STRING; break; }
                case -1 !== $match['ws'][1]: { $token = $match['ws'][0]; $type = self::TOKEN_WS; break; }
                case -1 !== $match['marker'][1]: { $token = $match['marker'][0]; $type = self::TOKEN_MARKER; break; }
                case -1 !== $match['delimiter'][1]: { $token = $match['delimiter'][0]; $type = self::TOKEN_DELIMITER; break; }
                case -1 !== $match['separator'][1]: { $token = $match['separator'][0]; $type = self::TOKEN_SEPARATOR; break; }
                case -1 !== $match['open'][1]: { $token = $match['open'][0]; $type = self::TOKEN_OPEN; break; }
                case -1 !== $match['close'][1]: { $token = $match['close'][0]; $type = self::TOKEN_CLOSE; break; }
                default: { throw new \RuntimeException(sprintf('Invalid token.')); }
            }
            $tokens[] = array($type, $token, $position);
            $position += mb_strlen($token, 'utf-8');
        }
 
        return $tokens;
    }
 
    /** @return string */
    private function prepareLexer(SyntaxInterface $syntax)
    {
        // FIXME: for some reason Psalm does not understand the `@psalm-var callable() $var` annotation
        /** @psalm-suppress MissingClosureParamType, MissingClosureReturnType */
        $group = function($text, $group) {
            return '(?<'.(string)$group.'>'.preg_replace('/(.)/us', '\\\\$0', (string)$text).')';
        };
        /** @psalm-suppress MissingClosureParamType, MissingClosureReturnType */
        $quote = function($text) {
            return preg_replace('/(.)/us', '\\\\$0', (string)$text);
        };
 
        $rules = array(
Arguments
  1. "Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097160 bytes)"
    
/home/akademija/public_html/vendor/filp/whoops/src/Whoops/Run.php
     *
     * @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
Arguments
  1. 1
    
  2. "Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097160 bytes)"
    
  3. "/home/akademija/public_html/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Parser/RegularParser.php"
    
  4. 358
    
/home/akademija/public_html/system/src/Grav/Common/Errors/SystemFacade.php
     */
    public function registerShutdownFunction(callable $function)
    {
        $this->whoopsShutdownHandler = $function;
        register_shutdown_function([$this, 'handleShutdown']);
    }
 
    /**
     * Special case to deal with Fatal errors and the like.
     *
     * @return void
     */
    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();
        }
    }
 
 
    /**
     * @param int $httpCode
     *
     * @return int
     */
    public function setHttpResponseCode($httpCode)
    {
        if (!headers_sent()) {
            // Ensure that no 'location' header is present as otherwise this
            // will override the HTTP code being set here, and mask the
            // expected error page.
            header_remove('location');
 
            // Work around PHP bug #8218 (8.0.17 & 8.1.4).
            header_remove('Content-Encoding');
        }
[internal]

Environment & details:

empty
empty
empty
empty
Key Value
redirect_after_login
"/sistemos_programavimas/struktura/i"
user
Grav\Common\User\User {#2392}
Key Value
PHPRC
"/home/akademija/fcgi-bin/../etc/php7.3"
SCRIPT_FILENAME
"/home/akademija/public_html/index.php"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
PWD
"/home/akademija/fcgi-bin"
SHLVL
"0"
PHP_FCGI_MAX_REQUESTS
"99999"
HTTP_CONNECTION
"close"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/sistemos_programavimas/struktura/i"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/sistemos_programavimas/struktura/i"
REMOTE_PORT
"38938"
SERVER_ADMIN
"root@localhost"
CONTEXT_DOCUMENT_ROOT
"/home/akademija/public_html"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/akademija/public_html"
REMOTE_ADDR
"44.222.63.67"
SERVER_PORT
"443"
SERVER_ADDR
"192.168.10.5"
SERVER_NAME
"akademija.rivile.lt"
SERVER_SOFTWARE
"Apache/2.4.6"
SERVER_SIGNATURE
""
HTTP_HOST
"akademija.rivile.lt"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
SSL_TLS_SNI
"akademija.rivile.lt"
HTTPS
"on"
SCRIPT_URI
"https://akademija.rivile.lt/sistemos_programavimas/struktura/i"
SCRIPT_URL
"/sistemos_programavimas/struktura/i"
UNIQUE_ID
"ZgZzTQ94ni8c9-KPTf6CLwAAAAo"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"akademija.rivile.lt"
REDIRECT_HTTPS
"on"
REDIRECT_SCRIPT_URI
"https://akademija.rivile.lt/sistemos_programavimas/struktura/i"
REDIRECT_SCRIPT_URL
"/sistemos_programavimas/struktura/i"
REDIRECT_UNIQUE_ID
"ZgZzTQ94ni8c9-KPTf6CLwAAAAo"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711698765.8399
REQUEST_TIME
1711698765
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler