9. Whoops\Exception\ErrorException
…/­app/­theme/­168/­event-detail.php3
8. Whoops\Run handleError
…/­app/­theme/­168/­event-detail.php3
7. include
…/­vendor/­league/­plates/­src/­Template/­Template.php118
6. League\Plates\Template\Template render
…/­vendor/­league/­plates/­src/­Engine.php277
5. League\Plates\Engine render
…/­theme.php45
4. {closure}
<#unknown>0
3. call_user_func_array
…/­src/­Route.php79
2. Route handle
…/­src/­Route.php307
1. Route run
…/­theme.php101
0. require_once
…/­index.php24

Whoops \ Exception \ ErrorException (E_NOTICE) Whoops\Exception\ErrorException thrown with message "Trying to get property of non-object" Stacktrace: #9 Whoops\Exception\ErrorException in /var/www/html/168solution.com/app/theme/168/event-detail.php:3 #8 Whoops\Run:handleError in /var/www/html/168solution.com/app/theme/168/event-detail.php:3 #7 include in /var/www/html/168solution.com/vendor/league/plates/src/Template/Template.php:118 #6 League\Plates\Template\Template:render in /var/www/html/168solution.com/vendor/league/plates/src/Engine.php:277 #5 League\Plates\Engine:render in /var/www/html/168solution.com/theme.php:45 #4 {closure} in <#unknown>:0 #3 call_user_func_array in /var/www/html/168solution.com/src/Route.php:79 #2 Route:handle in /var/www/html/168solution.com/src/Route.php:307 #1 Route:run in /var/www/html/168solution.com/theme.php:101 #0 require_once in /var/www/html/168solution.com/index.php:24

Trying to get property of non-object

<?php
    $meta = array(
            'title' => ucwords($data->name),
            'description' => Io::trim($data->description),
            'event' => $is,
            'year' => date('Y'),
            'month' => date('m'),
            'day' => date('d')
        );
    $this->layout('layout-page', $meta);
<?php
    $meta = array(
            'title' => ucwords($data->name),
            'description' => Io::trim($data->description),
            'event' => $is,
            'year' => date('Y'),
            'month' => date('m'),
            'day' => date('d')
        );
    $this->layout('layout-page', $meta);
            unset($data);
 
            extract($this->data);
 
            ob_start();
 
            if ($this->exists()) {
                include $this->path();
            } else {
                throw new LogicException(
     * Create a new template and render it.
     * @param  string $name
     * @param  array  $data
     * @return string
     */
    public function render($name, array $data = array())
    {
        return $this->make($name)->render($data);
    }
}
			$assign['day'] = (is_null($day)) ? '' : $day;
 
			if (($year)) {
				if (!is_null($event)) {
					$assign['is'] = $event;
					$assign['data'] = custom_event($event);
 
					echo $template->render('event-detail', $assign);
					return;
				} elseif (!is_null($day)) {
<#unknown>
                        if (isset($data[$index+1]) && isset($data[$index+1][0]) && is_array($data[$index+1][0])) {
                            return trim(substr($match[0][0], 0, $data[$index+1][0][1] - $match[0][1]), '/');
                        } else {
                            return (isset($match[0][0]) ? trim($match[0][0], '/') : null);
                        }
                    }, $data, array_keys($data));
 
                    call_user_func_array($value['fn'], $parameter);
 
                    $i++;
        public function run($callback = null) {
            $this->method = $this->method();
 
            if (isset($this->beforeroute[$this->method])) $this->handle($this->beforeroute[$this->method]);
 
            $num = 0;
 
            if (isset($this->route[$this->method])) $num = $this->handle($this->route[$this->method], true);
 
            if ($num == 0) {
 
				break;
		}
 
		echo $template->render($detect->call, $assign);
	});
 
	$route->run();
 
 
    if ($route->segment(1) == ENGINE) {
        $dips = ($site['whitelist']['status']['backend'] && !$legal['backend']) ? 'app/global/redirect' : 'engine';
    } else {
        $dips = ($site['whitelist']['status']['frontend'] && !$legal['frontend'] || $site['offline']['status'] && !$legal['frontend']) ? 'app/global/maintenance' : 'theme';
    }
 
    require_once $dips . '.php';
 
    ob_end_flush();
Key Value
REDIRECT_STATUS 200
HTTP_HOST www.168solution.com
HTTP_X_FORWARDED_SCHEME http
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_FOR 44.204.24.82
HTTP_X_REAL_IP 44.204.24.82
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache/2.2.15 (CentOS) Server at www.168solution.com Port 80</address>
SERVER_SOFTWARE Apache/2.2.15 (CentOS)
SERVER_NAME www.168solution.com
SERVER_ADDR 10.10.10.5
SERVER_PORT 80
REMOTE_ADDR 10.242.18.10
DOCUMENT_ROOT /var/www/html/168solution.com/
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/168solution.com/index.php
REMOTE_PORT 42448
REDIRECT_URL /event/2018/october/10/successful-managing-email-interaction
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /event/2018/october/10/successful-managing-email-interaction
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711634093
REQUEST_TIME 1711634093
empty
empty
empty
empty
Key Value
language EN
empty
0. Whoops\Handler\PrettyPageHandler