14. Whoops\Exception\ErrorException
…/­views/­news_detail.php12
13. Whoops\Run handleError
…/­views/­news_detail.php12
12. include
…/­vendor/­league/­plates/­src/­Template/­Template.php118
11. League\Plates\Template\Template render
…/­vendor/­league/­plates/­src/­Engine.php277
10. League\Plates\Engine render
…/­src/­App/­Application.php77
9. App\Application render
…/­index.php75
8. {closure}
<#unknown>0
7. call_user_func_array
…/­vendor/­league/­route/­src/­Strategy/­RequestResponseStrategy.php18
6. League\Route\Strategy\RequestResponseStrategy dispatch
…/­vendor/­league/­route/­src/­Route.php92
5. League\Route\Route dispatch
<#unknown>0
4. call_user_func_array
…/­vendor/­league/­route/­src/­Dispatcher.php62
3. League\Route\Dispatcher handleFound
…/­vendor/­league/­route/­src/­Dispatcher.php43
2. League\Route\Dispatcher handle
…/­vendor/­league/­route/­src/­RouteCollection.php118
1. League\Route\RouteCollection dispatch
…/­src/­App/­Application.php68
0. App\Application run
…/­index.php359

Whoops \ Exception \ ErrorException (E_NOTICE)

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
Whoops\Exception\ErrorException thrown with message "Trying to get property of non-object" Stacktrace: #14 Whoops\Exception\ErrorException in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/views/news_detail.php:12 #13 Whoops\Run:handleError in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/views/news_detail.php:12 #12 include in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/plates/src/Template/Template.php:118 #11 League\Plates\Template\Template:render in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/plates/src/Engine.php:277 #10 League\Plates\Engine:render in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/src/App/Application.php:77 #9 App\Application:render in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/index.php:75 #8 {closure} in <#unknown>:0 #7 call_user_func_array in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Strategy/RequestResponseStrategy.php:18 #6 League\Route\Strategy\RequestResponseStrategy:dispatch in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Route.php:92 #5 League\Route\Route:dispatch in <#unknown>:0 #4 call_user_func_array in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Dispatcher.php:62 #3 League\Route\Dispatcher:handleFound in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Dispatcher.php:43 #2 League\Route\Dispatcher:handle in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/RouteCollection.php:118 #1 League\Route\RouteCollection:dispatch in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/src/App/Application.php:68 #0 App\Application:run in /home/appgamecom/domains/appgamehk.com/public_html/ruhk/index.php:359

Trying to get property of non-object

/home/appgamecom/domains/appgamehk.com/public_html/ruhk/views/news_detail.php
$this->layout('website_layout');
?>
<div class="page_banner" style="background: url(/backend/upload/2e04d5-1503818997.jpg) no-repeat 0px 0px;"></div>
 
<div class="contact">
	<div class="container">
		<div class="agileits-title">
			<h2><?= $news->name; ?></h2>
		</div>
		<div class="agile-contact-form">
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/views/news_detail.php
$this->layout('website_layout');
?>
<div class="page_banner" style="background: url(/backend/upload/2e04d5-1503818997.jpg) no-repeat 0px 0px;"></div>
 
<div class="contact">
	<div class="container">
		<div class="agileits-title">
			<h2><?= $news->name; ?></h2>
		</div>
		<div class="agile-contact-form">
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/plates/src/Template/Template.php
            unset($data);
 
            extract($this->data);
 
            ob_start();
 
            if ($this->exists()) {
                include $this->path();
            } else {
                throw new LogicException(
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/plates/src/Engine.php
     * 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);
    }
}
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/src/App/Application.php
    }
 
    public function getPlates() {
        return $this->plates;
    }
 
    public function render($name, $data = []) {
        return $this->plates->render($name, $data);
    }
	
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/index.php
		$response->getBody()->write($html);
		return $response;
	});
	
	$route->map("GET", "/news/{id}", function (ServerRequestInterface $request, ResponseInterface $response, array $args) use ($app) {	 		
		$html = $app->render("news_detail", [
			"news" => R::findOne("news", " id = ?", [$args['id']])
		]);
		$response->getBody()->write($html);
		return $response;
<#unknown>
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Strategy/RequestResponseStrategy.php
     */
    public function dispatch(callable $controller, array $vars, Route $route = null)
    {
        $response = call_user_func_array($controller, [
            $this->getRequest(),
            $this->getResponse(),
            $vars
        ]);
 
        return $this->determineResponse($response);
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Route.php
            $strategy->setRequest($request);
        }
 
        if ($strategy instanceof ResponseAwareInterface) {
            $strategy->setResponse($response);
        }
 
        return $strategy->dispatch($callable, $vars, $this);
    }
 
<#unknown>
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Dispatcher.php
     */
    protected function handleFound(
        callable               $route,
        ServerRequestInterface $request,
        ResponseInterface      $response,
        array                  $vars
    ) {
        return call_user_func_array($route, [$request, $response, $vars]);
    }
 
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/Dispatcher.php
        }
 
        if ($match[0] === FastRoute::METHOD_NOT_ALLOWED) {
            $allowed = (array) $match[1];
            return $this->handleNotAllowed($response, $allowed);
        }
 
        return $this->handleFound($match[1], $request, $response, (array) $match[2]);
    }
 
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/vendor/league/route/src/RouteCollection.php
     *
     * @return \Psr\Http\Message\ResponseInterface
     */
    public function dispatch(ServerRequestInterface $request, ResponseInterface $response)
    {
        $dispatcher = $this->getDispatcher($request);
 
        return $dispatcher->handle($request, $response);
    }
 
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/src/App/Application.php
     * @return \League\Route\RouteCollection
     */
    public function getRoute() {
        return $this->route;
    }
 
    public function run() {
        $response = $this->route->dispatch($this->container->get('request'),$this->container->get('response'));
        $this->container->get('emitter')->emit($response);
    }
/home/appgamecom/domains/appgamehk.com/public_html/ruhk/index.php
//default TC
$route->map("GET", "/", function (ServerRequestInterface $request, ResponseInterface $response, array $args) use ($app) {
    header("Location: http://" . $_SERVER['SERVER_NAME'] . "/tc");
    exit();
});
 
try {
    $app->run();
} catch (NotFoundException $ex) {
    echo "Not Found";
empty
empty
empty
empty
empty
Key Value
USER appgamecom
HOME /home/appgamecom
FCGI_ROLE RESPONDER
REDIRECT_UNIQUE_ID ZgaGGB0tUK2kRU5Swi4fFwAAABU
REDIRECT_STATUS 200
UNIQUE_ID ZgaGGB0tUK2kRU5Swi4fFwAAABU
proxy-nokeepalive 1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST ruhk.appgamehk.com
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2
SERVER_NAME ruhk.appgamehk.com
SERVER_ADDR 43.241.73.83
SERVER_PORT 80
REMOTE_ADDR 34.229.173.107
DOCUMENT_ROOT /home/appgamecom/domains/appgamehk.com/public_html/ruhk
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/appgamecom/domains/appgamehk.com/public_html/ruhk
SERVER_ADMIN webmaster@appgamehk.com
SCRIPT_FILENAME /home/appgamecom/domains/appgamehk.com/public_html/ruhk/index.php
REMOTE_PORT 33930
REDIRECT_URL /tc/news/codes.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /tc/news/codes.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711703576.2262
REQUEST_TIME 1711703576
empty
0. Whoops\Handler\PrettyPageHandler