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_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
HTTP_REFERER http://blog.omusicawards.com/2011/10/billboards-katie-morse-is-the-hottest-music-nilf/
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8
HTTP_COOKIE s_nr=1406363524470; vmn_host=1; s_cc=true; s_fid=4E6048D668F49D90-0D178C3CD6CB7617; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|29E9B3C505012039-4000010D800036DF[CE]; s_ppv=31
HTTP_ACCEPT_ESI 1.0, 1.0, 1.0
HTTP_X_AKAMAI_EDGESCAPE georegion=2,country_code=GB,region_code=EN,city=EALING,lat=51.50,long=-0.32,timezone=GMT,continent=EU,throughput=vhigh,bw=5000,network=bt,asnum=25127,location_id=0
HTTP_TRUE_CLIENT_IP 109.148.106.64
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 109.148.106.64, 213.120.162.140, 23.67.255.38, 165.254.40.173
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 8786
REDIRECT_URL /vote/hottest-music-nilf
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /vote/hottest-music-nilf
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1406363544.656
REQUEST_TIME 1406363544
empty
empty
empty
Key Value
s_nr 1406363524470
vmn_host 1
s_cc true
s_fid 4E6048D668F49D90-0D178C3CD6CB7617
s_sq [[B]]
s_vi [CS]v1|29E9B3C505012039-4000010D800036DF[CE]
s_ppv 31
Key Value
_sf2_attributes Array ( [_token] => QsbSRha64LtWVukxEEjLOfYWtyhYbFKyTHstpQQe )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1406363544 [c] => 1406363544 [l] => 7200 )
empty
0. Whoops\Handler\PrettyPageHandler