ErrorException
…/­app/­models/­Category.php61
Illuminate\Exception\Handler handleError
…/­app/­models/­Category.php61
Category bySlug
…/­app/­controllers/­CategoryController.php35
CategoryController showCategoryBySlug
<#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

    return false;
  }

  public static function bySlug($slug, $withNominees = false, $withSponsor = false, $withTags = false, $withTrend = false, $withUserStandings = false)
  {
    $category = static::listing()->where('slug','=',$slug)->first();
    $nominees = static::nominees($category->id, $withTrend);
    $category->image = @$nominees[array_rand($nominees)]->image;
    return false;
  }

  public static function bySlug($slug, $withNominees = false, $withSponsor = false, $withTags = false, $withTrend = false, $withUserStandings = false)
  {
    $category = static::listing()->where('slug','=',$slug)->first();
    $nominees = static::nominees($category->id, $withTrend);
    $category->image = @$nominees[array_rand($nominees)]->image;
  {
    if ($slug == 'make-a-band-famous') {
      header('HTTP/1.1 301 Moved Permanently');
      header('Location: http://makeabandfamous.vh1.com');
      exit();
    }

    $category = Category::bySlug($slug, true, true, false, true, 1);
    $breadcrumbs = (object)array(
      'categories' => (object)array(
<#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_PRAGMA no-cache
HTTP_ACCEPT */*
HTTP_FROM bingbot(at)microsoft.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)
HTTP_ACCEPT_ESI 1.0, 1.0, 1.0
HTTP_X_AKAMAI_EDGESCAPE georegion=289,country_code=US,region_code=WA,city=REDMOND,dma=819,pmsa=7600,msa=7602,areacode=425,county=KING,fips=53033,lat=47.6833,long=-122.1231,timezone=PST,zip=98052-98053+98073,continent=NA,throughput=vhigh,bw=5000,network=microsoft,asnum=8075+12076,location_id=0
HTTP_TRUE_CLIENT_IP 207.46.13.117
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 207.46.13.117, 207.108.220.157, 199.239.182.221, 209.48.37.109
HTTP_HOST www.omusicawards.com
HTTP_CACHE_CONTROL no-cache, 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 57643
REDIRECT_URL /vote/most-fucked-up-live-performance-gone-viral
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /vote/most-fucked-up-live-performance-gone-viral
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1406518408.844
REQUEST_TIME 1406518408
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => sWG0c9BqdDcLMFMUlQMG1lFZJfFnXS4wNy7i0Bg0 )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1406518408 [c] => 1406518408 [l] => 7200 )
empty
0. Whoops\Handler\PrettyPageHandler