Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined index: displayName Whoops\Exception\ErrorException thrown with message "Undefined index: displayName" Stacktrace: #5 Whoops\Exception\ErrorException in /var/www/html/fbsp.org.br/mercuriohg/modules/34bienal/src/App/Model/EventModel.php:81 #4 Whoops\Run:handleError in /var/www/html/fbsp.org.br/mercuriohg/modules/34bienal/src/App/Model/EventModel.php:81 #3 App\Model\EventModel:getEventDetail in /var/www/html/fbsp.org.br/mercuriohg/modules/34bienal/src/App/Handler/EventHandler.php:42 #2 App\Handler\EventHandler:handle in /var/www/html/fbsp.org.br/mercuriohg/modules/34bienal/src/Routes/Routes.php:101 #1 Routes\Routes:run in /var/www/html/fbsp.org.br/mercuriohg/modules/34bienal/config/config.routes.php:58 #0 require in /var/www/html/fbsp.org.br/mercuriohg/modules/34bienal/index.php:13
Stack frames (6)
5
Whoops
\
Exception
\
ErrorException
/
src
/
App
/
Model
/
EventModel.php
81
4
Whoops
\
Run
handleError
/
src
/
App
/
Model
/
EventModel.php
81
3
App
\
Model
\
EventModel
getEventDetail
/
src
/
App
/
Handler
/
EventHandler.php
42
2
App
\
Handler
\
EventHandler
handle
/
src
/
Routes
/
Routes.php
101
1
Routes
\
Routes
run
/
config
/
config.routes.php
58
0
require
/
index.php
13
/
var
/
www
/
html
/
fbsp.org.br
/
mercuriohg
/
modules
/
34bienal
/
src
/
App
/
Model
/
EventModel.php
            switch ($vertex->idSCHEMAVertex) {
                case self::ARTIST_VERTEX:
                    $artists[] = $relations;
                    break;
                case self::VENUES_VERTEX:
                    $venue[] = $relations;
                    break;
                case self::EVENT_TYPE_VERTEX:
                    $eventType = $relations;
                    break;
            }
        }
 
        $exhibitionType = (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual');
 
        if (count($artists) > 1) {
            $exhibitionType = (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva');
        }
        $expo_h1=$expo_h2='';               // print_r($event); die;
        $title = $event['displayName'] ? $event['displayName'] : $artists[0]['displayName'];
        $originalTitle = $event['displayName'] ? $event['displayName'] : $exhibitionType;
        $internalTitle = count($artists) > 1 ? (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') : $originalTitle;
        
        if ($event['type'] == 'exhibition' || !$eventType) {
            //$type = !$eventType ? (LANGUAGE == en_US ? 'Exhibition' : 'Exposição') : $eventType['displayName'];
            $type = ( count($artists) == 1 ? (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual') : (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') ) ;    //wacto
            $link = (LANGUAGE == en_US ? '/en' : '') . '/exposicoes/' . $id;
            if (count($artists) == 1) {
                $title = $artists[0]['displayName'];
                $expo_h1 = $artists[0]['displayName'];
                $expo_h2 = ($event['displayName'] ? $event['displayName'] : (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual'));
            } else {
                $expo_h1 = $event['displayName'];
                $expo_h2 = count($artists) > 1 ? (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') : '';
            }
        } else {
            $type = $eventType['displayName'];
            $link = (LANGUAGE == en_US ? '/en' : '') . '/agenda/' . $id;
        }
        if (empty($expo_h1)) {
/
var
/
www
/
html
/
fbsp.org.br
/
mercuriohg
/
modules
/
34bienal
/
src
/
App
/
Model
/
EventModel.php
            switch ($vertex->idSCHEMAVertex) {
                case self::ARTIST_VERTEX:
                    $artists[] = $relations;
                    break;
                case self::VENUES_VERTEX:
                    $venue[] = $relations;
                    break;
                case self::EVENT_TYPE_VERTEX:
                    $eventType = $relations;
                    break;
            }
        }
 
        $exhibitionType = (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual');
 
        if (count($artists) > 1) {
            $exhibitionType = (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva');
        }
        $expo_h1=$expo_h2='';               // print_r($event); die;
        $title = $event['displayName'] ? $event['displayName'] : $artists[0]['displayName'];
        $originalTitle = $event['displayName'] ? $event['displayName'] : $exhibitionType;
        $internalTitle = count($artists) > 1 ? (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') : $originalTitle;
        
        if ($event['type'] == 'exhibition' || !$eventType) {
            //$type = !$eventType ? (LANGUAGE == en_US ? 'Exhibition' : 'Exposição') : $eventType['displayName'];
            $type = ( count($artists) == 1 ? (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual') : (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') ) ;    //wacto
            $link = (LANGUAGE == en_US ? '/en' : '') . '/exposicoes/' . $id;
            if (count($artists) == 1) {
                $title = $artists[0]['displayName'];
                $expo_h1 = $artists[0]['displayName'];
                $expo_h2 = ($event['displayName'] ? $event['displayName'] : (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual'));
            } else {
                $expo_h1 = $event['displayName'];
                $expo_h2 = count($artists) > 1 ? (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') : '';
            }
        } else {
            $type = $eventType['displayName'];
            $link = (LANGUAGE == en_US ? '/en' : '') . '/agenda/' . $id;
        }
        if (empty($expo_h1)) {
/
var
/
www
/
html
/
fbsp.org.br
/
mercuriohg
/
modules
/
34bienal
/
src
/
App
/
Handler
/
EventHandler.php
 
    private $vertex;
 
    public function __construct()
    {
        global $hg;
        $this->hg = $hg;
    }
 
    public function handle($routes, $id)
    {
        if (in_array($routes->getPath(), ['/exposicoes/', '/en/exposicoes/'])) {
            $template = $this::TEMPLATE_EXHIBITION;
        } else {
            $template = $this::TEMPLATE_SCHEDULE;
        }
 
        $content = ContentService::getContent($template, $routes);
 
        $content = EventModel::getEventDetail($id, $content);
 
        $relateds = LabelModel::getRelatedContentByContentId($id);
        $content = str_replace('[#related#]', $relateds, $content);
 
        http_response_code(200);
        echo $content;
    }
}
 
/
var
/
www
/
html
/
fbsp.org.br
/
mercuriohg
/
modules
/
34bienal
/
src
/
Routes
/
Routes.php
        }
 
        if (array_key_exists($path, $this->routes[$this->method])) {
            $handler = new $this->routes[$this->method][$path];
            $language = $this->variables[$this->method][$path]["language"];
            setlocale(LC_TIME, $language . '.utf-8');
            define('LANGUAGE', constant($language));
            $handler->handle($this);
            return;
        }
 
        foreach ($this->regex[$this->method] as $key => $regex) {
            preg_match_all($regex, $path, $matches, PREG_SET_ORDER, 0);
            if ($matches) {
                $this->path = $key;
                $handler = new $this->routes[$this->method][$key];
                $language = $this->variables[$this->method][$key]["language"];
                setlocale(LC_TIME, $language . '.utf-8');
                define('LANGUAGE', constant($language));
                $handler->handle($this, $matches[0][2]);
                return;
            }
        }
 
        $this->show404();
    }
 
 
    private function show404()
    {
        http_response_code(404);
        echo ContentService::getContent('template/404.html');
        die();
    }
}
 
/
var
/
www
/
html
/
fbsp.org.br
/
mercuriohg
/
modules
/
34bienal
/
config
/
config.routes.php
$routes->addRoute('/en/agenda', 'App\Handler\ScheduleHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/agenda/[name]', 'App\Handler\EventHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/artistas', 'App\Handler\ArtistsHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/artistas/[name]', 'App\Handler\ArtistHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/enunciados', 'App\Handler\EnunciadosHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/enunciados/[name]', 'App\Handler\EnunciadoHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/exposicoes', 'App\Handler\ExhibitionHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/exposicoes/[name]', 'App\Handler\EventHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/multimidia', 'App\Handler\MultimediaHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/planeje-sua-visita', 'App\Handler\VisitHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/post/[name]', 'App\Handler\PostHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/educacao', 'App\Handler\EducationProjectHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/publicacoes', 'App\Handler\PublicationsHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/relacoes', 'App\Handler\LabelsHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/relacoes/[name]', 'App\Handler\LabelHandler', 'GET', ['language' => 'en_US']);
$routes->addRoute('/en/sobrea34', 'App\Handler\AboutHandler', 'GET', ['language' => 'en_US']);
 
$routes->addRoute('/search', 'App\Handler\SearchHandler', 'POST', ['language' => 'pt_BR']);
 
$routes->run();
 
/
var
/
www
/
html
/
fbsp.org.br
/
mercuriohg
/
modules
/
34bienal
/
index.php
<?php

ob_start('ob_gzhandler');

// Set Cache-Control header
header("Cache-Control: private, max-age=186400");


require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/config/config.development.php';
require __DIR__ . '/config/config.php';
require __DIR__ . '/config/config.mercurio.php';
require __DIR__ . '/config/config.routes.php';


ob_end_flush();

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_REDIRECT_REDIRECT_UNIQUE_ID ZgWCno7BOHp0kCZ0Zsu-vwAAAAU
REDIRECT_REDIRECT_REDIRECT_SCRIPT_URL /exposicoes/7454
REDIRECT_REDIRECT_REDIRECT_SCRIPT_URI http://34.bienal.org.br/exposicoes/7454
REDIRECT_REDIRECT_REDIRECT_STATUS 200
REDIRECT_REDIRECT_UNIQUE_ID ZgWCno7BOHp0kCZ0Zsu-vwAAAAU
REDIRECT_REDIRECT_SCRIPT_URL /exposicoes/7454
REDIRECT_REDIRECT_SCRIPT_URI http://34.bienal.org.br/exposicoes/7454
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgWCno7BOHp0kCZ0Zsu-vwAAAAU
REDIRECT_SCRIPT_URL /exposicoes/7454
REDIRECT_SCRIPT_URI http://34.bienal.org.br/exposicoes/7454
REDIRECT_STATUS 200
UNIQUE_ID ZgWCno7BOHp0kCZ0Zsu-vwAAAAU
SCRIPT_URL /exposicoes/7454
SCRIPT_URI http://34.bienal.org.br/exposicoes/7454
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST 34.bienal.org.br
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips
SERVER_NAME 34.bienal.org.br
SERVER_ADDR 10.16.64.5
SERVER_PORT 80
REMOTE_ADDR 54.196.27.122
DOCUMENT_ROOT /var/www/html/fbsp.org.br
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html/fbsp.org.br
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/fbsp.org.br/mercuriohg/modules/34bienal/index.php
REMOTE_PORT 43494
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /exposicoes/7454
SCRIPT_NAME /mercuriohg/modules/34bienal/index.php
PHP_SELF /mercuriohg/modules/34bienal/index.php
REQUEST_TIME_FLOAT 1711637150.747
REQUEST_TIME 1711637150
empty
0. Whoops\Handler\PrettyPageHandler