Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` 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: #3 Whoops\Exception\ErrorException in /var/www/clients/client81/web169/web/components/com_djcatalog2/views/items/view.html.php:134 #2 Whoops\Run:handleError in /var/www/clients/client81/web169/web/libraries/gantry5/vendor/filp/whoops/src/Whoops/Run.php:486 #1 Whoops\Run:handleShutdown in /var/www/clients/client81/web169/web/libraries/gantry5/src/classes/Gantry/Component/Whoops/SystemFacade.php:160 #0 Gantry\Component\Whoops\SystemFacade:handleShutdown in [internal]:0
Stack frames (4)
3
Whoops\Exception\ErrorException
/var/www/clients/client81/web169/web/components/com_djcatalog2/views/items/view.html.php134
2
Whoops\Run handleError
/vendor/filp/whoops/src/Whoops/Run.php486
1
Whoops\Run handleShutdown
/src/classes/Gantry/Component/Whoops/SystemFacade.php160
0
Gantry\Component\Whoops\SystemFacade handleShutdown
[internal]0
        
        $list = $model->getItems();
        $total = count($list);//$model->getTotal();
        $pagination = $model->getPagination();
        
        // search filter
        $lists['search']= $search;
        
        // category filter
        $category_options = $categories->getOptionList('- '.JText::_('COM_DJCATALOG2_SELECT_CATEGORY').' -');
        if ($filter_catid > 0 && (int)$params->get('category_filter_type', '0') > 0) {
            $category_path = $category->getPath();
            if (count($category_path) > 0) {
                $parent_category = null;
                $parent_id = 0;
                if ($params->get('category_filter_type', '1') == '1' || count($category_path) == 1) {
                    //$parent_category = $categories->get((int)end($category_path));
                    $parent_id = ($mCatid == 0 && count($category_path) == 1) ? 0 : (int)end($category_path);
                } else if ($params->get('category_filter_type', '1') == '2') {
                    $parent_id = ($mCatid == 0) ? $mCatid : ((int)end($category_path) == $category->id) ? $category->id : $category->parent_id;
                } else {
                    $parent_id = ((int)$mCatid > 0) ? 0 : (int)$category_path[1];
                }
                
                $parent_category = $categories->get($parent_id);
                
                if ($parent_category) {
                    $childrenList = array($parent_category->id);
                    $parent_category->makeChildrenList($childrenList);
                    foreach ($category_options as $key => $option) {
                        if (!in_array($option->value, $childrenList)) {
                            unset($category_options[$key]);
                        }
                        if ($option->value == $parent_category->id) {
                            $category_options[$key]->text = ($parent_category->id == $filter_catid || (int)$option->value == 0) ?  '- '.JText::_('COM_DJCATALOG2_SELECT_CATEGORY').' -' : '- '.JText::_('COM_DJCATALOG2_SELECT_CATEGORY_LEVEL_UP').' -';
                        }
                    }
                }
            }
        }
     *
     * @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
        }
 
        // 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:

Key Value
order i.name
dir desc
ind l
empty
empty
empty
Key Value
joomla TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjozOntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjM6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMTYxOTUxNjtzOjQ6Imxhc3QiO2k6MTcxMTYxOTUxNjtzOjM6Im5vdyI7aToxNzExNjE5NTE2O31zOjU6InRva2VuIjtzOjMyOiJpb2w2aDRsQTFrMm91a0loNW1iV3pGMGNSUHBEYUd0dSI7fXM6ODoicmVnaXN0cnkiO086MjQ6Ikpvb21sYVxSZWdpc3RyeVxSZWdpc3RyeSI6Mzp7czo3OiIAKgBkYXRhIjtPOjg6InN0ZENsYXNzIjowOnt9czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9czo0OiJ1c2VyIjtPOjIwOiJKb29tbGFcQ01TXFVzZXJcVXNlciI6MTp7czoyOiJpZCI7aTowO319fXM6MTQ6IgAqAGluaXRpYWxpemVkIjtiOjA7czo5OiJzZXBhcmF0b3IiO3M6MToiLiI7fQ==
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TEMP /var/www/clients/client81/web169/tmp
TMPDIR /var/www/clients/client81/web169/tmp
TMP /var/www/clients/client81/web169/tmp
HOSTNAME
USER web169
HOME /var/www/clients/client81/web169
SCRIPT_NAME /index.php
REQUEST_URI /berelheto-munkagepek?order=i.name&dir=desc&ind=l
QUERY_STRING order=i.name&dir=desc&ind=l
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING order=i.name&dir=desc&ind=l
REDIRECT_URL /berelheto-munkagepek
REMOTE_PORT 56142
SCRIPT_FILENAME /var/www/clients/client81/web169/web/index.php
SERVER_ADMIN webmaster@roadservice.ro
CONTEXT_DOCUMENT_ROOT /var/www/clients/client81/web169/web
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /var/www/clients/client81/web169/web
REMOTE_ADDR 44.202.128.177
SERVER_PORT 80
SERVER_ADDR 46.214.109.126
SERVER_NAME roadservice.ro
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_HOST roadservice.ro
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
proxy-nokeepalive 1
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
REDIRECT_HTTP_AUTHORIZATION
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711619516.1651
REQUEST_TIME 1711619516
empty
0. Whoops\Handler\PrettyPageHandler