Whoops \ Exception \ ErrorException (E_ERROR)
Call to a member function getId() on null Whoops\Exception\ErrorException thrown with message "Call to a member function getId() on null" Stacktrace: #0 Whoops\Exception\ErrorException in /home/elevat02/porzelack.com.ua/www/website/views/scripts/news/detail.php:21
Stack frames (1)
0
Whoops
\
Exception
\
ErrorException
/
website
/
views
/
scripts
/
news
/
detail.php
21
/
home
/
elevat02
/
porzelack.com.ua
/
www
/
website
/
views
/
scripts
/
news
/
detail.php
    <div class="container">
        <div class="page-header__text">
            <h2 class="page-header__title">Новости</h2>
            <p class="page-header__subtitle"><?= $this->news_item->getTitle();?></p>
        </div>
        <div class="breadcrumbs">
            <a title="Главная" href="/" class="home">
                На главную
            </a>
            <a title="Новости" href="/news" class="home">
                Новости
            </a>
            <?php
                $detailLink = $this->url([
                    "id" => $this->news_item->getId(),
                    "text" => $this->news_item->getTitle(),
                    "prefix" => $this->document->getFullPath()
                ], "news", true);   
            ?>
            <a title="Новости" href="/news?c=<?= $this->news_item->getNews_category()[0]->getId()?>" class="home">
                <?= $this->news_item->getNews_category()[0]->getName()?>
            </a>
            <span><?= $this->news_item->getTitle();?></span>
        </div>
    </div><!-- /.container -->
</div><!-- /.page-header -->
 
<div class="content-area container">
 
    <div class="row">
 
        <main class="site-main col-xs-12 col-lg-9">
 
            <article class="clearfix hentry">
 
                <header class="hentry__header">
                    <h1 class="hentry__title"><?= $this->news_item->getTitle();?></h1>
                </header><!-- /.entry-header -->
 
                <div class="hentry__content entry-content"><p>
Arguments
  1. "Call to a member function getId() on null"
    

Environment & details:

Key Value
prefix
"/"
empty
empty
empty
empty
Key Value
PHPRC
"/home/elevat02/.system/php/www.porzelack.com.ua.ini"
PWD
"/home/elevat02/porzelack.com.ua/www/"
SERVING_HOST_INFO
"apache:php56:920097:232886:www.porzelack.com.ua;"
TMP
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
TMPDIR
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
SHLVL
"0"
TEMP
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
PATH
"/usr/local/bin:/usr/bin:/bin"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
CONTENT_LENGTH
"0"
HTTP_HOST
"www.porzelack.com.ua"
HTTP_USER_AGENT
"claudebot"
HTTP_GEOIP_COUNTRY_CODE
"US"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_INTERNAL_REAL_IP
"44.202.128.177"
REDIRECT_UNIQUE_ID
"ZgVajAJ25hXtPmdQ76KHEAAAAxo"
REDIRECT_SCRIPT_URL
"/news/84"
REDIRECT_SCRIPT_URI
"http://www.porzelack.com.ua/news/84"
REDIRECT_vhost_id
"920097"
REDIRECT_account_id
"232886"
REDIRECT_PWD
"/home/elevat02/porzelack.com.ua/www/"
REDIRECT_TMP
"/home/elevat02/.system/tmp"
REDIRECT_TEMP
"/home/elevat02/.system/tmp"
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZgVajAJ25hXtPmdQ76KHEAAAAxo"
SCRIPT_URL
"/news/84"
SCRIPT_URI
"http://www.porzelack.com.ua/news/84"
vhost_id
"920097"
account_id
"232886"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"www.porzelack.com.ua"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"44.202.128.177"
DOCUMENT_ROOT
"/home/elevat02/porzelack.com.ua/www/"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/elevat02/porzelack.com.ua/www/"
SERVER_ADMIN
"server@admin.com"
SCRIPT_FILENAME
"/home/elevat02/porzelack.com.ua/www/index.php"
REMOTE_PORT
"43810"
REDIRECT_URL
"/news/84"
REDIRECT_QUERY_STRING
"prefix=%2F"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"prefix=%2F"
REQUEST_URI
"/news/84?prefix=%2F"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711626892.596
REQUEST_TIME
1711626892
windir
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
SystemRoot
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
Key Value
TMPDIR
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
TEMP
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
TMP
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
windir
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
SystemRoot
"/home/elevat02/porzelack.com.ua/www/website/var/cache"
0. Whoops\Handler\PrettyPageHandler