14. ErrorException
…/­app/­controllers/­HomeController.php390
13. Illuminate\Exception\Handler handleError
<#unknown>0
12. header
…/­app/­controllers/­HomeController.php390
11. HomeController news_detail
<#unknown>0
10. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php138
9. Illuminate\Routing\Controllers\Controller callMethod
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php115
8. Illuminate\Routing\Controllers\Controller callAction
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php985
7. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
6. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php80
5. Illuminate\Routing\Route callCallable
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php47
4. Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1016
3. Illuminate\Routing\Router dispatch
…/­vendor/­jasonlewis/­enhanced-router/­src/­JasonLewis/­EnhancedRouter/­Router.php190
2. JasonLewis\EnhancedRouter\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php576
1. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php552
0. Illuminate\Foundation\Application run
…/­public/­index.php49

ErrorException

Cannot modify header information - headers already sent by (output started at /data/www/html/gclub/app/routes.php:1)

        }
        
        $news = Admin\News::find($id);

        $device = \Input::get('device', false);
        if(strlen($news->wx_link)>0)
        {
            header('Location:'.$news->wx_link);
            exit;
        }else
<#unknown>
        }
        
        $news = Admin\News::find($id);

        $device = \Input::get('device', false);
        if(strlen($news->wx_link)>0)
        {
            header('Location:'.$news->wx_link);
            exit;
        }else
<#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);
		}
 
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function dispatch(Request $request)
	{
		$this->mergeRouteGroups();
 
		return parent::dispatch($request);
	}
 
		if ($this->isDownForMaintenance())
		{
			$response = $this['events']->until('illuminate.app.down');
 
			if ( ! is_null($response)) return $this->prepareResponse($response, $request);
		}
 
		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_HOST www.gclub.cn
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
LD_LIBRARY_PATH /usr/local/apache2/lib:
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.1 (Unix) OpenSSL/1.0.1e-fips PHP/5.6.30
SERVER_NAME www.gclub.cn
SERVER_ADDR 10.13.57.244
SERVER_PORT 80
REMOTE_ADDR 54.159.30.26
DOCUMENT_ROOT /data/www/html/gclub/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /data/www/html/gclub/public
SERVER_ADMIN you@example.com
SCRIPT_FILENAME /data/www/html/gclub/public/index.php
REMOTE_PORT 39936
REDIRECT_URL /news/197
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /news/197
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1519578603.168
REQUEST_TIME 1519578603
argv Array ( )
argc 0
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => eOI50iPhZt8OxbrUAgQKDHRJoJtFqYklLGPVF0Cv )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1519578603 [c] => 1519578603 [l] => 7200 )
Key Value
HOSTNAME 10-13-57-244
TERM vt100
SHELL /bin/bash
HISTSIZE 1000
USER root
HISTFILESIZE 100000
LD_LIBRARY_PATH /usr/local/apache2/lib:
PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
MAIL /var/spool/mail/root
PWD /root
LANG en_US.UTF-8
HISTCONTROL ignoredups
HOME /root
SHLVL 2
GREP_OPTIONS --color=auto
LOGNAME root
LESSOPEN |/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES 1
HISTTIMEFORMAT %Y-%m-%d %H:%M:%S
_ /usr/local/apache2/bin/httpd
0. Whoops\Handler\PrettyPageHandler