16. InvalidArgumentException
…/­vendor/­symfony/­http-foundation/­Symfony/­Component/­HttpFoundation/­RedirectResponse.php41
15. Symfony\Component\HttpFoundation\RedirectResponse __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Redirector.php186
14. Illuminate\Routing\Redirector createRedirect
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Redirector.php55
13. Illuminate\Routing\Redirector back
…/­bootstrap/­compiled.php3225
12. Illuminate\Support\Facades\Facade __callStatic
…/­app/­routes.php40
11. {closure}
<#unknown>0
10. call_user_func_array
…/­bootstrap/­compiled.php5330
9. Illuminate\Routing\Route run
…/­bootstrap/­compiled.php4996
8. Illuminate\Routing\Router dispatchToRoute
…/­bootstrap/­compiled.php4984
7. Illuminate\Routing\Router dispatch
…/­bootstrap/­compiled.php717
6. Illuminate\Foundation\Application dispatch
…/­bootstrap/­compiled.php698
5. Illuminate\Foundation\Application handle
…/­bootstrap/­compiled.php7706
4. Illuminate\Session\Middleware handle
…/­bootstrap/­compiled.php8309
3. Illuminate\Cookie\Queue handle
…/­bootstrap/­compiled.php8256
2. Illuminate\Cookie\Guard handle
…/­bootstrap/­compiled.php10895
1. Stack\StackedHttpKernel handle
…/­bootstrap/­compiled.php659
0. Illuminate\Foundation\Application run
…/­index.php49

InvalidArgumentException InvalidArgumentException thrown with message "Cannot redirect to an empty URL." Stacktrace: #16 InvalidArgumentException in /home3/kanon/public_html/CROOVS/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/RedirectResponse.php:41 #15 Symfony\Component\HttpFoundation\RedirectResponse:__construct in /home3/kanon/public_html/CROOVS/vendor/laravel/framework/src/Illuminate/Routing/Redirector.php:186 #14 Illuminate\Routing\Redirector:createRedirect in /home3/kanon/public_html/CROOVS/vendor/laravel/framework/src/Illuminate/Routing/Redirector.php:55 #13 Illuminate\Routing\Redirector:back in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:3225 #12 Illuminate\Support\Facades\Facade:__callStatic in /home3/kanon/public_html/CROOVS/app/routes.php:40 #11 {closure} in <#unknown>:0 #10 call_user_func_array in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:5330 #9 Illuminate\Routing\Route:run in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:4996 #8 Illuminate\Routing\Router:dispatchToRoute in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:4984 #7 Illuminate\Routing\Router:dispatch in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:717 #6 Illuminate\Foundation\Application:dispatch in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:698 #5 Illuminate\Foundation\Application:handle in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:7706 #4 Illuminate\Session\Middleware:handle in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:8309 #3 Illuminate\Cookie\Queue:handle in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:8256 #2 Illuminate\Cookie\Guard:handle in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:10895 #1 Stack\StackedHttpKernel:handle in /home3/kanon/public_html/CROOVS/bootstrap/compiled.php:659 #0 Illuminate\Foundation\Application:run in /home3/kanon/public_html/CROOVS/index.php:49

Cannot redirect to an empty URL.

     * @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.');
        }
 
	 * @param  string  $path
	 * @param  int     $status
	 * @param  array   $headers
	 * @return \Illuminate\Http\RedirectResponse
	 */
	protected function createRedirect($path, $status, $headers)
	{
		$redirect = new RedirectResponse($path, $status, $headers);
 
		if (isset($this->session))
	 * @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);
	}
 
        static::$app = $app;
    }
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
        switch (count($args)) {
            case 0:
                return $instance->{$method}();
            case 1:
                return $instance->{$method}($args[0]);
	
	$total = count( $lang );
	
	if( $total == 0 ) {
		App::abort('404');
	} else {
		Session::put('language', $lang->abbreviation);
   		 return Redirect::back();
	}
	
<#unknown>
        }
    }
    public function run()
    {
        $parameters = array_filter($this->parameters(), function ($p) {
            return isset($p);
        });
        return call_user_func_array($this->action['uses'], $parameters);
    }
    public function matches(Request $request, $includingMethod = true)
    }
    public function dispatchToRoute(Request $request)
    {
        $route = $this->findRoute($request);
        $this->events->fire('router.matched', array($route, $request));
        $response = $this->callRouteBefore($route, $request);
        if (is_null($response)) {
            $response = $route->run($request);
        }
        $response = $this->prepareResponse($request, $response);
        return isset($group['namespace']) ? $group['namespace'] . '\\' . $uses : $uses;
    }
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
        $response = $this->callFilter('before', $request);
        if (is_null($response)) {
            $response = $this->dispatchToRoute($request);
        }
        $response = $this->prepareResponse($request, $response);
            if (!is_null($response)) {
                return $this->prepareResponse($response, $request);
            }
        }
        if ($this->runningUnitTests() && !$this['session']->isStarted()) {
            $this['session']->start();
        }
        return $this['router']->dispatch($this->prepareRequest($request));
    }
    public function terminate(SymfonyRequest $request, SymfonyResponse $response)
        });
    }
    public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        try {
            $this->refreshRequest($request = Request::createFromBase($request));
            $this->boot();
            return $this->dispatch($request);
        } catch (\Exception $e) {
            if ($this->runningUnitTests()) {
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $this->checkRequestForArraySessions($request);
        if ($this->sessionConfigured()) {
            $session = $this->startSession($request);
            $request->setSession($session);
        }
        $response = $this->app->handle($request, $type, $catch);
        if ($this->sessionConfigured()) {
            $this->closeSession($session);
    public function __construct(HttpKernelInterface $app, CookieJar $cookies)
    {
        $this->app = $app;
        $this->cookies = $cookies;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $response = $this->app->handle($request, $type, $catch);
        foreach ($this->cookies->getQueuedCookies() as $cookie) {
            $response->headers->setCookie($cookie);
    public function __construct(HttpKernelInterface $app, Encrypter $encrypter)
    {
        $this->app = $app;
        $this->encrypter = $encrypter;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
    }
    protected function decrypt(Request $request)
    public function __construct(HttpKernelInterface $app, array $middlewares)
    {
        $this->app = $app;
        $this->middlewares = $middlewares;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->app->handle($request, $type, $catch);
    }
    public function terminate(Request $request, Response $response)
        if ($this->isBooted()) {
            $this->fireAppCallbacks(array($callback));
        }
    }
    public function run(SymfonyRequest $request = null)
    {
        $request = $request ?: $this['request'];
        $response = with($stack = $this->getStackedClient())->handle($request);
        $response->send();
        $stack->terminate($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 application we have whipped up for them.
|
*/
 
$app->run();
 
Key Value
LSPHP_ENABLE_USER_INI on
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST croovs.com
HTTP_USER_AGENT claudebot
REDIRECT_UNIQUE_ID ZgaOEQwY0-yaeEz9JWyIegAAANc
REDIRECT_QS_SrvConn 2
REDIRECT_QS_AllConn 115
REDIRECT_QS_ConnectionId 171170561656619440968052
REDIRECT_SCRIPT_URL /lang/en
REDIRECT_SCRIPT_URI http://croovs.com/lang/en
REDIRECT_STATUS 200
UNIQUE_ID ZgaOEQwY0-yaeEz9JWyIegAAANc
QS_SrvConn 2
QS_AllConn 115
QS_ConnectionId 171170561656619440968052
SCRIPT_URL /lang/en
SCRIPT_URI http://croovs.com/lang/en
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME croovs.com
SERVER_ADDR 192.254.234.245
SERVER_PORT 80
REMOTE_ADDR 54.175.59.242
DOCUMENT_ROOT /home3/kanon/public_html/CROOVS
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home3/kanon/public_html/CROOVS
SERVER_ADMIN webmaster@croovscom.blogorblogor.com
SCRIPT_FILENAME /home3/kanon/public_html/CROOVS/index.php
REMOTE_PORT 42866
REDIRECT_URL /lang/en
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /lang/en
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711705617.6374
REQUEST_TIME 1711705617
argv Array ( )
argc 0
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler