ErrorException
…/­app/­controllers/­NomineeController.php10
Illuminate\Exception\Handler handleError
…/­app/­controllers/­NomineeController.php10
NomineeController showNomineeBySlug
<#unknown>0
call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php138
Illuminate\Routing\Controllers\Controller callMethod
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php115
Illuminate\Routing\Controllers\Controller callAction
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php938
Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php80
Illuminate\Routing\Route callCallable
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php47
Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php969
Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php499
Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php474
Illuminate\Foundation\Application run
…/­public/­index.php49

ErrorException

Trying to get property of non-object

class NomineeController extends BaseController {

  public function showNomineeBySlug($slug)
  {
    $nominee = Nominee::bySlug($slug, true, false, 10);
    $breadcrumbs = (object)array(
      'categories' => (object)array(
        'selected' => $nominee->category,
        'listing' => Category::listAll()
      ),
class NomineeController extends BaseController {

  public function showNomineeBySlug($slug)
  {
    $nominee = Nominee::bySlug($slug, true, false, 10);
    $breadcrumbs = (object)array(
      'categories' => (object)array(
        'selected' => $nominee->category,
        'listing' => Category::listAll()
      ),
<#unknown>
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	protected function callMethod($method, $parameters)
	{
		return call_user_func_array(array($this, $method), $parameters);
	}
		// after filters on the controller to wrap up any last minute processing.
		$response = $this->callBeforeFilters($router, $method);

		$this->setupLayout();

		if (is_null($response))
		{
			$response = $this->callMethod($method, $parameters);
		}
			// We will extract the passed in parameters off of the route object so we will
			// pass them off to the controller method as arguments. We will not get the
			// defaults so that the controllers will be able to use its own defaults.
			$args = array_values($route->getParametersWithoutDefaults());

			$instance = $ioc->make($controller);

			return $instance->callAction($ioc, $me, $method, $args);
		};
	}
<#unknown>
	 *
	 * @return mixed
	 */
	protected function callCallable()
	{
		$variables = array_values($this->getParametersWithoutDefaults());

		return call_user_func_array($this->getOption('_call'), $variables);
	}
		// We will only call the router callable if no "before" middlewares returned
		// a response. If they do, we will consider that the response to requests
		// so that the request "lifecycle" will be easily halted for filtering.
		$response = $this->callBeforeFilters($request);

		if ( ! isset($response))
		{
			$response = $this->callCallable();
		}
		// Once we have the route, we can just run it to get the responses, which will
		// always be instances of the Response class. Once we have the responses we
		// will execute the global "after" middlewares to finish off the request.
		else
		{
			$this->currentRoute = $route = $this->findRoute($request);

			$response = $route->run($request);
		}
		{
			$response = $this['events']->until('illuminate.app.down');

			return $this->prepareResponse($response, $request);
		}
		else
		{
			return $this['router']->dispatch($this->prepareRequest($request));
		}
	}
	/**
	 * Handles the given request and delivers the response.
	 *
	 * @return void
	 */
	public function run()
	{
		$response = $this->dispatch($this['request']);

		$this['router']->callCloseFilter($this['request'], $response);
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/

$app->run();

/*
Key Value
REDIRECT_STATUS 200
HTTP_USER_AGENT Twitterbot/1.0
HTTP_ACCEPT */*
HTTP_ACCEPT_ESI 1.0, 1.0, 1.0
HTTP_X_AKAMAI_EDGESCAPE georegion=246,country_code=US,region_code=CA,city=SANFRANCISCO,dma=807,pmsa=7360,msa=7362,areacode=415+650,county=SANFRANCISCO+SANMATEO,fips=06075+06081,lat=37.7795,long=-122.4195,timezone=PST,zip=94102-94105+94107-94112+94114-94134+94137+94139-94147+94151+94153-94154+94156+94159-94164+94171-94172+94177+94188,continent=NA,throughput=vhigh,bw=5000,asnum=13414,location_id=0
HTTP_TRUE_CLIENT_IP 199.59.148.209
HTTP_X_AKAMAI_CONFIG_LOG_DETAIL true
HTTP_TE chunked;q=1.0
HTTP_CONNECTION TE, close
HTTP_ACCEPT_ENCODING gzip
HTTP_AKAMAI_ORIGIN_HOP 3
HTTP_VIA 1.1 v1-akamaitech.net(ghost) (AkamaiGHost), 1.1 v1-akamaitech.net(ghost) (AkamaiGHost), 1.1 akamai.net(ghost) (AkamaiGHost)
HTTP_X_FORWARDED_FOR 199.59.148.209, 165.254.42.239, 199.239.182.167, 209.48.37.109
HTTP_HOST www.omusicawards.com
HTTP_CACHE_CONTROL max-age=0
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache Server at www.omusicawards.com Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.omusicawards.com
SERVER_ADDR 67.214.221.61
SERVER_PORT 80
REMOTE_ADDR 208.85.144.234
DOCUMENT_ROOT /home/deploy/apps/laravel/public
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /home/deploy/apps/laravel/public/index.php
REMOTE_PORT 63608
REDIRECT_URL /nominee/adam-lamberts-glamberts
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /nominee/adam-lamberts-glamberts
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1406501569.181
REQUEST_TIME 1406501569
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => h0JFkuTkuvm55bUPKFd34UaZlmoNLnDuzFo7avVc )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1406501569 [c] => 1406501569 [l] => 7200 )
empty
0. Whoops\Handler\PrettyPageHandler