Whoops \ Exception \ ErrorException (E_NOTICE)
Trying to get property 'id' of non-object Whoops\Exception\ErrorException thrown with message "Trying to get property 'id' of non-object" Stacktrace: #5 Whoops\Exception\ErrorException in /home/icerik/domains/enicerik.com/public_html/App/Controllers/Frontend/ContentController.php:33 #4 Whoops\Run:handleError in /home/icerik/domains/enicerik.com/public_html/App/Controllers/Frontend/ContentController.php:33 #3 App\Controllers\Frontend\ContentController:information in /home/icerik/domains/enicerik.com/public_html/System/Libs/Router/Router.php:294 #2 call_user_func_array in /home/icerik/domains/enicerik.com/public_html/System/Libs/Router/Router.php:294 #1 System\Libs\Router\Router:run in /home/icerik/domains/enicerik.com/public_html/System/Kernel/Kernel.php:35 #0 System\Kernel\Kernel:__construct in /home/icerik/domains/enicerik.com/public_html/index.php:22
Stack frames (6)
5
Whoops
\
Exception
\
ErrorException
/
App
/
Controllers
/
Frontend
/
ContentController.php
33
4
Whoops
\
Run
handleError
/
App
/
Controllers
/
Frontend
/
ContentController.php
33
3
App
\
Controllers
\
Frontend
\
ContentController
information
/
System
/
Libs
/
Router
/
Router.php
294
2
call_user_func_array
/
System
/
Libs
/
Router
/
Router.php
294
1
System
\
Libs
\
Router
\
Router
run
/
System
/
Kernel
/
Kernel.php
35
0
System
\
Kernel
\
Kernel
__construct
/
index.php
22
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
App
/
Controllers
/
Frontend
/
ContentController.php
 
            $this->model['content'] = Model::namespace('backend')->run('ContentModel');
            $this->model['category'] = Model::namespace('backend')->run('ContentCategoryModel');
            $this->model['setting'] = Model::namespace('backend')->run('SettingModel');
 
    }
 
    public function index(){
 
            $contents = $this->model['content']->all();
            $site_color = json_decode($this->model['setting']->get('site_color'), true);
            $site_color = $site_color['colors'][$site_color['current']];
        ExtendedView::render('frontend.pages.content.view',['contents' => $contents,'current_color' => $site_color]);
 
    }
 
    public function information($slug){
 
            $content = $this->model['content']->whereSlug($slug);
            $categories = $this->model['category']->whereAllContentId($content->id);
            $site_color = json_decode($this->model['setting']->get('site_color'), true);
            $site_color = $site_color['colors'][$site_color['current']];
        ExtendedView::render('frontend.pages.content.information',['content' => $content,'categories' => $categories,'current_color' => $site_color]);
 
    }
 
    public function order($slug){
 
 
 
            if(Request::isMethod('POST') && csrf_check(Request::post('_token'))){
 
 
                    $rules = [
                        'project_title' => ['label' => 'Proje Başlığı' , 'rules' => 'required'],
                        'content_count' => ['label' => 'Makale Adet' , 'rules' => 'required|max_numeric,50,min_numeric,1']
                    ];
 
                    Validation::rules($rules,request());
 
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
App
/
Controllers
/
Frontend
/
ContentController.php
 
            $this->model['content'] = Model::namespace('backend')->run('ContentModel');
            $this->model['category'] = Model::namespace('backend')->run('ContentCategoryModel');
            $this->model['setting'] = Model::namespace('backend')->run('SettingModel');
 
    }
 
    public function index(){
 
            $contents = $this->model['content']->all();
            $site_color = json_decode($this->model['setting']->get('site_color'), true);
            $site_color = $site_color['colors'][$site_color['current']];
        ExtendedView::render('frontend.pages.content.view',['contents' => $contents,'current_color' => $site_color]);
 
    }
 
    public function information($slug){
 
            $content = $this->model['content']->whereSlug($slug);
            $categories = $this->model['category']->whereAllContentId($content->id);
            $site_color = json_decode($this->model['setting']->get('site_color'), true);
            $site_color = $site_color['colors'][$site_color['current']];
        ExtendedView::render('frontend.pages.content.information',['content' => $content,'categories' => $categories,'current_color' => $site_color]);
 
    }
 
    public function order($slug){
 
 
 
            if(Request::isMethod('POST') && csrf_check(Request::post('_token'))){
 
 
                    $rules = [
                        'project_title' => ['label' => 'Proje Başlığı' , 'rules' => 'required'],
                        'content_count' => ['label' => 'Makale Adet' , 'rules' => 'required|max_numeric,50,min_numeric,1']
                    ];
 
                    Validation::rules($rules,request());
 
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
System
/
Libs
/
Router
/
Router.php
                    array_shift($params);
 
                    // Checking middlewares
                    if (array_key_exists('middlewares', $val)) {
                        foreach ($val['middlewares'] as $midKey => $midVal) {
                            list($controller, $method) = explode('@', $midVal['callback']);
 
                            if (class_exists($controller)) {
                                call_user_func_array([new $controller, $method], []);
                            }
                        }
                    }
 
                    if (is_callable($val['callback'])) {
                        call_user_func_array($val['callback'], array_values($params));
                    } else if (stripos($val['callback'], '@') !== false) {
                        list($controller, $method) = explode('@', $val['callback']);
 
                        if (class_exists($controller)) {
                            call_user_func_array([new $controller, $method], array_values($params));
                        } else {
                            self::pageNotFound();
                        }
                    }
 
                    break;
                }
 
            }
 
        }
 
        if ($matched === 0)
            self::pageNotFound();
    }
 
    /**
     * Check Domain
     *
     * @param array $params
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
System
/
Libs
/
Router
/
Router.php
                    array_shift($params);
 
                    // Checking middlewares
                    if (array_key_exists('middlewares', $val)) {
                        foreach ($val['middlewares'] as $midKey => $midVal) {
                            list($controller, $method) = explode('@', $midVal['callback']);
 
                            if (class_exists($controller)) {
                                call_user_func_array([new $controller, $method], []);
                            }
                        }
                    }
 
                    if (is_callable($val['callback'])) {
                        call_user_func_array($val['callback'], array_values($params));
                    } else if (stripos($val['callback'], '@') !== false) {
                        list($controller, $method) = explode('@', $val['callback']);
 
                        if (class_exists($controller)) {
                            call_user_func_array([new $controller, $method], array_values($params));
                        } else {
                            self::pageNotFound();
                        }
                    }
 
                    break;
                }
 
            }
 
        }
 
        if ($matched === 0)
            self::pageNotFound();
    }
 
    /**
     * Check Domain
     *
     * @param array $params
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
System
/
Kernel
/
Kernel.php
use System\Facades\Facade;
use Whoops\Run as WhoopsRun;
use Whoops\Handler\PrettyPageHandler as WhoopsPrettyPageHandler;
 
class Kernel
{
 
    public function __construct()
    {
        // Initialize Whoops Error Handler
        $this->initWhoops();
 
        // Initialize Config
        $this->initApplications();
 
        // Getting Routes
        Import::config('routes');
 
        // Starting Router
        Router::run();
    }
 
    /**
     * Whoops Initializer
     *
     * @return object
     */
    private function initWhoops()
    {
        $whoops = new WhoopsRun;
        $whoops->pushHandler(new WhoopsPrettyPageHandler);
        $whoops->register();
 
        return $this;
    }
 
    /**
     * Application Initializer
     *
     * @return void
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
index.php
 * Titan-2 Mini Framework
 * Simple and Modern Web Application Framework
 *
 * Author     : Turan Karatuğ
 * Web         : http://www.titanphp.com
 * Docs     : http://kilavuz.titanphp.com
 * Version     : 2.2.0
 * Github    : http://github.com/tkaratug/titan2
 * License    : MIT
 *
 *************************************************/
 
// Require Composer Autoload
require_once __DIR__ . '/vendor/autoload.php';
 
// Require Starter
require_once __DIR__ . '/System/Kernel/Starter.php';
 
// Run Kernel
new System\Kernel\Kernel();
 

Environment & details:

empty
empty
empty
empty
Key Value
session_hash 5bba18b1839f688323325c93c77e71a5
Key Value
PATH /usr/local/bin:/bin:/usr/bin
HTTP_ACCEPT */*
HTTP_HOST enicerik.com
HTTP_USER_AGENT claudebot
DOCUMENT_ROOT /home/icerik/domains/enicerik.com/private_html
REMOTE_ADDR 54.92.135.47
REMOTE_PORT 51220
SERVER_ADDR 89.252.188.73
SERVER_NAME enicerik.com
SERVER_ADMIN webmaster@enicerik.com
SERVER_PORT 443
REQUEST_SCHEME https
REQUEST_URI /makale-siparisi/spesifik-icerik
REDIRECT_URL /makale-siparisi/spesifik-icerik
REDIRECT_REQUEST_METHOD GET
HTTPS on
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
SCRIPT_FILENAME /home/icerik/domains/enicerik.com/private_html/index.php
QUERY_STRING
SCRIPT_URI https://enicerik.com/makale-siparisi/spesifik-icerik
SCRIPT_URL /makale-siparisi/spesifik-icerik
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711693973.2129
REQUEST_TIME 1711693973
Key Value
PATH /usr/local/bin:/bin:/usr/bin
0. Whoops\Handler\PrettyPageHandler