Windwalker \ Edge \ Exception \ EdgeException (8)
Trying to get property 'slug' of non-object | View layout: /home/icerik/domains/enicerik.com/public_html/App/Views/frontend/pages/publisher/information.blade.php (frontend.pages.publisher.information)
Previous exceptions
  • Trying to get property 'slug' of non-object (8)
Windwalker\Edge\Exception\EdgeException thrown with message "Trying to get property 'slug' of non-object | View layout: /home/icerik/domains/enicerik.com/public_html/App/Views/frontend/pages/publisher/information.blade.php (frontend.pages.publisher.information)" Stacktrace: #12 Windwalker\Edge\Exception\EdgeException in /home/icerik/domains/enicerik.com/public_html/App/Views/frontend/pages/publisher/information.blade.php:6 #11 Windwalker\Edge\Edge:wrapException in /home/icerik/domains/enicerik.com/public_html/vendor/windwalker/edge/Edge.php:169 #10 Whoops\Exception\ErrorException in /home/icerik/domains/enicerik.com/public_html/vendor/windwalker/edge/Edge.php:165 #9 Whoops\Run:handleError in /home/icerik/domains/enicerik.com/public_html/vendor/windwalker/edge/Edge.php:165 #8 eval in /home/icerik/domains/enicerik.com/public_html/vendor/windwalker/edge/Edge.php:165 #7 Windwalker\Edge\Edge:render in /home/icerik/domains/enicerik.com/public_html/App/Helpers/ExtendedView.php:34 #6 App\Helpers\ExtendedView:render in /home/icerik/domains/enicerik.com/public_html/System/Facades/Facade.php:97 #5 call_user_func_array in /home/icerik/domains/enicerik.com/public_html/System/Facades/Facade.php:97 #4 System\Facades\Facade:__callStatic in /home/icerik/domains/enicerik.com/public_html/App/Controllers/Frontend/PublisherController.php:34 #3 App\Controllers\Frontend\PublisherController: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 (13)
12
Windwalker
\
Edge
\
Exception
\
EdgeException
/
App
/
Views
/
frontend
/
pages
/
publisher
/
information.blade.php
6
11
Windwalker
\
Edge
\
Edge
wrapException
/
vendor
/
windwalker
/
edge
/
Edge.php
169
10
Whoops
\
Exception
\
ErrorException
/
vendor
/
windwalker
/
edge
/
Edge.php
165
9
Whoops
\
Run
handleError
/
vendor
/
windwalker
/
edge
/
Edge.php
165
8
eval
/
vendor
/
windwalker
/
edge
/
Edge.php
165
7
Windwalker
\
Edge
\
Edge
render
/
App
/
Helpers
/
ExtendedView.php
34
6
App
\
Helpers
\
ExtendedView
render
/
System
/
Facades
/
Facade.php
97
5
call_user_func_array
/
System
/
Facades
/
Facade.php
97
4
System
\
Facades
\
Facade
__callStatic
/
App
/
Controllers
/
Frontend
/
PublisherController.php
34
3
App
\
Controllers
\
Frontend
\
PublisherController
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
/
Views
/
frontend
/
pages
/
publisher
/
information.blade.php
@extends('frontend.template')
 
@section('content')
<section class="page-columns white-transparent-gradient-background">
  <div class="container">
    <div class="col-lg-12">
 
      <form action="{{ route('publisher.order',['slug' => $publisher->slug]) }}" method="post">
 
      <div class="row">
 
          <div class="col-lg-12">
            <div class="columns-title">EDİTÖRLÜK PAKETİ SİPARİŞ</div>
            <div class="columns-sub-title">Aşağıdaki alanları doldurarak yeni sipariş oluşturabilirsiniz.</div>
          </div>
 
          <div class="col-lg-12 mb-3">
            @include('frontend.include.alert')
          </div>
 
          <div class="col-lg-12 mb-15">
 
            <div class="card card-custom">
              <div class="card-header">Sipariş Bilgileri</div>
              <div class="card-body">
 
                  <div class="form-group form-row">
 
                      <div class="col">
                        <label>Site Adresi</label>
                        <input type="text" class="form-control" name="site_url" value="">
                      </div>
 
                      <div class="col">
                        <label>Yönetim Paneli Adresi</label>
                        <input type="text" class="form-control" name="site_admin" value="">
                      </div>
 
                  </div>
 
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
vendor
/
windwalker
/
edge
/
Edge.php
 
        $__data = array_merge($this->getGlobals(true), $__more, $__data);
 
        foreach ($__data as $__key => $__value) {
            $$__key = $__value;
        }
 
        unset($__data, $__value, $__key);
 
        ob_start();
 
        try {
            if ($this->cache instanceof EdgeFileCache) {
                include $this->cache->getCacheFile($this->cache->getCacheKey($__path));
            } else {
                eval(' ?>' . $this->cache->load($__path) . '<?php ');
            }
        } catch (\Exception $e) {
            ob_clean();
            $this->wrapException($e, $__path, $__layout);
 
            return null;
        } catch (\Throwable $e) {
            ob_clean();
            $this->wrapException($e, $__path, $__layout);
 
            return null;
        }
 
        $result = ltrim(ob_get_clean());
 
        $this->decrementRender();
 
        $this->flushSectionsIfDoneRendering();
 
        return $result;
    }
 
    /**
     * wrapException
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
vendor
/
windwalker
/
edge
/
Edge.php
            $this->cache->store($__path, $compiler->compile($this->loader->load($__path)));
 
            unset($compiler);
        }
 
        $__data = array_merge($this->getGlobals(true), $__more, $__data);
 
        foreach ($__data as $__key => $__value) {
            $$__key = $__value;
        }
 
        unset($__data, $__value, $__key);
 
        ob_start();
 
        try {
            if ($this->cache instanceof EdgeFileCache) {
                include $this->cache->getCacheFile($this->cache->getCacheKey($__path));
            } else {
                eval(' ?>' . $this->cache->load($__path) . '<?php ');
            }
        } catch (\Exception $e) {
            ob_clean();
            $this->wrapException($e, $__path, $__layout);
 
            return null;
        } catch (\Throwable $e) {
            ob_clean();
            $this->wrapException($e, $__path, $__layout);
 
            return null;
        }
 
        $result = ltrim(ob_get_clean());
 
        $this->decrementRender();
 
        $this->flushSectionsIfDoneRendering();
 
        return $result;
Exception message: Trying to get property 'slug' of non-object
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
vendor
/
windwalker
/
edge
/
Edge.php
            $this->cache->store($__path, $compiler->compile($this->loader->load($__path)));
 
            unset($compiler);
        }
 
        $__data = array_merge($this->getGlobals(true), $__more, $__data);
 
        foreach ($__data as $__key => $__value) {
            $$__key = $__value;
        }
 
        unset($__data, $__value, $__key);
 
        ob_start();
 
        try {
            if ($this->cache instanceof EdgeFileCache) {
                include $this->cache->getCacheFile($this->cache->getCacheKey($__path));
            } else {
                eval(' ?>' . $this->cache->load($__path) . '<?php ');
            }
        } catch (\Exception $e) {
            ob_clean();
            $this->wrapException($e, $__path, $__layout);
 
            return null;
        } catch (\Throwable $e) {
            ob_clean();
            $this->wrapException($e, $__path, $__layout);
 
            return null;
        }
 
        $result = ltrim(ob_get_clean());
 
        $this->decrementRender();
 
        $this->flushSectionsIfDoneRendering();
 
        return $result;
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
vendor
/
windwalker
/
edge
/
Edge.php
            $this->cache->store($__path, $compiler->compile($this->loader->load($__path)));
 
            unset($compiler);
        }
 
        $__data = array_merge($this->getGlobals(true), $__more, $__data);
 
        foreach ($__data as $__key => $__value) {
            $$__key = $__value;
        }
 
        unset($__data, $__value, $__key);
 
        ob_start();
 
        try {
            if ($this->cache instanceof EdgeFileCache) {
                include $this->cache->getCacheFile($this->cache->getCacheKey($__path));
            } else {
                eval(' ?>' . $this->cache->load($__path) . '<?php ');
            }
        } catch (\Exception $e) {
            ob_clean();
            $this->wrapException($e, $__path, $__layout);
 
            return null;
        } catch (\Throwable $e) {
            ob_clean();
            $this->wrapException($e, $__path, $__layout);
 
            return null;
        }
 
        $result = ltrim(ob_get_clean());
 
        $this->decrementRender();
 
        $this->flushSectionsIfDoneRendering();
 
        return $result;
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
App
/
Helpers
/
ExtendedView.php
    protected $theme;
    protected $vars = [];
 
    public function render($file, $vars = [], $cache = false)
    {
        $this->vars = array_merge($this->vars, $vars);
 
        $paths = [APP_DIR . 'Views'];
 
        $loader = new EdgeFileLoader($paths);
        $loader->addFileExtension('.blade.php');
 
        if ($cache === false) {
            $edge = new Edge($loader);
        } else {
            $edge = new Edge($loader, null, new EdgeFileCache(APP_DIR . '/Storage/Cache'));
        }
 
        if (is_null($this->theme)) {
            echo $edge->render($file, $this->vars);
        } else {
            echo $edge->render($this->theme . '.' . $file, $this->vars);
        }
    }
 
    public function setGlobalVars(array $vars)
    {
        foreach ($vars as $key => $var) {
            $this->vars[$key] = $var;
        }
    }
}
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
System
/
Facades
/
Facade.php
     * Call Methods in Application Object
     *
     * @param string $method
     * @param array $args
     * @return mixed
     */
    public static function __callStatic($method, $args)
    {
        // Get Facade Accessor
        $accessor     = static::getFacadeAccessor();
 
        // Get Service Provider
        $provider     = static::resolveInstance($accessor);
 
        // Get Instance of Service Provider If it doesn't exist
        if (!array_key_exists($accessor, static::$createdInstances)) {
            static::$createdInstances[$accessor] = new $provider;
        }
        
        return call_user_func_array([static::$createdInstances[$accessor], $method], $args);
    }
    
}
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
System
/
Facades
/
Facade.php
     * Call Methods in Application Object
     *
     * @param string $method
     * @param array $args
     * @return mixed
     */
    public static function __callStatic($method, $args)
    {
        // Get Facade Accessor
        $accessor     = static::getFacadeAccessor();
 
        // Get Service Provider
        $provider     = static::resolveInstance($accessor);
 
        // Get Instance of Service Provider If it doesn't exist
        if (!array_key_exists($accessor, static::$createdInstances)) {
            static::$createdInstances[$accessor] = new $provider;
        }
        
        return call_user_func_array([static::$createdInstances[$accessor], $method], $args);
    }
    
}
/
home
/
icerik
/
domains
/
enicerik.com
/
public_html
/
App
/
Controllers
/
Frontend
/
PublisherController.php
            $this->model['publisher'] = Model::namespace('backend')->run('PublisherModel');
            $this->model['setting'] = Model::namespace('backend')->run('SettingModel');
 
    }
 
    public function index(){
 
            $publishers = $this->model['publisher']->all();
            $site_color = json_decode($this->model['setting']->get('site_color'), true);
            $site_color = $site_color['colors'][$site_color['current']];
            ExtendedView::render('frontend.pages.publisher.view',['publishers' => $publishers,'current_color' => $site_color]);
 
    }
 
    public function information($slug){
 
            $publisher = $this->model['publisher']->whereSlug($slug);
            $site_color = json_decode($this->model['setting']->get('site_color'), true);
            $site_color = $site_color['colors'][$site_color['current']];
            ExtendedView::render('frontend.pages.publisher.information',['publisher' => $publisher,'current_color' => $site_color]);
 
    }
 
    public function order($slug){
 
 
            if($_POST){
 
                $publisher = $this->model['publisher']->whereSlug($slug);
 
                $site_url = Request::post('site_url');
                $site_admin = Request::post('site_admin');
                $site_username = Request::post('site_username');
                $site_password = Request::post('site_password');
                $special_area = Request::post('special_area');
                $special_title = Request::post('special_title');
                $topic_title = Request::post('topic_title');
                $note = Request::post('note');
 
                Validation::bulkData([
/
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 5c570f20439cad60b9545040c57e6b50
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 44.211.49.158
REMOTE_PORT 34328
SERVER_ADDR 89.252.188.73
SERVER_NAME enicerik.com
SERVER_ADMIN webmaster@enicerik.com
SERVER_PORT 443
REQUEST_SCHEME https
REQUEST_URI /editorluk-paketleri/haftalik-miniplus
REDIRECT_URL /editorluk-paketleri/haftalik-miniplus
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/editorluk-paketleri/haftalik-miniplus
SCRIPT_URL /editorluk-paketleri/haftalik-miniplus
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 1711690709.4779
REQUEST_TIME 1711690709
Key Value
PATH /usr/local/bin:/bin:/usr/bin
0. Whoops\Handler\PrettyPageHandler