20. Whoops\Exception\ErrorException
…/­src/­PMCOM/­Front/­Product.php1161
19. Whoops\Run handleError
…/­src/­PMCOM/­Front/­Product.php1161
18. PMCOM\Front\Product get
…/­src/­PMCOM/­Core/­Display.php1034
17. PMCOM\Core\Display _get_item
<#unknown>0
16. call_user_func_array
…/­src/­PMCOM/­Core/­Display.php1187
15. PMCOM\Core\Display __callStatic
…/­src/­PMCOM/­Core/­Display.php1008
14. PMCOM\Core\Display get_item
…/­src/­PMCOM/­Core/­Display.php1008
13. PMCOM\Core\Display _get_breadcrumb
<#unknown>0
12. call_user_func_array
…/­src/­PMCOM/­Core/­Display.php1187
11. PMCOM\Core\Display __callStatic
…/­themes/­default/­views/­category/­view.php31
10. PMCOM\Core\Display get_breadcrumb
…/­themes/­default/­views/­category/­view.php31
9. include
…/­src/­PMCOM/­Core/­View.php35
8. PMCOM\Core\View _load
<#unknown>0
7. call_user_func_array
…/­src/­PMCOM/­Core/­View.php163
6. PMCOM\Core\View __callStatic
…/­src/­PMCOM/­Front/­Category.php247
5. PMCOM\Core\View load
…/­src/­PMCOM/­Front/­Category.php247
4. PMCOM\Front\Category view
…/­src/­PMCOM/­Core/­Router.php190
3. PMCOM\Core\Router _get_route
<#unknown>0
2. call_user_func_array
…/­src/­PMCOM/­Core/­Router.php231
1. PMCOM\Core\Router __callStatic
…/­index.php101
0. PMCOM\Core\Router get_route
…/­index.php101

Whoops \ Exception \ ErrorException (E_NOTICE) Whoops\Exception\ErrorException thrown with message "Trying to get property of non-object" Stacktrace: #20 Whoops\Exception\ErrorException in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/Product.php:1161 #19 Whoops\Run:handleError in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/Product.php:1161 #18 PMCOM\Front\Product:get in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php:1034 #17 PMCOM\Core\Display:_get_item in <#unknown>:0 #16 call_user_func_array in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php:1187 #15 PMCOM\Core\Display:__callStatic in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php:1008 #14 PMCOM\Core\Display:get_item in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php:1008 #13 PMCOM\Core\Display:_get_breadcrumb in <#unknown>:0 #12 call_user_func_array in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php:1187 #11 PMCOM\Core\Display:__callStatic in /var/www/vhosts/logos4clothes.com/httpdocs/themes/default/views/category/view.php:31 #10 PMCOM\Core\Display:get_breadcrumb in /var/www/vhosts/logos4clothes.com/httpdocs/themes/default/views/category/view.php:31 #9 include in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/View.php:35 #8 PMCOM\Core\View:_load in <#unknown>:0 #7 call_user_func_array in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/View.php:163 #6 PMCOM\Core\View:__callStatic in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/Category.php:247 #5 PMCOM\Core\View:load in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/Category.php:247 #4 PMCOM\Front\Category:view in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Router.php:190 #3 PMCOM\Core\Router:_get_route in <#unknown>:0 #2 call_user_func_array in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Router.php:231 #1 PMCOM\Core\Router:__callStatic in /var/www/vhosts/logos4clothes.com/httpdocs/index.php:101 #0 PMCOM\Core\Router:get_route in /var/www/vhosts/logos4clothes.com/httpdocs/index.php:101

Trying to get property of non-object

/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/Product.php
		    		$product = $self->preCacheGet( $id, $field, $swatch );
		    		return serialize( $product );
				}
			)
		);
		$cache = CacheModel::firstOrCreate( array( 'cache_file' => md5( "product_get_{$id}" ) . '.cache' ) );
		$cache->type = 'product_get';
		$cache->type_id = $product->id;
		$cache->save();
		return $product;
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/Product.php
		    		$product = $self->preCacheGet( $id, $field, $swatch );
		    		return serialize( $product );
				}
			)
		);
		$cache = CacheModel::firstOrCreate( array( 'cache_file' => md5( "product_get_{$id}" ) . '.cache' ) );
		$cache->type = 'product_get';
		$cache->type_id = $product->id;
		$cache->save();
		return $product;
cpt-obvious This frame is within function 'handleError'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php
		$category = & load_class('\PMCOM\Front\Category');
		$page = & load_class('\PMCOM\Front\Page');
 
		$item = '';
 
		if($product->exists($var))
		{
			$item = $product->get($var, 'slug');
		}
		elseif($category->exists($var))
cpt-obvious This frame is within function 'get'
<#unknown>
cpt-obvious This frame is within function '_get_item'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new Display();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php
		{
			unset($vars[$total_vars - 1]);
 
		}
 
		foreach($vars as $var)
		{
			$item = self::get_item($var);
			if($item)
			{
cpt-obvious This frame is within function '__callStatic'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php
		{
			unset($vars[$total_vars - 1]);
 
		}
 
		foreach($vars as $var)
		{
			$item = self::get_item($var);
			if($item)
			{
cpt-obvious This frame is within function 'get_item'
<#unknown>
cpt-obvious This frame is within function '_get_breadcrumb'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Display.php
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new Display();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/vhosts/logos4clothes.com/httpdocs/themes/default/views/category/view.php
							</ul>
						</div>
					</section>
			    <?php endif; ?>
			<?php endif; ?>
			
			<div class="container breadcrumbs cf">
				<?php echo Display::get_breadcrumb( ' <i class="fa fa-angle-double-right"></i> ' ) ?>
			</div>
			
cpt-obvious This frame is within function '__callStatic'
/var/www/vhosts/logos4clothes.com/httpdocs/themes/default/views/category/view.php
							</ul>
						</div>
					</section>
			    <?php endif; ?>
			<?php endif; ?>
			
			<div class="container breadcrumbs cf">
				<?php echo Display::get_breadcrumb( ' <i class="fa fa-angle-double-right"></i> ' ) ?>
			</div>
			
cpt-obvious This frame is within function 'get_breadcrumb'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/View.php
		if( isset( $_GET['helpers'] ) ) {
			die( include Display::theme_path() . 'views/page/helpers.php' );
		}
		if(file_exists(Display::theme_path().'views/'.$view.'.php'))
		{
			if($data) extract($data);
			include Display::theme_path().'header.php';
			include Display::theme_path().'views/'.$view.'.php';
			include Display::theme_path().'footer.php';
		}
cpt-obvious This frame is within function 'include'
<#unknown>
cpt-obvious This frame is within function '_load'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/View.php
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new View();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/Category.php
		$this->data["meta"]["canonical"] = $this->generate_url($cat->id);
 
		if( Input::get('a') && Input::get('a') == '1' ) :
			header('Content-Type: application/json');
			die( json_encode( $this->data ) );
		endif;
 
		View::load('category/view', $this->data);
	}
 
cpt-obvious This frame is within function '__callStatic'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/Category.php
		$this->data["meta"]["canonical"] = $this->generate_url($cat->id);
 
		if( Input::get('a') && Input::get('a') == '1' ) :
			header('Content-Type: application/json');
			die( json_encode( $this->data ) );
		endif;
 
		View::load('category/view', $this->data);
	}
 
cpt-obvious This frame is within function 'load'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Router.php
				} elseif( $method === 'index' ) {
					$method = $class;
				}
				foreach( $controllers as $controller ) :
					try {
						$routed = $this->container->get( $controller );
						if( $routed->exists( $method ) ) :
							die( $routed->view( $method ) );
						endif;
					} catch( \Orno\Di\Exception\ReflectionException $e ) {}
cpt-obvious This frame is within function 'view'
<#unknown>
cpt-obvious This frame is within function '_get_route'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Router.php
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new Router();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/vhosts/logos4clothes.com/httpdocs/index.php
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
 
PMCOM\Core\Router::get_route( $container );
cpt-obvious This frame is within function '__callStatic'
/var/www/vhosts/logos4clothes.com/httpdocs/index.php
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
 
PMCOM\Core\Router::get_route( $container );
cpt-obvious This frame is within function 'get_route'
Key Value
PATH /sbin:/usr/sbin:/bin:/usr/bin
PP_CUSTOM_PHP_INI /var/www/vhosts/system/logos4clothes.com/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX plesk-php56-fastcgi
SCRIPT_NAME /index.php
REQUEST_URI /polo-shirts/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /polo-shirts/
REMOTE_PORT 42473
SCRIPT_FILENAME /var/www/vhosts/logos4clothes.com/httpdocs/index.php
SERVER_ADMIN sam@purposemedia.co.uk
DOCUMENT_ROOT /var/www/vhosts/logos4clothes.com/httpdocs
REMOTE_ADDR 54.156.76.187
SERVER_PORT 443
SERVER_ADDR 5.250.179.210
SERVER_NAME logos4clothes.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at logos4clothes.com Port 443</address>
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_FORWARDED_FOR 54.156.76.187
HTTP_X_REAL_IP 54.156.76.187
HTTP_HOST logos4clothes.com
HTTPS on
SCRIPT_URI https://logos4clothes.com/polo-shirts/
SCRIPT_URL /polo-shirts/
UNIQUE_ID WwskVn8AAAEAAB9ICt8AAAAN
REDIRECT_STATUS 200
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URI https://logos4clothes.com/polo-shirts/
REDIRECT_SCRIPT_URL /polo-shirts/
REDIRECT_UNIQUE_ID WwskVn8AAAEAAB9ICt8AAAAN
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1527456854.683
REQUEST_TIME 1527456854
empty
empty
empty
empty
Key Value
category_url http://logos4clothes.com:443/polo-shirts/
empty
0. PMCOM\Core\PurposeHandler
1. Whoops\Handler\CallbackHandler