Whoops \ Exception \ ErrorException (E_NOTICE)
Trying to get property of non-object Whoops\Exception\ErrorException thrown with message "Trying to get property of non-object" Stacktrace: #7 Whoops\Exception\ErrorException in /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/private/aarte/libraries/Appuntamenti.php:270 #6 Whoops\Run:handleError in /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/private/aarte/libraries/Appuntamenti.php:270 #5 Aarte\Appuntamenti:getAppuntamento in /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/private/aarte/libraries/Appuntamenti.php:287 #4 Aarte\Appuntamenti:execDettaglio in /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/private/aarte/libraries/vendor/phpcraft/subject/src/Subject.php:150 #3 PHPCraft\Subject\Subject:execAction in /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/private/aarte/libraries/vendor/phpcraft/subject/src/SubjectWithCRUD.php:100 #2 PHPCraft\Subject\SubjectWithCRUD:execAction in /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/private/aarte/libraries/Appuntamenti.php:45 #1 Aarte\Appuntamenti:execAction in /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/private/aarte/procedures/bootstrap.php:43 #0 require in /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/index.php:8
Stack frames (8)
7
Whoops
\
Exception
\
ErrorException
/
Appuntamenti.php
270
6
Whoops
\
Run
handleError
/
Appuntamenti.php
270
5
Aarte
\
Appuntamenti
getAppuntamento
/
Appuntamenti.php
287
4
Aarte
\
Appuntamenti
execDettaglio
/
vendor
/
phpcraft
/
subject
/
src
/
Subject.php
150
3
PHPCraft
\
Subject
\
Subject
execAction
/
vendor
/
phpcraft
/
subject
/
src
/
SubjectWithCRUD.php
100
2
PHPCraft
\
Subject
\
SubjectWithCRUD
execAction
/
Appuntamenti.php
45
1
Aarte
\
Appuntamenti
execAction
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
private
/
aarte
/
procedures
/
bootstrap.php
43
0
require
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
index.php
8
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
private
/
aarte
/
libraries
/
Appuntamenti.php
    {
        $this->queryBuilder->table('v_appuntamenti_frontend');
        $this->queryBuilder->fields(['slug_' . $this->language, 'titolo_' . $this->language, 'data_' . $this->language, 'immagine']);
        $this->queryBuilder->orderBy('data', 'ASC');
        //get
        $records = $this->queryBuilder->get();
        foreach($records as $record) {
            $this->extractFile($record, 'immagine', 'middle');
        }
        return $records;
    }
 
    /**
     * Gets selected appuntamento
     */
    private function getAppuntamento()
    {
        $this->templateParameters['appuntamento'] = current($this->queryBuilder->table($this->dbView)->where('slug_' . $this->language, $this->routeParameters['appuntamento'])->get());
        $this->templateParameters['itemActions'] = [];
        $this->templateParameters['pageTitle'] = $this->templateParameters['appuntamento']->{'titolo_' . $this->language} . ' ' .$this->templateParameters['appuntamento']->{'data_' . $this->language} . ' - ' . $this->translations['frontend']['navigation'][$this->subject];
    }
 
    /**
     * Displays frontend list
     */
    protected function execListFrontend()
    {
        $this->templateParameters['appuntamenti'] = $this->getListFrontend();
        $this->renderTemplate();
    }
 
    /**
     * Displays frontend dettaglio
     */
    protected function execDettaglio()
    {
        $this->getAppuntamento();
        $this->extractFile($this->templateParameters['appuntamento'], 'immagine', 'full');
        $this->renderTemplate();
    }
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
private
/
aarte
/
libraries
/
Appuntamenti.php
    {
        $this->queryBuilder->table('v_appuntamenti_frontend');
        $this->queryBuilder->fields(['slug_' . $this->language, 'titolo_' . $this->language, 'data_' . $this->language, 'immagine']);
        $this->queryBuilder->orderBy('data', 'ASC');
        //get
        $records = $this->queryBuilder->get();
        foreach($records as $record) {
            $this->extractFile($record, 'immagine', 'middle');
        }
        return $records;
    }
 
    /**
     * Gets selected appuntamento
     */
    private function getAppuntamento()
    {
        $this->templateParameters['appuntamento'] = current($this->queryBuilder->table($this->dbView)->where('slug_' . $this->language, $this->routeParameters['appuntamento'])->get());
        $this->templateParameters['itemActions'] = [];
        $this->templateParameters['pageTitle'] = $this->templateParameters['appuntamento']->{'titolo_' . $this->language} . ' ' .$this->templateParameters['appuntamento']->{'data_' . $this->language} . ' - ' . $this->translations['frontend']['navigation'][$this->subject];
    }
 
    /**
     * Displays frontend list
     */
    protected function execListFrontend()
    {
        $this->templateParameters['appuntamenti'] = $this->getListFrontend();
        $this->renderTemplate();
    }
 
    /**
     * Displays frontend dettaglio
     */
    protected function execDettaglio()
    {
        $this->getAppuntamento();
        $this->extractFile($this->templateParameters['appuntamento'], 'immagine', 'full');
        $this->renderTemplate();
    }
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
private
/
aarte
/
libraries
/
Appuntamenti.php
        $this->templateParameters['appuntamento'] = current($this->queryBuilder->table($this->dbView)->where('slug_' . $this->language, $this->routeParameters['appuntamento'])->get());
        $this->templateParameters['itemActions'] = [];
        $this->templateParameters['pageTitle'] = $this->templateParameters['appuntamento']->{'titolo_' . $this->language} . ' ' .$this->templateParameters['appuntamento']->{'data_' . $this->language} . ' - ' . $this->translations['frontend']['navigation'][$this->subject];
    }
 
    /**
     * Displays frontend list
     */
    protected function execListFrontend()
    {
        $this->templateParameters['appuntamenti'] = $this->getListFrontend();
        $this->renderTemplate();
    }
 
    /**
     * Displays frontend dettaglio
     */
    protected function execDettaglio()
    {
        $this->getAppuntamento();
        $this->extractFile($this->templateParameters['appuntamento'], 'immagine', 'full');
        $this->renderTemplate();
    }
}
 
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
private
/
aarte
/
libraries
/
vendor
/
phpcraft
/
subject
/
src
/
Subject.php
     * @param string $pathToIniFile file path into private/application-name/curent-language/
     * @throws InvalidArgumentException if file is not found
     **/
    public function addApplicationTranslations($key, $pathToIniFile)
    {
        $path = sprintf('private/%s/locales/%s/%s', $this->application, $this->language, $pathToIniFile);
        $this->addTranslations($key, $path);
    }
    
    /**
     * tries to exec current action
     * @throws Exception if there is no method defined to handle action
     **/
    public function execAction()
    {
        try {
            $this->templateParameters['area'] = $this->area;
            $this->templateParameters['areaAuthentication'] = $this->areaAuthentication;
            $this->getBackPaths();
            $this->{'exec'.ucfirst($this->sanitizeAction($this->action))}();
        } catch(Exception $exception) {
            throw new Exception(sprintf('no method for handling %s %s %s', $this->area, $this->subject, $this->action));
        }
    }
    
    /**
     * Stores a path to turn back lately
     **/
    public function execBackPath()
    {
        $arguments = array(
            'backId' => FILTER_SANITIZE_STRING,
            'backPath' =>  array(
                        'filter' => FILTER_SANITIZE_URL,
                        'flags' => FILTER_FLAG_PATH_REQUIRED
                    ),
            'backLabel' => FILTER_SANITIZE_STRING,
        );
        $input = filter_input_array(INPUT_POST, $arguments);
        $this->cookie->set('backPaths[' . $input['backId'] . '][path]', $input['backPath']);
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
private
/
aarte
/
libraries
/
vendor
/
phpcraft
/
subject
/
src
/
SubjectWithCRUD.php
        $this->message = $message;
        $this->message->setCookie($cookie);
        $this->csv = $csv;
        $this->dbTable = $dbTable;
        $this->dbView = $dbView;
        $this->primaryKey = $primaryKey;
        $this->postedFieldsDefinition = $postedFieldsDefinition;
        $this->exportFields = $exportFields;
    }
    
    /**
     * Tries to exec current action
     *
     * @throws Exception if there is no method defined to handle action
     **/
    public function execAction()
    {
        $this->templateParameters['primaryKey'] = $this->primaryKey;
        $this->templateParameters['sideMenuOpenend'] = $this->isSideMenuOpened();
        parent::execAction();
    }
    
    /**
     * gets list for the table
     *
     * @param array $fields to be selected
     */
    abstract protected function getList($fields = array());
    
    /**
     * Displays list table
     */
    protected function execList()
    {
        //get records
        $this->templateParameters['records'] = $this->getList();
        // form translations
        $this->addTranslations('list', sprintf('private/global/locales/%s/list.ini', $this->language));
        //render
        $this->renderTemplate();
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
private
/
aarte
/
libraries
/
Appuntamenti.php
                        'url' => implode('', $this->pathToSubject) . 'list',
                        'action' => 'list',
                        'label' => $this->translations[$this->area]['operations']['list'] . ' ' . $this->translations[$this->subject]['plural']
                    ],
                    [
                        'url' => implode('', $this->pathToSubject) . 'insertForm',
                        'action' => 'insertForm',
                        'label' => $this->translations[$this->area]['operations']['do_insert'] . ' ' . $this->translations[$this->subject]['singular']
                    ]
                ]);
                if(isset($this->routeParameters['key'])) {
                    $this->templateParameters['key'] = $this->routeParameters['key'];
                }
                $this->templateParameters['pageTitle'] = $this->translations[$this->subject]['subject_name'];
            break;
            case 'frontend':
                $this->templateParameters['pageTitle'] = $this->translations['frontend']['navigation'][$this->subject];
            break;
        }
        parent::execAction();
    }
 
    /**
     * Sets uploadField definitions
     * @param array $uploadFieldsDefinitions indexed by field names
     **/
    protected function setUploadFieldsDefinitions()
    {
        $uploadFieldsDefinitions = [
            'immagine' => [
                'validations' => [
                    [
                        'type' => 'image',
                        'options' => [
                            'allowed' => ['jpg','png'],
                        ],
                        'message' => $this->translations['form']['upload']['validation_file_images']
                    ]
 
                ],
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
private
/
aarte
/
procedures
/
bootstrap.php
    if(!in_array(LANGUAGE, $configuration['languages'])) throw new Exception("language not into configured languages");
    //load specific area configuration and procedure if needed
    if($configuration['areas'][AREA]['configuration']) {
        require sprintf('private/%s/configurations/%s.php', APPLICATION, AREA);
    }
    if($configuration['areas'][AREA]['procedure']) {
        require sprintf('private/%s/procedures/%s.php', APPLICATION, AREA);
    }
    //require subject procedure
    $subject = require sprintf('private/%s/procedures/%s/%s.php', APPLICATION, AREA, SUBJECT);
    if($subjectHasClass) {
        //load specific application and area translations if needed
        if($configuration['locale']) {
            $subject->addApplicationTranslations('application', 'application.ini');
        }
        if($configuration['areas'][AREA]['locale']) {
            $subject->addApplicationTranslations(AREA, sprintf('%s.ini', AREA));
        }
        //subject action
        $subject->execAction();
    }
} else {
}
//output
    // set headers
    //r($http->response->getHeaders());
foreach ($http->response->getHeaders() as $name => $values) {
    foreach ($values as $value) {
        @header(sprintf('%s: %s', $name, $value), false);
    }
}
    //check status code
switch($http->response->getStatusCode()) {
    case 200:
    break;
    default:
        @header($_SERVER["SERVER_PROTOCOL"]." " . $http->response->getStatusCode()); 
    break;
}
    // output body
/
var
/
www
/
vhosts
/
h551219.linp047.arubabusiness.it
/
aarteinvernizzi.it
/
index.php
<?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
//application name and namesapce
define('APPLICATION','aarte');
define('APPLICATION_NAMESPACE','Aarte');
//bootstrap
require sprintf('private/%s/procedures/bootstrap.php', APPLICATION);

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PP_CUSTOM_PHP_INI /var/www/vhosts/system/aarteinvernizzi.it/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX plesk-php70-fastcgi
SCRIPT_NAME /index.php
REQUEST_URI /it/appuntamenti/lesley-foxcroft-grazia-varisco-villa-pisani-31-05-2018/dettaglio
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /it/appuntamenti/lesley-foxcroft-grazia-varisco-villa-pisani-31-05-2018/dettaglio
REMOTE_PORT 48657
SCRIPT_FILENAME /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it/index.php
SERVER_ADMIN root@localhost
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/vhosts/h551219.linp047.arubabusiness.it/aarteinvernizzi.it
REMOTE_ADDR 44.204.24.82
SERVER_PORT 443
SERVER_ADDR 80.88.87.170
SERVER_NAME www.aarteinvernizzi.it
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_REAL_IP 44.204.24.82
HTTP_HOST www.aarteinvernizzi.it
HTTPS on
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
UNIQUE_ID ZgVFngFkFqJdhmzQqbSWYgAAAAM
REDIRECT_STATUS 200
REDIRECT_HTTPS on
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
REDIRECT_PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REDIRECT_UNIQUE_ID ZgVFngFkFqJdhmzQqbSWYgAAAAM
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711621534.1084
REQUEST_TIME 1711621534
empty
0. Whoops\Handler\PrettyPageHandler