Illuminate \ Database \ QueryException (2)
Illuminate\Database\QueryException thrown with message "Error while sending STMT_PREPARE packet. PID=27955 (SQL: select * from `menu_items` where `menu_items`.`parent_id` in (266, 273, 275, 286, 297, 299, 331, 338, 340, 99, 448, 486, 267, 276, 287, 332, 100, 487, 268, 277, 333, 101, 488, 269, 278, 334, 102, 279, 335, 104, 494, 270, 280, 336, 103, 271, 281, 521, 105, 282, 106, 283, 107, 284, 381, 383, 387) order by `sort` asc)" Stacktrace: #69 Illuminate\Database\QueryException in /var/www/html/vendor/illuminate/database/Connection.php:614 #68 Illuminate\Database\Eloquent\Model:__call in [internal]:0 #67 Whoops\Exception\ErrorException in /var/www/html/vendor/illuminate/database/Connection.php:288 #66 PDO:prepare in /var/www/html/vendor/illuminate/database/Connection.php:288 #65 Illuminate\Database\Connection:Illuminate\Database\{closure} in /var/www/html/vendor/illuminate/database/Connection.php:606 #64 Illuminate\Database\Connection:runQueryCallback in /var/www/html/vendor/illuminate/database/Connection.php:570 #63 Illuminate\Database\Connection:run in /var/www/html/vendor/illuminate/database/Connection.php:293 #62 Illuminate\Database\Connection:select in /var/www/html/vendor/illuminate/database/Query/Builder.php:1378 #61 Illuminate\Database\Query\Builder:runSelect in /var/www/html/vendor/illuminate/database/Query/Builder.php:1363 #60 Illuminate\Database\Query\Builder:getFresh in /var/www/html/vendor/illuminate/database/Query/Builder.php:1350 #59 Illuminate\Database\Query\Builder:get in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:383 #58 Illuminate\Database\Eloquent\Builder:getModels in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:162 #57 Illuminate\Database\Eloquent\Builder:get in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:281 #56 call_user_func_array in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:281 #55 Illuminate\Database\Eloquent\Relations\Relation:__call in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:103 #54 Illuminate\Database\Eloquent\Relations\HasMany:get in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:103 #53 Illuminate\Database\Eloquent\Relations\Relation:getEager in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:448 #52 Illuminate\Database\Eloquent\Builder:loadRelation in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:417 #51 Illuminate\Database\Eloquent\Builder:eagerLoadRelations in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:169 #50 Illuminate\Database\Eloquent\Builder:get in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:281 #49 call_user_func_array in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:281 #48 Illuminate\Database\Eloquent\Relations\Relation:__call in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:103 #47 Illuminate\Database\Eloquent\Relations\HasMany:get in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:103 #46 Illuminate\Database\Eloquent\Relations\Relation:getEager in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:448 #45 Illuminate\Database\Eloquent\Builder:loadRelation in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:417 #44 Illuminate\Database\Eloquent\Builder:eagerLoadRelations in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:169 #43 Illuminate\Database\Eloquent\Builder:get in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:281 #42 call_user_func_array in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:281 #41 Illuminate\Database\Eloquent\Relations\Relation:__call in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:103 #40 Illuminate\Database\Eloquent\Relations\HasMany:get in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:103 #39 Illuminate\Database\Eloquent\Relations\Relation:getEager in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:448 #38 Illuminate\Database\Eloquent\Builder:loadRelation in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:417 #37 Illuminate\Database\Eloquent\Builder:eagerLoadRelations in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:169 #36 Illuminate\Database\Eloquent\Builder:get in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:281 #35 call_user_func_array in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:281 #34 Illuminate\Database\Eloquent\Relations\Relation:__call in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:103 #33 Illuminate\Database\Eloquent\Relations\HasMany:get in /var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php:103 #32 Illuminate\Database\Eloquent\Relations\Relation:getEager in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:448 #31 Illuminate\Database\Eloquent\Builder:loadRelation in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:417 #30 Illuminate\Database\Eloquent\Builder:eagerLoadRelations in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:169 #29 Illuminate\Database\Eloquent\Builder:get in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:136 #28 Illuminate\Database\Eloquent\Builder:first in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:84 #27 Illuminate\Database\Eloquent\Builder:find in /var/www/html/vendor/illuminate/database/Eloquent/Builder.php:114 #26 Illuminate\Database\Eloquent\Builder:findOrFail in /var/www/html/vendor/illuminate/database/Eloquent/Model.php:3330 #25 call_user_func_array in /var/www/html/vendor/illuminate/database/Eloquent/Model.php:3330 #24 Illuminate\Database\Eloquent\Model:__call in [internal]:0 #23 PMCOM\Models\Menu:findOrFail in /var/www/html/vendor/illuminate/database/Eloquent/Model.php:3344 #22 call_user_func_array in /var/www/html/vendor/illuminate/database/Eloquent/Model.php:3344 #21 Illuminate\Database\Eloquent\Model:__callStatic in /var/www/html/src/PMCOM/Core/Display.php:815 #20 PMCOM\Models\Menu:findOrFail in /var/www/html/src/PMCOM/Core/Display.php:815 #19 PMCOM\Core\Display:_get_menu_as_array in /var/www/html/Facades/Display.php:25 #18 call_user_func_array in /var/www/html/Facades/Display.php:25 #17 Display:__callStatic in /var/www/html/themes/blank/views/partials/menu.php:8 #16 Display:get_menu_as_array in /var/www/html/themes/blank/views/partials/menu.php:8 #15 include in /var/www/html/src/PMCOM/Core/View.php:65 #14 PMCOM\Core\View:_load_partial in /var/www/html/Facades/View.php:25 #13 call_user_func_array in /var/www/html/Facades/View.php:25 #12 View:__callStatic in /var/www/html/themes/blank/includes/header_content.php:60 #11 View:load_partial in /var/www/html/themes/blank/includes/header_content.php:60 #10 include in /var/www/html/themes/blank/header.php:32 #9 include in /var/www/html/src/PMCOM/Core/View.php:34 #8 PMCOM\Core\View:_load in /var/www/html/src/PMCOM/Core/View.php:163 #7 call_user_func_array in /var/www/html/src/PMCOM/Core/View.php:163 #6 PMCOM\Core\View:__callStatic in /var/www/html/src/PMCOM/Front/Product.php:634 #5 PMCOM\Core\View:load in /var/www/html/src/PMCOM/Front/Product.php:634 #4 PMCOM\Front\Product:view in /var/www/html/src/PMCOM/Core/Router.php:119 #3 PMCOM\Core\Router:_get_route in /var/www/html/src/PMCOM/Core/Router.php:163 #2 call_user_func_array in /var/www/html/src/PMCOM/Core/Router.php:163 #1 PMCOM\Core\Router:__callStatic in /var/www/html/index.php:101 #0 PMCOM\Core\Router:get_route in /var/www/html/index.php:101

Error while sending STMT_PREPARE packet. PID=27955 (SQL: select * from `menu_items` where `menu_items`.`parent_id` in (266, 273, 275, 286, 297, 299, 331, 338, 340, 99, 448, 486, 267, 276, 287, 332, 100, 487, 268, 277, 333, 101, 488, 269, 278, 334, 102, 279, 335, 104, 494, 270, 280, 336, 103, 271, 281, 521, 105, 282, 106, 283, 107, 284, 381, 383, 387) order by `sort` asc)

Stack frames (70):
69 Illuminate\Database\QueryException
…/­vendor/­illuminate/­database/­Connection.php614
68 Illuminate\Database\Eloquent\Model __call
[internal]0
67 Whoops\Exception\ErrorException
…/­vendor/­illuminate/­database/­Connection.php288
66 PDO prepare
…/­vendor/­illuminate/­database/­Connection.php288
65 Illuminate\Database\Connection Illuminate\Database\{closure}
…/­vendor/­illuminate/­database/­Connection.php606
64 Illuminate\Database\Connection runQueryCallback
…/­vendor/­illuminate/­database/­Connection.php570
63 Illuminate\Database\Connection run
…/­vendor/­illuminate/­database/­Connection.php293
62 Illuminate\Database\Connection select
…/­vendor/­illuminate/­database/­Query/­Builder.php1378
61 Illuminate\Database\Query\Builder runSelect
…/­vendor/­illuminate/­database/­Query/­Builder.php1363
60 Illuminate\Database\Query\Builder getFresh
…/­vendor/­illuminate/­database/­Query/­Builder.php1350
59 Illuminate\Database\Query\Builder get
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php383
58 Illuminate\Database\Eloquent\Builder getModels
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php162
57 Illuminate\Database\Eloquent\Builder get
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php281
56 call_user_func_array
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php281
55 Illuminate\Database\Eloquent\Relations\Relation __call
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php103
54 Illuminate\Database\Eloquent\Relations\HasMany get
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php103
53 Illuminate\Database\Eloquent\Relations\Relation getEager
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php448
52 Illuminate\Database\Eloquent\Builder loadRelation
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php417
51 Illuminate\Database\Eloquent\Builder eagerLoadRelations
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php169
50 Illuminate\Database\Eloquent\Builder get
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php281
49 call_user_func_array
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php281
48 Illuminate\Database\Eloquent\Relations\Relation __call
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php103
47 Illuminate\Database\Eloquent\Relations\HasMany get
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php103
46 Illuminate\Database\Eloquent\Relations\Relation getEager
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php448
45 Illuminate\Database\Eloquent\Builder loadRelation
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php417
44 Illuminate\Database\Eloquent\Builder eagerLoadRelations
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php169
43 Illuminate\Database\Eloquent\Builder get
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php281
42 call_user_func_array
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php281
41 Illuminate\Database\Eloquent\Relations\Relation __call
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php103
40 Illuminate\Database\Eloquent\Relations\HasMany get
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php103
39 Illuminate\Database\Eloquent\Relations\Relation getEager
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php448
38 Illuminate\Database\Eloquent\Builder loadRelation
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php417
37 Illuminate\Database\Eloquent\Builder eagerLoadRelations
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php169
36 Illuminate\Database\Eloquent\Builder get
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php281
35 call_user_func_array
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php281
34 Illuminate\Database\Eloquent\Relations\Relation __call
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php103
33 Illuminate\Database\Eloquent\Relations\HasMany get
…/­vendor/­illuminate/­database/­Eloquent/­Relations/­Relation.php103
32 Illuminate\Database\Eloquent\Relations\Relation getEager
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php448
31 Illuminate\Database\Eloquent\Builder loadRelation
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php417
30 Illuminate\Database\Eloquent\Builder eagerLoadRelations
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php169
29 Illuminate\Database\Eloquent\Builder get
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php136
28 Illuminate\Database\Eloquent\Builder first
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php84
27 Illuminate\Database\Eloquent\Builder find
…/­vendor/­illuminate/­database/­Eloquent/­Builder.php114
26 Illuminate\Database\Eloquent\Builder findOrFail
…/­vendor/­illuminate/­database/­Eloquent/­Model.php3330
25 call_user_func_array
…/­vendor/­illuminate/­database/­Eloquent/­Model.php3330
24 Illuminate\Database\Eloquent\Model __call
[internal]0
23 PMCOM\Models\Menu findOrFail
…/­vendor/­illuminate/­database/­Eloquent/­Model.php3344
22 call_user_func_array
…/­vendor/­illuminate/­database/­Eloquent/­Model.php3344
21 Illuminate\Database\Eloquent\Model __callStatic
…/­src/­PMCOM/­Core/­Display.php815
20 PMCOM\Models\Menu findOrFail
…/­src/­PMCOM/­Core/­Display.php815
19 PMCOM\Core\Display _get_menu_as_array
…/­Facades/­Display.php25
18 call_user_func_array
…/­Facades/­Display.php25
17 Display __callStatic
…/­themes/­blank/­views/­partials/­menu.php8
16 Display get_menu_as_array
…/­themes/­blank/­views/­partials/­menu.php8
15 include
…/­src/­PMCOM/­Core/­View.php65
14 PMCOM\Core\View _load_partial
…/­Facades/­View.php25
13 call_user_func_array
…/­Facades/­View.php25
12 View __callStatic
…/­themes/­blank/­includes/­header_content.php60
11 View load_partial
…/­themes/­blank/­includes/­header_content.php60
10 include
…/­themes/­blank/­header.php32
9 include
…/­src/­PMCOM/­Core/­View.php34
8 PMCOM\Core\View _load
…/­src/­PMCOM/­Core/­View.php163
7 call_user_func_array
…/­src/­PMCOM/­Core/­View.php163
6 PMCOM\Core\View __callStatic
…/­src/­PMCOM/­Front/­Product.php634
5 PMCOM\Core\View load
…/­src/­PMCOM/­Front/­Product.php634
4 PMCOM\Front\Product view
…/­src/­PMCOM/­Core/­Router.php119
3 PMCOM\Core\Router _get_route
…/­src/­PMCOM/­Core/­Router.php163
2 call_user_func_array
…/­src/­PMCOM/­Core/­Router.php163
1 PMCOM\Core\Router __callStatic
…/­index.php101
0 PMCOM\Core\Router get_route
…/­index.php101
/var/www/html/vendor/illuminate/database/Connection.php
		{
			$result = $callback($this, $query, $bindings);
		}
 
		// If an exception occurs when attempting to run a query, we'll format the error
		// message to include the bindings with SQL, which will make this exception a
		// lot more helpful to the developer instead of just the database's errors.
		catch (Exception $e)
		{
			throw new QueryException(
				$query, $this->prepareBindings($bindings), $e
			);
		}
 
		return $result;
	}
 
	/**
	 * Handle a query exception that occurred during query execution.
	 *
[internal]
cpt-obvious This frame is within function '__call'
/var/www/html/vendor/illuminate/database/Connection.php
	public function select($query, $bindings = array(), $useReadPdo = true)
	{
		return $this->run($query, $bindings, function($me, $query, $bindings) use ($useReadPdo)
		{
			if ($me->pretending()) return array();
 
			// For select statements, we'll simply execute the query and return an array
			// of the database result set. Each element in the array will be a single
			// row from the database table, and will either be an array or objects.
			$statement = $this->getPdoForSelect($useReadPdo)->prepare($query);
 
			$statement->execute($me->prepareBindings($bindings));
 
			return $statement->fetchAll($me->getFetchMode());
		});
	}
 
	/**
	 * Get the PDO connection to use for a select query.
	 *
Exception message: Error while sending STMT_PREPARE packet. PID=27955
/var/www/html/vendor/illuminate/database/Connection.php
	public function select($query, $bindings = array(), $useReadPdo = true)
	{
		return $this->run($query, $bindings, function($me, $query, $bindings) use ($useReadPdo)
		{
			if ($me->pretending()) return array();
 
			// For select statements, we'll simply execute the query and return an array
			// of the database result set. Each element in the array will be a single
			// row from the database table, and will either be an array or objects.
			$statement = $this->getPdoForSelect($useReadPdo)->prepare($query);
 
			$statement->execute($me->prepareBindings($bindings));
 
			return $statement->fetchAll($me->getFetchMode());
		});
	}
 
	/**
	 * Get the PDO connection to use for a select query.
	 *
cpt-obvious This frame is within function 'prepare'
/var/www/html/vendor/illuminate/database/Connection.php
	 * @throws \Illuminate\Database\QueryException
	 */
	protected function runQueryCallback($query, $bindings, Closure $callback)
	{
		// To execute the statement, we'll simply call the callback, which will actually
		// run the SQL against the PDO connection. Then we can calculate the time it
		// took to execute and log the query SQL, bindings and time in our memory.
		try
		{
			$result = $callback($this, $query, $bindings);
		}
 
		// If an exception occurs when attempting to run a query, we'll format the error
		// message to include the bindings with SQL, which will make this exception a
		// lot more helpful to the developer instead of just the database's errors.
		catch (Exception $e)
		{
			throw new QueryException(
				$query, $this->prepareBindings($bindings), $e
			);
cpt-obvious This frame is within function 'Illuminate\Database\{closure}'
/var/www/html/vendor/illuminate/database/Connection.php
		$this->reconnectIfMissingConnection();
 
		$start = microtime(true);
 
		// Here we will run this query. If an exception occurs we'll determine if it was
		// caused by a connection that has been lost. If that is the cause, we'll try
		// to re-establish connection and re-run the query with a fresh connection.
		try
		{
			$result = $this->runQueryCallback($query, $bindings, $callback);
		}
		catch (QueryException $e)
		{
			$result = $this->tryAgainIfCausedByLostConnection(
				$e, $query, $bindings, $callback
			);
		}
 
		// Once we have run the query we will calculate the time that it took to run and
		// then log the query, bindings, and execution time so we will report them on
cpt-obvious This frame is within function 'runQueryCallback'
/var/www/html/vendor/illuminate/database/Connection.php
 
			// For select statements, we'll simply execute the query and return an array
			// of the database result set. Each element in the array will be a single
			// row from the database table, and will either be an array or objects.
			$statement = $this->getPdoForSelect($useReadPdo)->prepare($query);
 
			$statement->execute($me->prepareBindings($bindings));
 
			return $statement->fetchAll($me->getFetchMode());
		});
	}
 
	/**
	 * Get the PDO connection to use for a select query.
	 *
	 * @param  bool  $useReadPdo
	 * @return \PDO
	 */
	protected function getPdoForSelect($useReadPdo = true)
	{
cpt-obvious This frame is within function 'run'
/var/www/html/vendor/illuminate/database/Query/Builder.php
	 * @return array
	 */
	protected function runSelect()
	{
		if ($this->useWritePdo)
		{
			return $this->connection->select($this->toSql(), $this->getBindings(), false);
		}
 
		return $this->connection->select($this->toSql(), $this->getBindings());
	}
 
	/**
	 * Paginate the given query into a simple paginator.
	 *
	 * @param  int  $perPage
	 * @param  array  $columns
	 * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
	 */
	public function paginate($perPage = 15, $columns = ['*'])
cpt-obvious This frame is within function 'select'
/var/www/html/vendor/illuminate/database/Query/Builder.php
	 * Execute the query as a fresh "select" statement.
	 *
	 * @param  array  $columns
	 * @return array|static[]
	 */
	public function getFresh($columns = array('*'))
	{
		if (is_null($this->columns)) $this->columns = $columns;
 
		return $this->processor->processSelect($this, $this->runSelect());
	}
 
	/**
	 * Run the query as a "select" statement against the connection.
	 *
	 * @return array
	 */
	protected function runSelect()
	{
		if ($this->useWritePdo)
cpt-obvious This frame is within function 'runSelect'
/var/www/html/vendor/illuminate/database/Query/Builder.php
 
	/**
	 * Execute the query as a "select" statement.
	 *
	 * @param  array  $columns
	 * @return array|static[]
	 */
	public function get($columns = array('*'))
	{
		return $this->getFresh($columns);
	}
 
	/**
	 * Execute the query as a fresh "select" statement.
	 *
	 * @param  array  $columns
	 * @return array|static[]
	 */
	public function getFresh($columns = array('*'))
	{
cpt-obvious This frame is within function 'getFresh'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	 *
	 * @param  array  $columns
	 * @return \Illuminate\Database\Eloquent\Model[]
	 */
	public function getModels($columns = array('*'))
	{
		// First, we will simply get the raw results from the query builders which we
		// can use to populate an array with Eloquent models. We will pass columns
		// that should be selected as well, which are typically just everything.
		$results = $this->query->get($columns);
 
		$connection = $this->model->getConnectionName();
 
		$models = array();
 
		// Once we have the results, we can spin through them and instantiate a fresh
		// model instance for each records we retrieved from the database. We will
		// also set the proper connection name for the model after we create it.
		foreach ($results as $result)
		{
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
 
	/**
	 * Execute the query as a "select" statement.
	 *
	 * @param  array  $columns
	 * @return \Illuminate\Database\Eloquent\Collection|static[]
	 */
	public function get($columns = array('*'))
	{
		$models = $this->getModels($columns);
 
		// If we actually found models we will also eager load any relationships that
		// have been specified as needing to be eager loaded, which will solve the
		// n+1 query issue for the developers to avoid running a lot of queries.
		if (count($models) > 0)
		{
			$models = $this->eagerLoadRelations($models);
		}
 
		return $this->model->newCollection($models);
cpt-obvious This frame is within function 'getModels'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	/**
	 * Handle dynamic method calls to the relationship.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$result = call_user_func_array(array($this->query, $method), $parameters);
 
		if ($result === $this->query) return $this;
 
		return $result;
	}
 
}
 
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	/**
	 * Handle dynamic method calls to the relationship.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$result = call_user_func_array(array($this->query, $method), $parameters);
 
		if ($result === $this->query) return $this;
 
		return $result;
	}
 
}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	abstract public function getResults();
 
	/**
	 * Get the relationship for eager loading.
	 *
	 * @return \Illuminate\Database\Eloquent\Collection
	 */
	public function getEager()
	{
		return $this->get();
	}
 
	/**
	 * Touch all of the related models for the relationship.
	 *
	 * @return void
	 */
	public function touch()
	{
		$column = $this->getRelated()->getUpdatedAtColumn();
cpt-obvious This frame is within function '__call'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	abstract public function getResults();
 
	/**
	 * Get the relationship for eager loading.
	 *
	 * @return \Illuminate\Database\Eloquent\Collection
	 */
	public function getEager()
	{
		return $this->get();
	}
 
	/**
	 * Touch all of the related models for the relationship.
	 *
	 * @return void
	 */
	public function touch()
	{
		$column = $this->getRelated()->getUpdatedAtColumn();
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
		$relation->addEagerConstraints($models);
 
		call_user_func($constraints, $relation);
 
		$models = $relation->initRelation($models, $name);
 
		// Once we have the results, we just match those back up to their parent models
		// using the relationship instance. Then we just return the finished arrays
		// of models which have been eagerly hydrated and are readied for return.
		$results = $relation->getEager();
 
		return $relation->match($models, $results, $name);
	}
 
	/**
	 * Get the relation instance for the given relation name.
	 *
	 * @param  string  $relation
	 * @return \Illuminate\Database\Eloquent\Relations\Relation
	 */
cpt-obvious This frame is within function 'getEager'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function eagerLoadRelations(array $models)
	{
		foreach ($this->eagerLoad as $name => $constraints)
		{
			// For nested eager loads we'll skip loading them here and they will be set as an
			// eager load on the query to retrieve the relation so that they will be eager
			// loaded on that query, because that is where they get hydrated as models.
			if (strpos($name, '.') === false)
			{
				$models = $this->loadRelation($models, $name, $constraints);
			}
		}
 
		return $models;
	}
 
	/**
	 * Eagerly load the relationship on a set of models.
	 *
	 * @param  array     $models
cpt-obvious This frame is within function 'loadRelation'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function get($columns = array('*'))
	{
		$models = $this->getModels($columns);
 
		// If we actually found models we will also eager load any relationships that
		// have been specified as needing to be eager loaded, which will solve the
		// n+1 query issue for the developers to avoid running a lot of queries.
		if (count($models) > 0)
		{
			$models = $this->eagerLoadRelations($models);
		}
 
		return $this->model->newCollection($models);
	}
 
	/**
	 * Pluck a single column from the database.
	 *
	 * @param  string  $column
	 * @return mixed
cpt-obvious This frame is within function 'eagerLoadRelations'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	/**
	 * Handle dynamic method calls to the relationship.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$result = call_user_func_array(array($this->query, $method), $parameters);
 
		if ($result === $this->query) return $this;
 
		return $result;
	}
 
}
 
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	/**
	 * Handle dynamic method calls to the relationship.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$result = call_user_func_array(array($this->query, $method), $parameters);
 
		if ($result === $this->query) return $this;
 
		return $result;
	}
 
}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	abstract public function getResults();
 
	/**
	 * Get the relationship for eager loading.
	 *
	 * @return \Illuminate\Database\Eloquent\Collection
	 */
	public function getEager()
	{
		return $this->get();
	}
 
	/**
	 * Touch all of the related models for the relationship.
	 *
	 * @return void
	 */
	public function touch()
	{
		$column = $this->getRelated()->getUpdatedAtColumn();
cpt-obvious This frame is within function '__call'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	abstract public function getResults();
 
	/**
	 * Get the relationship for eager loading.
	 *
	 * @return \Illuminate\Database\Eloquent\Collection
	 */
	public function getEager()
	{
		return $this->get();
	}
 
	/**
	 * Touch all of the related models for the relationship.
	 *
	 * @return void
	 */
	public function touch()
	{
		$column = $this->getRelated()->getUpdatedAtColumn();
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
		$relation->addEagerConstraints($models);
 
		call_user_func($constraints, $relation);
 
		$models = $relation->initRelation($models, $name);
 
		// Once we have the results, we just match those back up to their parent models
		// using the relationship instance. Then we just return the finished arrays
		// of models which have been eagerly hydrated and are readied for return.
		$results = $relation->getEager();
 
		return $relation->match($models, $results, $name);
	}
 
	/**
	 * Get the relation instance for the given relation name.
	 *
	 * @param  string  $relation
	 * @return \Illuminate\Database\Eloquent\Relations\Relation
	 */
cpt-obvious This frame is within function 'getEager'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function eagerLoadRelations(array $models)
	{
		foreach ($this->eagerLoad as $name => $constraints)
		{
			// For nested eager loads we'll skip loading them here and they will be set as an
			// eager load on the query to retrieve the relation so that they will be eager
			// loaded on that query, because that is where they get hydrated as models.
			if (strpos($name, '.') === false)
			{
				$models = $this->loadRelation($models, $name, $constraints);
			}
		}
 
		return $models;
	}
 
	/**
	 * Eagerly load the relationship on a set of models.
	 *
	 * @param  array     $models
cpt-obvious This frame is within function 'loadRelation'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function get($columns = array('*'))
	{
		$models = $this->getModels($columns);
 
		// If we actually found models we will also eager load any relationships that
		// have been specified as needing to be eager loaded, which will solve the
		// n+1 query issue for the developers to avoid running a lot of queries.
		if (count($models) > 0)
		{
			$models = $this->eagerLoadRelations($models);
		}
 
		return $this->model->newCollection($models);
	}
 
	/**
	 * Pluck a single column from the database.
	 *
	 * @param  string  $column
	 * @return mixed
cpt-obvious This frame is within function 'eagerLoadRelations'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	/**
	 * Handle dynamic method calls to the relationship.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$result = call_user_func_array(array($this->query, $method), $parameters);
 
		if ($result === $this->query) return $this;
 
		return $result;
	}
 
}
 
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	/**
	 * Handle dynamic method calls to the relationship.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$result = call_user_func_array(array($this->query, $method), $parameters);
 
		if ($result === $this->query) return $this;
 
		return $result;
	}
 
}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	abstract public function getResults();
 
	/**
	 * Get the relationship for eager loading.
	 *
	 * @return \Illuminate\Database\Eloquent\Collection
	 */
	public function getEager()
	{
		return $this->get();
	}
 
	/**
	 * Touch all of the related models for the relationship.
	 *
	 * @return void
	 */
	public function touch()
	{
		$column = $this->getRelated()->getUpdatedAtColumn();
cpt-obvious This frame is within function '__call'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	abstract public function getResults();
 
	/**
	 * Get the relationship for eager loading.
	 *
	 * @return \Illuminate\Database\Eloquent\Collection
	 */
	public function getEager()
	{
		return $this->get();
	}
 
	/**
	 * Touch all of the related models for the relationship.
	 *
	 * @return void
	 */
	public function touch()
	{
		$column = $this->getRelated()->getUpdatedAtColumn();
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
		$relation->addEagerConstraints($models);
 
		call_user_func($constraints, $relation);
 
		$models = $relation->initRelation($models, $name);
 
		// Once we have the results, we just match those back up to their parent models
		// using the relationship instance. Then we just return the finished arrays
		// of models which have been eagerly hydrated and are readied for return.
		$results = $relation->getEager();
 
		return $relation->match($models, $results, $name);
	}
 
	/**
	 * Get the relation instance for the given relation name.
	 *
	 * @param  string  $relation
	 * @return \Illuminate\Database\Eloquent\Relations\Relation
	 */
cpt-obvious This frame is within function 'getEager'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function eagerLoadRelations(array $models)
	{
		foreach ($this->eagerLoad as $name => $constraints)
		{
			// For nested eager loads we'll skip loading them here and they will be set as an
			// eager load on the query to retrieve the relation so that they will be eager
			// loaded on that query, because that is where they get hydrated as models.
			if (strpos($name, '.') === false)
			{
				$models = $this->loadRelation($models, $name, $constraints);
			}
		}
 
		return $models;
	}
 
	/**
	 * Eagerly load the relationship on a set of models.
	 *
	 * @param  array     $models
cpt-obvious This frame is within function 'loadRelation'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function get($columns = array('*'))
	{
		$models = $this->getModels($columns);
 
		// If we actually found models we will also eager load any relationships that
		// have been specified as needing to be eager loaded, which will solve the
		// n+1 query issue for the developers to avoid running a lot of queries.
		if (count($models) > 0)
		{
			$models = $this->eagerLoadRelations($models);
		}
 
		return $this->model->newCollection($models);
	}
 
	/**
	 * Pluck a single column from the database.
	 *
	 * @param  string  $column
	 * @return mixed
cpt-obvious This frame is within function 'eagerLoadRelations'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	/**
	 * Handle dynamic method calls to the relationship.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$result = call_user_func_array(array($this->query, $method), $parameters);
 
		if ($result === $this->query) return $this;
 
		return $result;
	}
 
}
 
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	/**
	 * Handle dynamic method calls to the relationship.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$result = call_user_func_array(array($this->query, $method), $parameters);
 
		if ($result === $this->query) return $this;
 
		return $result;
	}
 
}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	abstract public function getResults();
 
	/**
	 * Get the relationship for eager loading.
	 *
	 * @return \Illuminate\Database\Eloquent\Collection
	 */
	public function getEager()
	{
		return $this->get();
	}
 
	/**
	 * Touch all of the related models for the relationship.
	 *
	 * @return void
	 */
	public function touch()
	{
		$column = $this->getRelated()->getUpdatedAtColumn();
cpt-obvious This frame is within function '__call'
/var/www/html/vendor/illuminate/database/Eloquent/Relations/Relation.php
	abstract public function getResults();
 
	/**
	 * Get the relationship for eager loading.
	 *
	 * @return \Illuminate\Database\Eloquent\Collection
	 */
	public function getEager()
	{
		return $this->get();
	}
 
	/**
	 * Touch all of the related models for the relationship.
	 *
	 * @return void
	 */
	public function touch()
	{
		$column = $this->getRelated()->getUpdatedAtColumn();
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
		$relation->addEagerConstraints($models);
 
		call_user_func($constraints, $relation);
 
		$models = $relation->initRelation($models, $name);
 
		// Once we have the results, we just match those back up to their parent models
		// using the relationship instance. Then we just return the finished arrays
		// of models which have been eagerly hydrated and are readied for return.
		$results = $relation->getEager();
 
		return $relation->match($models, $results, $name);
	}
 
	/**
	 * Get the relation instance for the given relation name.
	 *
	 * @param  string  $relation
	 * @return \Illuminate\Database\Eloquent\Relations\Relation
	 */
cpt-obvious This frame is within function 'getEager'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function eagerLoadRelations(array $models)
	{
		foreach ($this->eagerLoad as $name => $constraints)
		{
			// For nested eager loads we'll skip loading them here and they will be set as an
			// eager load on the query to retrieve the relation so that they will be eager
			// loaded on that query, because that is where they get hydrated as models.
			if (strpos($name, '.') === false)
			{
				$models = $this->loadRelation($models, $name, $constraints);
			}
		}
 
		return $models;
	}
 
	/**
	 * Eagerly load the relationship on a set of models.
	 *
	 * @param  array     $models
cpt-obvious This frame is within function 'loadRelation'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function get($columns = array('*'))
	{
		$models = $this->getModels($columns);
 
		// If we actually found models we will also eager load any relationships that
		// have been specified as needing to be eager loaded, which will solve the
		// n+1 query issue for the developers to avoid running a lot of queries.
		if (count($models) > 0)
		{
			$models = $this->eagerLoadRelations($models);
		}
 
		return $this->model->newCollection($models);
	}
 
	/**
	 * Pluck a single column from the database.
	 *
	 * @param  string  $column
	 * @return mixed
cpt-obvious This frame is within function 'eagerLoadRelations'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
 
	/**
	 * Execute the query and get the first result.
	 *
	 * @param  array  $columns
	 * @return \Illuminate\Database\Eloquent\Model|static|null
	 */
	public function first($columns = array('*'))
	{
		return $this->take(1)->get($columns)->first();
	}
 
	/**
	 * Execute the query and get the first result or throw an exception.
	 *
	 * @param  array  $columns
	 * @return \Illuminate\Database\Eloquent\Model|static
	 *
	 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
	 */
cpt-obvious This frame is within function 'get'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	public function find($id, $columns = array('*'))
	{
		if (is_array($id))
		{
			return $this->findMany($id, $columns);
		}
 
		$this->query->where($this->model->getQualifiedKeyName(), '=', $id);
 
		return $this->first($columns);
	}
 
	/**
	 * Find a model by its primary key.
	 *
	 * @param  array  $id
	 * @param  array  $columns
	 * @return \Illuminate\Database\Eloquent\Model|Collection|static
	 */
	public function findMany($id, $columns = array('*'))
cpt-obvious This frame is within function 'first'
/var/www/html/vendor/illuminate/database/Eloquent/Builder.php
	 *
	 * @param  mixed  $id
	 * @param  array  $columns
	 * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
	 *
	 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
	 */
	public function findOrFail($id, $columns = array('*'))
	{
		$result = $this->find($id, $columns);
 
		if (is_array($id))
		{
			if (count($result) == count(array_unique($id))) return $result;
		}
		elseif ( ! is_null($result))
		{
			return $result;
		}
 
cpt-obvious This frame is within function 'find'
/var/www/html/vendor/illuminate/database/Eloquent/Model.php
	public function __call($method, $parameters)
	{
		if (in_array($method, array('increment', 'decrement')))
		{
			return call_user_func_array(array($this, $method), $parameters);
		}
 
		$query = $this->newQuery();
 
		return call_user_func_array(array($query, $method), $parameters);
	}
 
	/**
	 * Handle dynamic static method calls into the method.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public static function __callStatic($method, $parameters)
cpt-obvious This frame is within function 'findOrFail'
/var/www/html/vendor/illuminate/database/Eloquent/Model.php
	public function __call($method, $parameters)
	{
		if (in_array($method, array('increment', 'decrement')))
		{
			return call_user_func_array(array($this, $method), $parameters);
		}
 
		$query = $this->newQuery();
 
		return call_user_func_array(array($query, $method), $parameters);
	}
 
	/**
	 * Handle dynamic static method calls into the method.
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public static function __callStatic($method, $parameters)
cpt-obvious This frame is within function 'call_user_func_array'
[internal]
cpt-obvious This frame is within function '__call'
/var/www/html/vendor/illuminate/database/Eloquent/Model.php
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public static function __callStatic($method, $parameters)
	{
		$instance = new static;
 
		return call_user_func_array(array($instance, $method), $parameters);
	}
 
	/**
	 * Convert the model to its string representation.
	 *
	 * @return string
	 */
	public function __toString()
	{
		return $this->toJson();
cpt-obvious This frame is within function 'findOrFail'
/var/www/html/vendor/illuminate/database/Eloquent/Model.php
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public static function __callStatic($method, $parameters)
	{
		$instance = new static;
 
		return call_user_func_array(array($instance, $method), $parameters);
	}
 
	/**
	 * Convert the model to its string representation.
	 *
	 * @return string
	 */
	public function __toString()
	{
		return $this->toJson();
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/html/src/PMCOM/Core/Display.php
		echo self::get_menu_item_list( $args );
	}
 
	/**
	 * [_get_menu_as_array description]
	 * @param  [type] $args [description]
	 * @return [type]       [description]
	 */
	public function _get_menu_as_array( $menuId ) {
		$menu = \PMCOM\Models\Menu::findOrFail($menuId);
		return $menu->toArray();
	}
 
	/**
	 * [_get_menu_item_list description]
	 * @param  array  $args [description]
	 * @return [type]       [description]
	 */
 
	public function _get_menu_item_list( $args = array() )
cpt-obvious This frame is within function '__callStatic'
/var/www/html/src/PMCOM/Core/Display.php
		echo self::get_menu_item_list( $args );
	}
 
	/**
	 * [_get_menu_as_array description]
	 * @param  [type] $args [description]
	 * @return [type]       [description]
	 */
	public function _get_menu_as_array( $menuId ) {
		$menu = \PMCOM\Models\Menu::findOrFail($menuId);
		return $menu->toArray();
	}
 
	/**
	 * [_get_menu_item_list description]
	 * @param  array  $args [description]
	 * @return [type]       [description]
	 */
 
	public function _get_menu_item_list( $args = array() )
cpt-obvious This frame is within function 'findOrFail'
/var/www/html/Facades/Display.php
	 * @return [type]             [description]
	 */
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new PMCOM\Core\Display();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
}
 
cpt-obvious This frame is within function '_get_menu_as_array'
/var/www/html/Facades/Display.php
	 * @return [type]             [description]
	 */
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new PMCOM\Core\Display();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/html/themes/blank/views/partials/menu.php
<div class="wrapper menu">
	<div class="container cf">
		<ul class="cf" id="main-navigation">
			<li>
				<a href="/craft-model-and-hobby/"><img src="<?php echo display::theme_directory(); ?>assets/images/red-ball.png" /> Craft, Model &amp; Hobby</a>
				<div>
					<div class="cf">
						<?php $menuStructure = Display::get_menu_as_array(4); ?>
						<?php $tmpCat = new \PMCOM\Front\Category; ?>
						<ul class="hoverable">
							<?php foreach( $menuStructure['items'] as $topCat ) : ?>
								<?php $_category = $tmpCat->get($topCat['item_id']); ?>
								<?php if( $_category ) : ?>
									<li><a href="<?php echo $_category->url; ?>"><?php echo $topCat['name']; ?></a></li>
								<?php endif; ?>
							<?php endforeach; ?>
						</ul>
						<div class="sub-categories">
							<?php foreach( $menuStructure['items'] as $topCat ) : ?>
								<div class="cf">
cpt-obvious This frame is within function '__callStatic'
/var/www/html/themes/blank/views/partials/menu.php
<div class="wrapper menu">
	<div class="container cf">
		<ul class="cf" id="main-navigation">
			<li>
				<a href="/craft-model-and-hobby/"><img src="<?php echo display::theme_directory(); ?>assets/images/red-ball.png" /> Craft, Model &amp; Hobby</a>
				<div>
					<div class="cf">
						<?php $menuStructure = Display::get_menu_as_array(4); ?>
						<?php $tmpCat = new \PMCOM\Front\Category; ?>
						<ul class="hoverable">
							<?php foreach( $menuStructure['items'] as $topCat ) : ?>
								<?php $_category = $tmpCat->get($topCat['item_id']); ?>
								<?php if( $_category ) : ?>
									<li><a href="<?php echo $_category->url; ?>"><?php echo $topCat['name']; ?></a></li>
								<?php endif; ?>
							<?php endforeach; ?>
						</ul>
						<div class="sub-categories">
							<?php foreach( $menuStructure['items'] as $topCat ) : ?>
								<div class="cf">
cpt-obvious This frame is within function 'get_menu_as_array'
/var/www/html/src/PMCOM/Core/View.php
 
	public function _load_partial($view, $data = array() )
	{
		if( is_array( $data ) )
		{
			extract( $data );
		}
		if(file_exists(Display::theme_path().'views/'.$view.'.php'))
		{
			include Display::theme_path().'views/'.$view.'.php';
		}
		elseif(file_exists(BASE_PATH.'views/'.$view.'.php'))
		{
			include BASE_PATH.'views/'.$view.'.php';
		}
		else
		{
			echo 'partial file not found';
		}
	}
cpt-obvious This frame is within function 'include'
/var/www/html/Facades/View.php
	 * @return [type]             [description]
	 */
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new PMCOM\Core\View();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
}
cpt-obvious This frame is within function '_load_partial'
/var/www/html/Facades/View.php
	 * @return [type]             [description]
	 */
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new PMCOM\Core\View();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
}
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/html/themes/blank/includes/header_content.php
					<div class="basket cf">
						
						<a href="/cart/"><i class="fa fa-shopping-cart"></i> My Basket <span><?php echo $cart->get_number(); ?></span></a>
						<a href="/checkout/">Checkout</a>
						
					</div>
				</div>
			</div>
		</div>
		<?php View::load_partial('partials/menu'); ?>
	</header>
 
	<?php if( Session::has( 'success_message' ) || Session::has( 'error_message' ) ) : ?>
 
		<section class="wrapper">
			<div class="container">
				<?php if( Session::has( 'success_message' ) ) : ?>
					<ul class="message success">
						<li><?php echo Session::get( 'success_message' ); ?></li>
					</ul>
cpt-obvious This frame is within function '__callStatic'
/var/www/html/themes/blank/includes/header_content.php
					<div class="basket cf">
						
						<a href="/cart/"><i class="fa fa-shopping-cart"></i> My Basket <span><?php echo $cart->get_number(); ?></span></a>
						<a href="/checkout/">Checkout</a>
						
					</div>
				</div>
			</div>
		</div>
		<?php View::load_partial('partials/menu'); ?>
	</header>
 
	<?php if( Session::has( 'success_message' ) || Session::has( 'error_message' ) ) : ?>
 
		<section class="wrapper">
			<div class="container">
				<?php if( Session::has( 'success_message' ) ) : ?>
					<ul class="message success">
						<li><?php echo Session::get( 'success_message' ); ?></li>
					</ul>
cpt-obvious This frame is within function 'load_partial'
/var/www/html/themes/blank/header.php
	<div class="wrapper mobile-menu">
		<div class="container">
			<ul class="shorts cf">
 
			</ul>
			<p><span>Main Navigation</span> <i id="mob-menu" class="fa fa-bars"></i></p>
		</div>
	</div>
	<div class="shifter-page">
		<?php include __DIR__ . '/includes/header_content.php'; ?>
cpt-obvious This frame is within function 'include'
/var/www/html/src/PMCOM/Core/View.php
 
	public function _load($view,$data='')
	{
		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';
		}
		elseif(file_exists(BASE_PATH.'views/'.$view.'.php'))
		{
			if($data) extract($data);
			include Display::theme_path().'header.php';
			include BASE_PATH.'views/'.$view.'.php';
			include Display::theme_path().'footer.php';
		}
cpt-obvious This frame is within function 'include'
/var/www/html/src/PMCOM/Core/View.php
	 * @return [type]             [description]
	 */
 
	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 '_load'
/var/www/html/src/PMCOM/Core/View.php
	 * @return [type]             [description]
	 */
 
	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/html/src/PMCOM/Front/Product.php
                }
                die('<p class="stock in misc"><i class="fa fa-check-circle"></i> In Stock</p>');
            }
 
		} else if( ! $product || ( ! $product->has_stock && ! $product->display_not_in_stock ) ) {
			View::show404();
		}
		else
		{
			View::load('product/view', $this->data);
		}
 
	}
 
	// ------------------------------------------------------------------------
 
	/**
	* Get Stock List
	*
	* Gets the items stock lisy
cpt-obvious This frame is within function '__callStatic'
/var/www/html/src/PMCOM/Front/Product.php
                }
                die('<p class="stock in misc"><i class="fa fa-check-circle"></i> In Stock</p>');
            }
 
		} else if( ! $product || ( ! $product->has_stock && ! $product->display_not_in_stock ) ) {
			View::show404();
		}
		else
		{
			View::load('product/view', $this->data);
		}
 
	}
 
	// ------------------------------------------------------------------------
 
	/**
	* Get Stock List
	*
	* Gets the items stock lisy
cpt-obvious This frame is within function 'load'
/var/www/html/src/PMCOM/Core/Router.php
					$method = array_reverse( $segments )[0];
				} 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 ) {}
				endforeach;
			endif;
		endif;
		// Show 404
		die( call_user_func_array( array( $this->container->get( 'PMCOM\Core\View' ), '_show404' ), $segments ) );
 
	}
 
cpt-obvious This frame is within function 'view'
/var/www/html/src/PMCOM/Core/Router.php
	 * @return [type]             [description]
	 */
 
	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 '_get_route'
/var/www/html/src/PMCOM/Core/Router.php
	 * @return [type]             [description]
	 */
 
	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/html/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/html/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'

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_SCRIPT_URL
"/brands/jewel-tool/jeweltool-universal-work-holder/"
REDIRECT_SCRIPT_URI
"https://www.shesto.co.uk/brands/jewel-tool/jeweltool-universal-work-holder/"
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"www.shesto.co.uk"
REDIRECT_STATUS
"200"
SCRIPT_URL
"/brands/jewel-tool/jeweltool-universal-work-holder/"
SCRIPT_URI
"https://www.shesto.co.uk/brands/jewel-tool/jeweltool-universal-work-holder/"
HTTPS
"on"
SSL_TLS_SNI
"www.shesto.co.uk"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_HOST
"www.shesto.co.uk"
HTTP_CONNECTION
"Keep-Alive"
HTTP_ACCEPT_ENCODING
"gzip"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
SERVER_SIGNATURE
"<address>Apache/2.4.29 (Ubuntu) Server at www.shesto.co.uk Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.29 (Ubuntu)"
SERVER_NAME
"www.shesto.co.uk"
SERVER_ADDR
"104.248.173.198"
SERVER_PORT
"443"
REMOTE_ADDR
"3.94.129.211"
DOCUMENT_ROOT
"/var/www/html/"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/html/"
SERVER_ADMIN
"[no address given]"
SCRIPT_FILENAME
"/var/www/html/index.php"
REMOTE_PORT
"56930"
REDIRECT_URL
"/brands/jewel-tool/jeweltool-universal-work-holder/"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/brands/jewel-tool/jeweltool-universal-work-holder/"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1575942556.098
REQUEST_TIME
1575942556
empty
0. PMCOM\Core\PurposeHandler
1. Whoops\Handler\CallbackHandler