30. InvalidArgumentException
…/­vendor/­symfony/­http-foundation/­Symfony/­Component/­HttpFoundation/­RedirectResponse.php41
29. Symfony\Component\HttpFoundation\RedirectResponse __construct
…/­app/­base/­lib/­routing/­redirector.php148
28. base_routing_redirector createRedirect
…/­app/­base/­lib/­routing/­redirector.php49
27. base_routing_redirector back
…/­app/­base/­lib/­facades/­facade.php62
26. base_facades_facade __callStatic
…/­custom/­topc/­controller/­list.php157
25. base_facades_redirect back
…/­custom/­topc/­controller/­list.php157
24. topc_ctl_list index
<#unknown>0
23. call_user_func_array
…/­app/­base/­lib/­routing/­router.php747
22. base_routing_router callController
…/­app/­base/­lib/­routing/­router.php738
21. base_routing_router callControllerAction
…/­app/­base/­lib/­routing/­router.php705
20. base_routing_router callActionOnArrayBasedRoute
…/­app/­base/­lib/­routing/­router.php645
19. base_routing_router {closure}
<#unknown>0
18. call_user_func
…/­app/­base/­lib/­pipeline/­pipeline.php130
17. base_pipeline_pipeline {closure}
…/­app/­theme/­middleware/­preview.php21
16. theme_middleware_preview handle
…/­app/­base/­lib/­pipeline/­pipeline.php114
15. base_pipeline_pipeline {closure}
…/­custom/­topc/­middleware/­redirectIfFromWap.php38
14. topc_middleware_redirectIfFromWap handle
…/­app/­base/­lib/­pipeline/­pipeline.php114
13. base_pipeline_pipeline {closure}
<#unknown>0
12. call_user_func
…/­app/­base/­lib/­pipeline/­pipeline.php91
11. base_pipeline_pipeline then
…/­app/­base/­lib/­routing/­router.php688
10. base_routing_router sendThroughPipeline
…/­app/­base/­lib/­routing/­router.php646
9. base_routing_router handleFoundRoute
…/­app/­base/­lib/­routing/­router.php628
8. base_routing_router handleFoundRouteCache
…/­app/­base/­lib/­routing/­router.php533
7. base_routing_router {closure}
…/­app/­base/­lib/­routing/­router.php690
6. base_routing_router sendThroughPipeline
…/­app/­base/­lib/­routing/­router.php541
5. base_routing_router dispatchRoute
…/­app/­base/­lib/­routing/­router.php503
4. base_routing_router dispatch
…/­app/­base/­lib/­routing/­router.php449
3. base_routing_router run
…/­app/­base/­lib/­facades/­facade.php65
2. base_facades_facade __callStatic
…/­app/­base/­kernel.php99
1. base_facades_route run
…/­app/­base/­kernel.php99
0. kernel boot
…/­public/­index.php19

InvalidArgumentException

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
InvalidArgumentException thrown with message "Cannot redirect to an empty URL." Stacktrace: #30 InvalidArgumentException in /data/www/bbc/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/RedirectResponse.php:41 #29 Symfony\Component\HttpFoundation\RedirectResponse:__construct in /data/www/bbc/app/base/lib/routing/redirector.php:148 #28 base_routing_redirector:createRedirect in /data/www/bbc/app/base/lib/routing/redirector.php:49 #27 base_routing_redirector:back in /data/www/bbc/app/base/lib/facades/facade.php:62 #26 base_facades_facade:__callStatic in /data/www/bbc/custom/topc/controller/list.php:157 #25 base_facades_redirect:back in /data/www/bbc/custom/topc/controller/list.php:157 #24 topc_ctl_list:index in <#unknown>:0 #23 call_user_func_array in /data/www/bbc/app/base/lib/routing/router.php:747 #22 base_routing_router:callController in /data/www/bbc/app/base/lib/routing/router.php:738 #21 base_routing_router:callControllerAction in /data/www/bbc/app/base/lib/routing/router.php:705 #20 base_routing_router:callActionOnArrayBasedRoute in /data/www/bbc/app/base/lib/routing/router.php:645 #19 base_routing_router:{closure} in <#unknown>:0 #18 call_user_func in /data/www/bbc/app/base/lib/pipeline/pipeline.php:130 #17 base_pipeline_pipeline:{closure} in /data/www/bbc/app/theme/middleware/preview.php:21 #16 theme_middleware_preview:handle in /data/www/bbc/app/base/lib/pipeline/pipeline.php:114 #15 base_pipeline_pipeline:{closure} in /data/www/bbc/custom/topc/middleware/redirectIfFromWap.php:38 #14 topc_middleware_redirectIfFromWap:handle in /data/www/bbc/app/base/lib/pipeline/pipeline.php:114 #13 base_pipeline_pipeline:{closure} in <#unknown>:0 #12 call_user_func in /data/www/bbc/app/base/lib/pipeline/pipeline.php:91 #11 base_pipeline_pipeline:then in /data/www/bbc/app/base/lib/routing/router.php:688 #10 base_routing_router:sendThroughPipeline in /data/www/bbc/app/base/lib/routing/router.php:646 #9 base_routing_router:handleFoundRoute in /data/www/bbc/app/base/lib/routing/router.php:628 #8 base_routing_router:handleFoundRouteCache in /data/www/bbc/app/base/lib/routing/router.php:533 #7 base_routing_router:{closure} in /data/www/bbc/app/base/lib/routing/router.php:690 #6 base_routing_router:sendThroughPipeline in /data/www/bbc/app/base/lib/routing/router.php:541 #5 base_routing_router:dispatchRoute in /data/www/bbc/app/base/lib/routing/router.php:503 #4 base_routing_router:dispatch in /data/www/bbc/app/base/lib/routing/router.php:449 #3 base_routing_router:run in /data/www/bbc/app/base/lib/facades/facade.php:65 #2 base_facades_facade:__callStatic in /data/www/bbc/app/base/kernel.php:99 #1 base_facades_route:run in /data/www/bbc/app/base/kernel.php:99 #0 kernel:boot in /data/www/bbc/public/index.php:19

Cannot redirect to an empty URL.

/data/www/bbc/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/RedirectResponse.php
     * @see http://tools.ietf.org/html/rfc2616#section-10.3
     *
     * @api
     */
    public function __construct($url, $status = 302, $headers = array())
    {
        if (empty($url)) {
            throw new \InvalidArgumentException('Cannot redirect to an empty URL.');
        }
 
/data/www/bbc/app/base/lib/routing/redirector.php
	 * @param  string  $path
	 * @param  int     $status
	 * @param  array   $headers
	 * @return \Illuminate\Http\RedirectResponse
	 */
	protected function createRedirect($path, $status, $headers)
	{
		$redirect = new base_http_response_redirect($path, $status, $headers);
 
		$redirect->setRequest($this->generator->getRequest());
/data/www/bbc/app/base/lib/routing/redirector.php
	 * @param  array  $headers
	 * @return \Illuminate\Http\RedirectResponse
	 */
	public function back($status = 302, $headers = array())
	{
		$back = $this->generator->getRequest()->headers->get('referer');
 
		return $this->createRedirect($back, $status, $headers);
	}
 
/data/www/bbc/app/base/lib/facades/facade.php
	public static function __callStatic($method, $args)
	{
		$instance = static::getFacadeRoot();
 
		switch (count($args))
		{
			case 0:
				return $instance->$method();
 
			case 1:
/data/www/bbc/custom/topc/controller/list.php
 
        //已选择的搜索条件
        $pagedata['activeFilter'] = $params;
 
        $initFilter = $this->__setInitFilter($params);
        if( !$initFilter )
        {
            return redirect::back();
        }
 
/data/www/bbc/custom/topc/controller/list.php
 
        //已选择的搜索条件
        $pagedata['activeFilter'] = $params;
 
        $initFilter = $this->__setInitFilter($params);
        if( !$initFilter )
        {
            return redirect::back();
        }
 
<#unknown>
/data/www/bbc/app/base/lib/routing/router.php
 
    public function callController($instance, $method, $routeInfo)
    {
        $callable = [$instance, $method];
        $parameters = $routeInfo[2];
        try {
            return $this->prepareResponse(
                call_user_func_array($callable, $parameters)
            );
        } catch (HttpResponseException $e) {
/data/www/bbc/app/base/lib/routing/router.php
 
        $appId = substr($controller,0, strpos($controller, '_'));
        
        if (! method_exists($instance = new $controller(app::get($appId)), $method)) {
            throw new NotFoundHttpException;
        }
 
        return $this->callController($instance, $method, $routeInfo);
    }
 
/data/www/bbc/app/base/lib/routing/router.php
     * @return mixed
     */
    protected function callActionOnArrayBasedRoute($routeInfo)
    {
        $action = $routeInfo[1];
 
        if (isset($action['uses'])) {
            return $this->prepareResponse($this->callControllerAction($routeInfo));
        }
 
/data/www/bbc/app/base/lib/routing/router.php
        $action = $routeInfo[1];
 
        // Pipe through route middleware...
        if (isset($action['middleware'])) {
            $middleware = $this->gatherMiddlewareClassNames($action['middleware']);
            return $this->prepareResponse($this->sendThroughPipeline($middleware, function () {
                //todo:娌℃湁route
                return $this->callActionOnArrayBasedRoute(request::route());
            }));
        }
<#unknown>
/data/www/bbc/app/base/lib/pipeline/pipeline.php
	 * @param  \Closure  $destination
	 * @return \Closure
	 */
	protected function getInitialSlice(Closure $destination)
	{
		return function($passable) use ($destination)
		{
			return call_user_func($destination, $passable);
		};
	}
/data/www/bbc/app/theme/middleware/preview.php
 
    public function handle($request, Closure $next)
    {
        if (isset($_COOKIE['site']['preview'])&&$_COOKIE['site']['preview']=='true')
        {
            theme::preview();
        }
        return $next($request);
    }
}
/data/www/bbc/app/base/lib/pipeline/pipeline.php
				// the appropriate method and arguments, returning the results back out.
				if ($pipe instanceof Closure)
				{
					return call_user_func($pipe, $passable, $stack);
				}
				else
				{
                    return kernel::single($pipe)->{$this->method}($passable, $stack);
				}
			};
/data/www/bbc/custom/topc/middleware/redirectIfFromWap.php
            elseif ($distribu_tag) {
                return redirect::action('topwap_ctl_passport@exRegister',array('user_id'=>$data['user_id'], 'distribu_id'=>$data['distribu_id']));
            }
            else{
               return redirect::route('topwap'); 
            }       
        }
        return $next($request);
    }
}
/data/www/bbc/app/base/lib/pipeline/pipeline.php
				// the appropriate method and arguments, returning the results back out.
				if ($pipe instanceof Closure)
				{
					return call_user_func($pipe, $passable, $stack);
				}
				else
				{
                    return kernel::single($pipe)->{$this->method}($passable, $stack);
				}
			};
<#unknown>
/data/www/bbc/app/base/lib/pipeline/pipeline.php
	{
		$firstSlice = $this->getInitialSlice($destination);
 
		$pipes = array_reverse($this->pipes);
 
		return call_user_func(
			array_reduce($pipes, $this->getSlice(), $firstSlice), $this->passable
		);
	}
 
/data/www/bbc/app/base/lib/routing/router.php
        //$this->make('middleware.disable') === true;
 
        //if (count($middleware) > 0 && ! $shouldSkipMiddleware) {
        if (count($middleware) > 0) {
            return (new Pipeline($this))
                ->send(request::instance())
                ->through($middleware)
                ->then($then);
        }
        return $then();
/data/www/bbc/app/base/lib/routing/router.php
 
        // Pipe through route middleware...
        if (isset($action['middleware'])) {
            $middleware = $this->gatherMiddlewareClassNames($action['middleware']);
            return $this->prepareResponse($this->sendThroughPipeline($middleware, function () {
                //todo:娌℃湁route
                return $this->callActionOnArrayBasedRoute(request::route());
            }));
        }
 
/data/www/bbc/app/base/lib/routing/router.php
                $cacheKey = md5(request::fullUrl());
                $timeout = (int)$cacheStrategy['timeout'] !==0 ? $cacheStrategy['timeout'] : 1;
                return unserialize(cache::store('controller-cache')->remember($cacheKey, $timeout, function() use ($routeInfo) {
                    return serialize($this->handleFoundRoute($routeInfo));
                }));
            }
        }
        return $this->handleFoundRoute($routeInfo);
    }
    /**
/data/www/bbc/app/base/lib/routing/router.php
        $pathInfo = empty($pathInfo) ? '/' : $pathInfo;
        $cacheStrategys = config::get('page_cache.pages');
 
        try {
            return $this->sendThroughPipeline($this->middleware, function () use ($method, $pathInfo, $routes, $parameters) {
 
                if (isset($routes[$method.$pathInfo])) {
                    return $this->handleFoundRouteCache([true, $routes[$method.$pathInfo]['action'], $parameters]);
                }
 
/data/www/bbc/app/base/lib/routing/router.php
        //if (count($middleware) > 0 && ! $shouldSkipMiddleware) {
        if (count($middleware) > 0) {
            return (new Pipeline($this))
                ->send(request::instance())
                ->through($middleware)
                ->then($then);
        }
        return $then();
    }
    
/data/www/bbc/app/base/lib/routing/router.php
                }
 
                $routeInfo = $this->createDispatcher($routes)->dispatch($method, $pathInfo);
 
                $routeInfo[2] = array_merge($parameters, (array)$routeInfo[2]);
                
                return $this->handleDispatcherResponse($routeInfo);
            });
        } catch (Exception $e) {
            return $this->sendExceptionToHandler($e);
/data/www/bbc/app/base/lib/routing/router.php
                    }
                });
 
                $routeInfo = $dispatcher->dispatch('aaaa', $domain);
 
                switch ($routeInfo[0]) {
                    case Dispatcher::NOT_FOUND:
                        return $this->dispatchRoute($request, $this->routes['nodomain']);
                    case Dispatcher::METHOD_NOT_ALLOWED:
                        throw new MethodNotAllowedHttpException($routeInfo[1]);
/data/www/bbc/app/base/lib/routing/router.php
     * Run the application and send the response.
     *
     * @param  SymfonyRequest|null  $request
     * @return void
     */
    public function run($request = null)
    {
        $response = $this->dispatch($request);
 
        if ($response instanceof SymfonyResponse) {
/data/www/bbc/app/base/lib/facades/facade.php
 
		switch (count($args))
		{
			case 0:
				return $instance->$method();
 
			case 1:
				return $instance->$method($args[0]);
 
			case 2:
/data/www/bbc/app/base/kernel.php
        }
 
        //static::registRouteMiddleware();
 
        //$response = route::dispatch(request::instance());
        //$response = static::sendRequestThroughRouter(request::instance());
 
        route::run(request::instance());
        // 临时处理方式
        kernel::single('base_session')->close();
/data/www/bbc/app/base/kernel.php
        }
 
        //static::registRouteMiddleware();
 
        //$response = route::dispatch(request::instance());
        //$response = static::sendRequestThroughRouter(request::instance());
 
        route::run(request::instance());
        // 临时处理方式
        kernel::single('base_session')->close();
/data/www/bbc/public/index.php
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/../bootstrap/autoload.php';
 
require __DIR__.'/../bootstrap/start.php';
 
kernel::boot();
 
 
Key
Value
d_c
51
operationtype
remove
c
51
use_platform
0-1
is_wholesale
0
empty
empty
empty
empty
Key
Value
TEMP
/tmp
TMPDIR
/tmp
TMP
/tmp
PATH
/usr/local/bin:/usr/bin:/bin
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx
QUERY_STRING
d_c=51&operationtype=remove&c=51&use_platform=0-1&is_wholesale=0
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_FILENAME
/data/www/bbc/public/index.php
SCRIPT_NAME
/index.php
REQUEST_URI
/list.html?d_c=51&operationtype=remove&c=51&use_platform=0-1&is_wholesale=0
DOCUMENT_URI
/index.php/list.html
DOCUMENT_ROOT
/data/www/bbc/public
SERVER_PROTOCOL
HTTP/1.1
REMOTE_ADDR
100.109.222.0
REMOTE_PORT
12388
SERVER_ADDR
172.17.9.68
SERVER_PORT
80
SERVER_NAME
_
REDIRECT_STATUS
200
PATH_INFO
/list.html
HTTP_REMOTEIP
154.81.79.217
HTTP_HOST
www.baijiatc.cn
HTTP_X_FORWARDED_FOR
154.81.79.217
HTTP_CONNECTION
close
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/list.html
REQUEST_TIME_FLOAT
1575587476.0823
REQUEST_TIME
1575587476
empty
0. Whoops\Handler\PrettyPageHandler