Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Whoops\Exception\ErrorException thrown with message "Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`" Stacktrace: #0 Whoops\Exception\ErrorException in /var/www/web1/htdocs/kuchar/user/plugins/form/form.php:120

Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Stack frames (1):
0 Whoops\Exception\ErrorException
…/­user/­plugins/­form/­form.php120
/var/www/web1/htdocs/kuchar/user/plugins/form/form.php
        $action = $event['action'];
        $params = $event['params'];
 
        $this->process($form);
 
        switch ($action) {
            case 'captcha':
                // Validate the captcha
                $query = http_build_query([
                    'secret'   => isset($params['recaptcha_secret']) ? $params['recaptcha_secret'] : isset($params['recatpcha_secret']) ? $params['recatpcha_secret'] : $this->config->get('plugins.form.recaptcha.secret_key'),
                    'response' => $this->form->value('g-recaptcha-response', true)
                ]);
                $url = 'https://www.google.com/recaptcha/api/siteverify?' . $query;
                $response = json_decode(file_get_contents($url), true);
 
                if (!isset($response['success']) || $response['success'] !== true) {
                    $this->grav->fireEvent('onFormValidationError', new Event([
                        'form'    => $form,
                        'message' => $this->grav['language']->translate('PLUGIN_FORM.ERROR_VALIDATING_CAPTCHA')
                    ]));

Environment & details:

empty
empty
empty
empty
empty
Key Value
TMPDIR
"/var/www/web1/tmp"
PHP_FCGI_MAX_REQUESTS
"5000"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHPRC
"/var/www/web1/conf/php82/"
TMP
"/var/www/web1/tmp"
PWD
"/var/www/web1/conf/php82"
CONTENT_LENGTH
"0"
HTTP_CONNECTION
"close"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/de"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/de"
REMOTE_PORT
"39980"
SCRIPT_FILENAME
"/var/www/web1/htdocs/kuchar/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/var/www/web1/htdocs/kuchar"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/var/www/web1/htdocs/kuchar"
REMOTE_ADDR
"3.88.185.100"
SERVER_PORT
"80"
SERVER_ADDR
"195.3.195.74"
SERVER_NAME
"www.kuchar.de"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
"<address>Apache Server at www.kuchar.de Port 80</address>\n"
HTTP_HOST
"www.kuchar.de"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
SCRIPT_URI
"http://www.kuchar.de/de"
SCRIPT_URL
"/de"
REDIRECT_STATUS
"200"
REDIRECT_TMPDIR
"/var/www/web1/tmp"
REDIRECT_TMP
"/var/www/web1/tmp"
REDIRECT_SCRIPT_URI
"http://www.kuchar.de/de"
REDIRECT_SCRIPT_URL
"/de"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711705218.2835
REQUEST_TIME
1711705218
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler