Symfony Exception

RuntimeException

HTTP 500 Internal Server Error

Could not find resource 'js/zepto.min.js' in any resource paths.(searched: /home/safegua2/public_html/vendor/filp/whoops/src/Whoops/Handler/../Resources)

Exception

RuntimeException

  1.                 return $fullPath;
  2.             }
  3.         }
  4.         // If we got this far, nothing was found.
  5.         throw new RuntimeException(
  6.             "Could not find resource '$resource' in any resource paths."
  7.             "(searched: " join(", "$this->searchPaths). ")"
  8.         );
  9.     }
  1.             }
  2.         }
  3.         $templateFile $this->getResource("views/layout.html.php");
  4.         $cssFile      $this->getResource("css/whoops.base.css");
  5.         $zeptoFile    $this->getResource("js/zepto.min.js");
  6.         $prismJs $this->getResource("js/prism.js");
  7.         $prismCss $this->getResource("css/prism.css");
  8.         $clipboard    $this->getResource("js/clipboard.min.js");
  9.         $jsFile       $this->getResource("js/whoops.base.js");
  1.                 // The HandlerInterface does not require an Exception passed to handle()
  2.                 // and neither of our bundled handlers use it.
  3.                 // However, 3rd party handlers may have already relied on this parameter,
  4.                 // and removing it would be possibly breaking for users.
  5.                 $handlerResponse $handler->handle($exception);
  6.                 // Collect the content type for possible sending in the headers.
  7.                 $handlerContentType method_exists($handler'contentType') ? $handler->contentType() : null;
  8.                 if (in_array($handlerResponse, [Handler::LAST_HANDLERHandler::QUIT])) {
  1.             $whoops->appendHandler($this->whoopsHandler());
  2.             $whoops->writeToOutput(false);
  3.             $whoops->allowQuit(false);
  4.         })->handleException($e);
  5.     }
  6.     /**
  7.      * Get the Whoops handler for the application.
  8.      *
  1.      */
  2.     protected function renderExceptionContent(Throwable $e)
  3.     {
  4.         try {
  5.             return config('app.debug') && class_exists(Whoops::class)
  6.                         ? $this->renderExceptionWithWhoops($e)
  7.                         : $this->renderExceptionWithSymfony($econfig('app.debug'));
  8.         } catch (Exception $e) {
  9.             return $this->renderExceptionWithSymfony($econfig('app.debug'));
  10.         }
  11.     }
  1.      * @return \Symfony\Component\HttpFoundation\Response
  2.      */
  3.     protected function convertExceptionToResponse(Throwable $e)
  4.     {
  5.         return new SymfonyResponse(
  6.             $this->renderExceptionContent($e),
  7.             $this->isHttpException($e) ? $e->getStatusCode() : 500,
  8.             $this->isHttpException($e) ? $e->getHeaders() : []
  9.         );
  10.     }
  1.      * @return \Symfony\Component\HttpFoundation\Response
  2.      */
  3.     protected function prepareResponse($requestThrowable $e)
  4.     {
  5.         if (! $this->isHttpException($e) && config('app.debug')) {
  6.             return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
  7.         }
  8.         if (! $this->isHttpException($e)) {
  9.             $e = new HttpException(500$e->getMessage());
  10.         }
  1.             return $this->convertValidationExceptionToResponse($e$request);
  2.         }
  3.         return $request->expectsJson()
  4.                     ? $this->prepareJsonResponse($request$e)
  5.                     : $this->prepareResponse($request$e);
  6.     }
  7.     /**
  8.      * Prepare exception for rendering.
  9.      *
Handler->render(object(Request), object(FatalError)) in /home/safegua2/public_html/app/Exceptions/Handler.php (line 56)
  1.     public function render($requestThrowable $exception)
  2.     {
  3.         if ($exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) {
  4.             return redirect('/');
  5.         } 
  6.         return parent::render($request$exception);
  7.     }
  8. }
  1.      * @param  \Throwable  $e
  2.      * @return void
  3.      */
  4.     protected function renderHttpResponse(Throwable $e)
  5.     {
  6.         $this->getExceptionHandler()->render($this->app['request'], $e)->send();
  7.     }
  8.     /**
  9.      * Handle the PHP shutdown event.
  10.      *
  1.         }
  2.         if ($this->app->runningInConsole()) {
  3.             $this->renderForConsole($e);
  4.         } else {
  5.             $this->renderHttpResponse($e);
  6.         }
  7.     }
  8.     /**
  9.      * Render an exception to the console.
  1.      * @return void
  2.      */
  3.     public function handleShutdown()
  4.     {
  5.         if (! is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Create a new fatal error instance from an error array.
HandleExceptions->handleShutdown()

Stack Trace

RuntimeException
RuntimeException:
Could not find resource 'js/zepto.min.js' in any resource paths.(searched: /home/safegua2/public_html/vendor/filp/whoops/src/Whoops/Handler/../Resources)

  at /home/safegua2/public_html/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php:713
  at Whoops\Handler\PrettyPageHandler->getResource('js/zepto.min.js')
     (/home/safegua2/public_html/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php:204)
  at Whoops\Handler\PrettyPageHandler->handle(object(FatalError))
     (/home/safegua2/public_html/vendor/filp/whoops/src/Whoops/Run.php:398)
  at Whoops\Run->handleException(object(FatalError))
     (/home/safegua2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:364)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithWhoops(object(FatalError))
     (/home/safegua2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:343)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(FatalError))
     (/home/safegua2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:327)
  at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(FatalError))
     (/home/safegua2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:306)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(FatalError))
     (/home/safegua2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:211)
  at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(FatalError))
     (/home/safegua2/public_html/app/Exceptions/Handler.php:56)
  at App\Exceptions\Handler->render(object(Request), object(FatalError))
     (/home/safegua2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:119)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(object(FatalError))
     (/home/safegua2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:96)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(object(FatalError))
     (/home/safegua2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:130)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()