0.
…/­index.php84

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: #0 in /home/admin/web/imptrust.com/public_html/index.php:84

Trying to get property of non-object

/home/admin/web/imptrust.com/public_html/index.php
    });
 
    $route->map("GET", "/page/{id}", function (ServerRequestInterface $request, ResponseInterface $response, array $args) use ($app) {
 
        $page = R::findOne('page', ' id = ?', [$args['id']]);
 
        //redirect to currency page
        if ($page->group == "service" && $page->title_tc == "匯率優惠") {
            header('Location:http://' . $_SERVER['SERVER_NAME'] . '/' . $app->lang . '/currency');
            exit();
empty
empty
empty
empty
empty
Key Value
REDIRECT_UNIQUE_ID ZgWkolgDlMWqQgg4ZhJz0gAAAEU
REDIRECT_PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REDIRECT_STATUS 200
UNIQUE_ID ZgWkolgDlMWqQgg4ZhJz0gAAAEU
PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
HTTP_HOST trust.1416888.com
HTTP_X_FORWARDED_FOR 3.229.124.236, 3.229.124.236
HTTP_CONNECTION close
HTTP_ACCEPT_ENCODING gzip
HTTP_CF_RAY 86b93c96bfa5592f-IAD
HTTP_X_FORWARDED_PROTO http
HTTP_CF_VISITOR {"scheme":"http"}
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_CF_CONNECTING_IP 3.229.124.236
HTTP_CDN_LOOP cloudflare
HTTP_CF_IPCOUNTRY US
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.6.40
SERVER_NAME trust.1416888.com
SERVER_ADDR 172.31.16.82
SERVER_PORT 80
REMOTE_ADDR 3.229.124.236
DOCUMENT_ROOT /home/admin/web/imptrust.com/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/admin/web/imptrust.com/public_html
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /home/admin/web/imptrust.com/public_html/index.php
REMOTE_PORT 58404
REDIRECT_URL /sc/page/5
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /sc/page/5
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711645858.707
REQUEST_TIME 1711645858
HTTP on
HTTPS on
empty
0. Whoops\Handler\PrettyPageHandler