21. LogicException
…/­vendor/­symfony/­routing/­RouteCompiler.php112
20. Symfony\Component\Routing\RouteCompiler compilePattern
…/­vendor/­symfony/­routing/­RouteCompiler.php65
19. Symfony\Component\Routing\RouteCompiler compile
…/­vendor/­symfony/­routing/­Route.php594
18. Symfony\Component\Routing\Route compile
…/­bootstrap/­compiled.php3389
17. Illuminate\Routing\Route compileRoute
…/­bootstrap/­compiled.php3374
16. Illuminate\Routing\Route matches
…/­bootstrap/­compiled.php3752
15. Illuminate\Routing\RouteCollection Illuminate\Routing\{closure}
<#unknown>0
14. call_user_func
…/­bootstrap/­compiled.php1546
13. Illuminate\Support\Arr first
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­helpers.php182
12. array_first
…/­bootstrap/­compiled.php3753
11. Illuminate\Routing\RouteCollection check
…/­bootstrap/­compiled.php3715
10. Illuminate\Routing\RouteCollection match
…/­bootstrap/­compiled.php3045
9. Illuminate\Routing\Router findRoute
…/­bootstrap/­compiled.php3033
8. Illuminate\Routing\Router dispatchToRoute
…/­bootstrap/­compiled.php3025
7. Illuminate\Routing\Router dispatch
…/­bootstrap/­compiled.php702
6. Illuminate\Foundation\Application dispatch
…/­bootstrap/­compiled.php678
5. Illuminate\Foundation\Application handle
…/­bootstrap/­compiled.php5797
4. Illuminate\Session\Middleware handle
…/­bootstrap/­compiled.php6404
3. Illuminate\Cookie\Queue handle
…/­bootstrap/­compiled.php6351
2. Illuminate\Cookie\Guard handle
…/­bootstrap/­compiled.php8430
1. Stack\StackedHttpKernel handle
…/­bootstrap/­compiled.php639
0. Illuminate\Foundation\Application run
…/­public_html/­index.php54

LogicException

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
LogicException thrown with message "Route pattern "/pdv/api/{all}/{{all}}" cannot reference variable name "all" more than once." Stacktrace: #21 LogicException in /home/hunglion/vendor/symfony/routing/RouteCompiler.php:112 #20 Symfony\Component\Routing\RouteCompiler:compilePattern in /home/hunglion/vendor/symfony/routing/RouteCompiler.php:65 #19 Symfony\Component\Routing\RouteCompiler:compile in /home/hunglion/vendor/symfony/routing/Route.php:594 #18 Symfony\Component\Routing\Route:compile in /home/hunglion/bootstrap/compiled.php:3389 #17 Illuminate\Routing\Route:compileRoute in /home/hunglion/bootstrap/compiled.php:3374 #16 Illuminate\Routing\Route:matches in /home/hunglion/bootstrap/compiled.php:3752 #15 Illuminate\Routing\RouteCollection:Illuminate\Routing\{closure} in <#unknown>:0 #14 call_user_func in /home/hunglion/bootstrap/compiled.php:1546 #13 Illuminate\Support\Arr:first in /home/hunglion/vendor/laravel/framework/src/Illuminate/Support/helpers.php:182 #12 array_first in /home/hunglion/bootstrap/compiled.php:3753 #11 Illuminate\Routing\RouteCollection:check in /home/hunglion/bootstrap/compiled.php:3715 #10 Illuminate\Routing\RouteCollection:match in /home/hunglion/bootstrap/compiled.php:3045 #9 Illuminate\Routing\Router:findRoute in /home/hunglion/bootstrap/compiled.php:3033 #8 Illuminate\Routing\Router:dispatchToRoute in /home/hunglion/bootstrap/compiled.php:3025 #7 Illuminate\Routing\Router:dispatch in /home/hunglion/bootstrap/compiled.php:702 #6 Illuminate\Foundation\Application:dispatch in /home/hunglion/bootstrap/compiled.php:678 #5 Illuminate\Foundation\Application:handle in /home/hunglion/bootstrap/compiled.php:5797 #4 Illuminate\Session\Middleware:handle in /home/hunglion/bootstrap/compiled.php:6404 #3 Illuminate\Cookie\Queue:handle in /home/hunglion/bootstrap/compiled.php:6351 #2 Illuminate\Cookie\Guard:handle in /home/hunglion/bootstrap/compiled.php:8430 #1 Stack\StackedHttpKernel:handle in /home/hunglion/bootstrap/compiled.php:639 #0 Illuminate\Foundation\Application:run in /home/hunglion/public_html/index.php:54

Route pattern "/pdv/api/{all}/{{all}}" cannot reference variable name "all" more than once.

 
            // A PCRE subpattern name must start with a non-digit. Also a PHP variable cannot start with a digit so the
            // variable would not be usable as a Controller action argument.
            if (preg_match('/^\d/', $varName)) {
                throw new \DomainException(sprintf('Variable name "%s" cannot start with a digit in route pattern "%s". Please use a different name.', $varName, $pattern));
            }
            if (in_array($varName, $variables)) {
                throw new \LogicException(sprintf('Route pattern "%s" cannot reference variable name "%s" more than once.', $pattern, $varName));
            }
 
 
            $hostTokens = $result['tokens'];
            $hostRegex = $result['regex'];
        }
 
        $path = $route->getPath();
 
        $result = self::compilePattern($route, $path, false);
 
        $staticPrefix = $result['staticPrefix'];
    {
        if (null !== $this->compiled) {
            return $this->compiled;
        }
 
        $class = $this->getOption('compiler_class');
 
        return $this->compiled = $class::compile($this);
    }
 
        }
        return true;
    }
    protected function compileRoute()
    {
        $optionals = $this->extractOptionalParameters();
        $uri = preg_replace('/\\{(\\w+?)\\?\\}/', '{$1}', $this->uri);
        $this->compiled = with(new SymfonyRoute($uri, $optionals, $this->wheres, array(), $this->domain() ?: ''))->compile();
    }
    protected function extractOptionalParameters()
        $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)
    {
        $this->compileRoute();
        foreach ($this->getValidators() as $validator) {
            if (!$includingMethod && $validator instanceof MethodValidator) {
    protected function methodNotAllowed(array $others)
    {
        throw new MethodNotAllowedHttpException($others);
    }
    protected function check(array $routes, $request, $includingMethod = true)
    {
        return array_first($routes, function ($key, $value) use($request, $includingMethod) {
            return $value->matches($request, $includingMethod);
        });
    }
<#unknown>
            $array = array_values($results);
        }
        return array_values($results);
    }
    public static function first($array, $callback, $default = null)
    {
        foreach ($array as $key => $value) {
            if (call_user_func($callback, $key, $value)) {
                return $value;
            }
	 * @param  array     $array
	 * @param  \Closure  $callback
	 * @param  mixed     $default
	 * @return mixed
	 */
	function array_first($array, $callback, $default = null)
	{
		return Arr::first($array, $callback, $default);
	}
}
    {
        throw new MethodNotAllowedHttpException($others);
    }
    protected function check(array $routes, $request, $includingMethod = true)
    {
        return array_first($routes, function ($key, $value) use($request, $includingMethod) {
            return $value->matches($request, $includingMethod);
        });
    }
    protected function get($method = null)
        if (!isset($this->actionList[$action['controller']])) {
            $this->actionList[$action['controller']] = $route;
        }
    }
    public function match(Request $request)
    {
        $routes = $this->get($request->getMethod());
        $route = $this->check($routes, $request);
        if (!is_null($route)) {
            return $route->bind($request);
        }
        $response = $this->prepareResponse($request, $response);
        $this->callRouteAfter($route, $request, $response);
        return $response;
    }
    protected function findRoute($request)
    {
        $this->current = $route = $this->routes->match($request);
        return $this->substituteBindings($route);
    }
        }
        $response = $this->prepareResponse($request, $response);
        $this->callFilter('after', $request, $response);
        return $response;
    }
    public function dispatchToRoute(Request $request)
    {
        $route = $this->findRoute($request);
        $this->events->fire('router.matched', array($route, $request));
        $response = $this->callRouteBefore($route, $request);
        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 (!$catch || $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);
| 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();
 
empty
empty
empty
empty
empty
Key Value
USER hunglion
HOME /home/hunglion
SCRIPT_NAME /index.php
REQUEST_URI /forum
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /forum
REMOTE_PORT 55194
SCRIPT_FILENAME /home/hunglion/public_html/index.php
SERVER_ADMIN webmaster@hunglion.com
CONTEXT_DOCUMENT_ROOT /home/hunglion/public_html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/hunglion/public_html
REMOTE_ADDR 54.204.117.206
SERVER_PORT 443
SERVER_ADDR 192.168.1.10
SERVER_NAME www.hunglion.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
HTTP_X_HTTPS 1
HTTP_HOST www.hunglion.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
proxy-nokeepalive 1
SSL_TLS_SNI www.hunglion.com
HTTPS on
HTTP_AUTHORIZATION
SCRIPT_URI https://www.hunglion.com/forum
SCRIPT_URL /forum
UNIQUE_ID ZgaepMIv9QpG1vOwUKVSrgAAAEA
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.hunglion.com
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://www.hunglion.com/forum
REDIRECT_SCRIPT_URL /forum
REDIRECT_UNIQUE_ID ZgaepMIv9QpG1vOwUKVSrgAAAEA
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711709860.5741
REQUEST_TIME 1711709860
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler