Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/config/leadfy.php on line 27
Please provide a valid cache path. (500 Internal Server Error)

Symfony Exception

InvalidArgumentException

HTTP 500 Internal Server Error

Please provide a valid cache path.

Exception

InvalidArgumentException

  1.         $basePath '',
  2.         $shouldCache true,
  3.         $compiledExtension 'php')
  4.     {
  5.         if (! $cachePath) {
  6.             throw new InvalidArgumentException('Please provide a valid cache path.');
  7.         }
  8.         $this->files $files;
  9.         $this->cachePath $cachePath;
  10.         $this->basePath $basePath;
  1.      * @return void
  2.      */
  3.     public function registerBladeCompiler()
  4.     {
  5.         $this->app->singleton('blade.compiler', function ($app) {
  6.             return tap(new BladeCompiler(
  7.                 $app['files'],
  8.                 $app['config']['view.compiled'],
  9.                 $app['config']->get('view.relative_hash'false) ? $app->basePath() : '',
  10.                 $app['config']->get('view.cache'true),
  11.                 $app['config']->get('view.compiled_extension''php'),
  1.     {
  2.         // If the concrete type is actually a Closure, we will just execute it and
  3.         // hand back the results of the functions, which allows functions to be
  4.         // used as resolvers for more fine-tuned resolution of these objects.
  5.         if ($concrete instanceof Closure) {
  6.             return $concrete($this$this->getLastParameterOverride());
  7.         }
  8.         try {
  9.             $reflector = new ReflectionClass($concrete);
  10.         } catch (ReflectionException $e) {
  1.         // We're ready to instantiate an instance of the concrete type registered for
  2.         // the binding. This will instantiate the types, as well as resolve any of
  3.         // its "nested" dependencies recursively until all have gotten resolved.
  4.         $object $this->isBuildable($concrete$abstract)
  5.             ? $this->build($concrete)
  6.             : $this->make($concrete);
  7.         // If we defined any extenders for this type, we'll need to spin through them
  8.         // and apply them to the object being built. This allows for the extension
  9.         // of services, such as changing configuration or decorating the object.
  1.      */
  2.     protected function resolve($abstract$parameters = [], $raiseEvents true)
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::resolve($abstract$parameters$raiseEvents);
  6.     }
  7.     /**
  8.      * Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
  9.      *
  1.      *
  2.      * @throws \Illuminate\Contracts\Container\BindingResolutionException
  3.      */
  4.     public function make($abstract, array $parameters = [])
  5.     {
  6.         return $this->resolve($abstract$parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.      */
  2.     public function make($abstract, array $parameters = [])
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::make($abstract$parameters);
  6.     }
  7.     /**
  8.      * Resolve the given type from the container.
  9.      *
  1.     {
  2.         $resolver->register('blade', function () {
  3.             $app Container::getInstance();
  4.             $compiler = new CompilerEngine(
  5.                 $app->make('blade.compiler'),
  6.                 $app->make('files'),
  7.             );
  8.             $app->terminating(static function () use ($compiler) {
  9.                 $compiler->forgetCompiledOrNotExpired();
ViewServiceProvider->Illuminate\View\{closure}()
  1.         if (isset($this->resolved[$engine])) {
  2.             return $this->resolved[$engine];
  3.         }
  4.         if (isset($this->resolvers[$engine])) {
  5.             return $this->resolved[$engine] = call_user_func($this->resolvers[$engine]);
  6.         }
  7.         throw new InvalidArgumentException("Engine [{$engine}] not found.");
  8.     }
  1.             throw new InvalidArgumentException("Unrecognized extension in file: {$path}.");
  2.         }
  3.         $engine $this->extensions[$extension];
  4.         return $this->engines->resolve($engine);
  5.     }
  6.     /**
  7.      * Get the extension used by the view file.
  8.      *
  1.      * @param  \Illuminate\Contracts\Support\Arrayable|array  $data
  2.      * @return \Illuminate\Contracts\View\View
  3.      */
  4.     protected function viewInstance($view$path$data)
  5.     {
  6.         return new View($this$this->getEngineFromPath($path), $view$path$data);
  7.     }
  8.     /**
  9.      * Determine if a given view exists.
  10.      *
  1.         // Next, we will create the view instance and call the view creator for the view
  2.         // which can set any data, etc. Then we will return the view instance back to
  3.         // the caller for rendering or performing other view manipulations on this.
  4.         $data array_merge($mergeData$this->parseData($data));
  5.         return tap($this->viewInstance($view$path$data), function ($view) {
  6.             $this->callCreator($view);
  7.         });
  8.     }
  9.     /**
  1.     {
  2.         if (is_array($view)) {
  3.             return $this->make($this->view->first($view$data), $status$headers);
  4.         }
  5.         return $this->make($this->view->make($view$data), $status$headers);
  6.     }
  7.     /**
  8.      * Create a new JSON response instance.
  9.      *
  1.     {
  2.         $this->registerErrorViewPaths();
  3.         if ($view $this->getHttpExceptionView($e)) {
  4.             try {
  5.                 return response()->view($view, [
  6.                     'errors' => new ViewErrorBag,
  7.                     'exception' => $e,
  8.                 ], $e->getStatusCode(), $e->getHeaders());
  9.             } catch (Throwable $t) {
  10.                 config('app.debug') && throw $t;
  1.         if (! $this->isHttpException($e)) {
  2.             $e = new HttpException(500$e->getMessage(), $e);
  3.         }
  4.         return $this->toIlluminateResponse(
  5.             $this->renderHttpException($e), $e
  6.         )->prepare($request);
  7.     }
  8.     /**
  9.      * Create a Symfony response for the given exception.
  1.      */
  2.     protected function renderExceptionResponse($requestThrowable $e)
  3.     {
  4.         return $this->shouldReturnJson($request$e)
  5.                     ? $this->prepareJsonResponse($request$e)
  6.                     : $this->prepareResponse($request$e);
  7.     }
  8.     /**
  9.      * Convert an authentication exception into a response.
  10.      *
  1.         return match (true) {
  2.             $e instanceof HttpResponseException => $e->getResponse(),
  3.             $e instanceof AuthenticationException => $this->unauthenticated($request$e),
  4.             $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e$request),
  5.             default => $this->renderExceptionResponse($request$e),
  6.         };
  7.     }
  8.     /**
  9.      * Prepare exception for rendering.
  1.         $handler $this->container->make(ExceptionHandler::class);
  2.         $handler->report($e);
  3.         $response $handler->render($passable$e);
  4.         if (is_object($response) && method_exists($response'withException')) {
  5.             $response->withException($e);
  6.         }
  1.     {
  2.         return function ($passable) use ($destination) {
  3.             try {
  4.                 return $destination($passable);
  5.             } catch (Throwable $e) {
  6.                 return $this->handleException($passable$e);
  7.             }
  8.         };
  9.     }
  10.     /**
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.         if ($max && $request->server('CONTENT_LENGTH') > $max) {
  2.             throw new PostTooLargeException;
  3.         }
  4.         return $next($request);
  5.     }
  6.     /**
  7.      * Determine the server 'post_max_size' as bytes.
  8.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.                 null,
  2.                 $this->getHeaders($data)
  3.             );
  4.         }
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Determine if the incoming request has a maintenance mode bypass cookie.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      * @return \Illuminate\Http\Response
  2.      */
  3.     public function handle($requestClosure $next)
  4.     {
  5.         if (! $this->hasMatchingPath($request)) {
  6.             return $next($request);
  7.         }
  8.         $this->cors->setOptions($this->container['config']->get('cors', []));
  9.         if ($this->cors->isPreflightRequest($request)) {
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         $request::setTrustedProxies([], $this->getTrustedHeaderNames());
  3.         $this->setTrustedProxyIpAddresses($request);
  4.         return $next($request);
  5.     }
  6.     /**
  7.      * Sets the trusted proxies on the request.
  8.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * Run the pipeline and return the result.
  9.      *
  1.         $this->bootstrap();
  2.         return (new Pipeline($this->app))
  3.                     ->send($request)
  4.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  5.                     ->then($this->dispatchToRouter());
  6.     }
  7.     /**
  8.      * Bootstrap the application for HTTP requests.
  9.      *
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
Kernel->handle(object(Request)) in /var/www/public/index.php (line 51)
  1. $app = require_once __DIR__.'/../bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response $kernel->handle(
  4.     $request Request::capture()
  5. )->send();
  6. $kernel->terminate($request$response);

Stack Trace

InvalidArgumentException
InvalidArgumentException:
Please provide a valid cache path.

  at /var/www/vendor/laravel/framework/src/Illuminate/View/Compilers/Compiler.php:67
  at Illuminate\View\Compilers\Compiler->__construct(object(Filesystem), false, '', true, 'php')
     (/var/www/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php:97)
  at Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(object(Application), array())
     (/var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php:908)
  at Illuminate\Container\Container->build(object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php:795)
  at Illuminate\Container\Container->resolve('blade.compiler', array(), true)
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:961)
  at Illuminate\Foundation\Application->resolve('blade.compiler', array())
     (/var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php:731)
  at Illuminate\Container\Container->make('blade.compiler', array())
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:946)
  at Illuminate\Foundation\Application->make('blade.compiler')
     (/var/www/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php:168)
  at Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}()
  at call_user_func(object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/View/Engines/EngineResolver.php:55)
  at Illuminate\View\Engines\EngineResolver->resolve('blade')
     (/var/www/vendor/laravel/framework/src/Illuminate/View/Factory.php:310)
  at Illuminate\View\Factory->getEngineFromPath('/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/404.blade.php')
     (/var/www/vendor/laravel/framework/src/Illuminate/View/Factory.php:274)
  at Illuminate\View\Factory->viewInstance('errors::404', '/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/404.blade.php', array('errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
     (/var/www/vendor/laravel/framework/src/Illuminate/View/Factory.php:146)
  at Illuminate\View\Factory->make('errors::404', array('errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
     (/var/www/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:88)
  at Illuminate\Routing\ResponseFactory->view('errors::404', array('errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)), 404, array())
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:723)
  at Illuminate\Foundation\Exceptions\Handler->renderHttpException(object(NotFoundHttpException))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:650)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(NotFoundHttpException))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:556)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(NotFoundHttpException))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:473)
  at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
     (/var/www/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51)
  at Illuminate\Routing\Pipeline->handleException(object(Request), object(NotFoundHttpException))
     (/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:146)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
  at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:99)
  at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:49)
  at Illuminate\Http\Middleware\HandleCors->handle(object(Request), object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39)
  at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/var/www/public/index.php:51)