<admBereich>_

Ocorreu um erro grave, e o sistema não pode prosseguir:
$error Dotenv\Exception\InvalidPathException#19 (7) "Unable to read any of the environment file(s) at [/var/www/21live/.env]."
  • Source
  • Properties (7)
  • Methods (11)
  • toString
  • $contents = Reader::read($this->filePaths, $this->shortCircuit, $this->fileEncoding);
    if (\count($contents) > 0) {
    return \implode("\n", $contents);
    }
    throw new InvalidPathException(
    \sprintf('Unable to read any of the environment file(s) at [%s].', \implode(', ', $this->filePaths))
    );
    }
    }
  • protected message -> string (72) "Unable to read any of the environment file(s) at [/var/www/21live/.env]."
    private string -> string (0) ""
    protected code -> integer 0
    protected file -> string (63) "/var/www/21live/vendor/vlucas/phpdotenv/src/Store/FileStore.php"
    • File (1.6KB)
    • -rw-r--r-- 1000 48 1680 Dec 27 2025 /var/www/21live/vendor/vlucas/phpdotenv/src/Store/FileStore.php
      
    protected line -> integer 68
    private trace -> Debug Backtrace (5)
    <ROOT>/vendor/vlucas/phpdotenv/src/Dotenv.php:222 Dotenv\Store\FileStore::read()
    • Source
    • *
      * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidEncodingException|\Dotenv\Exception\InvalidFileException
      *
      * @return array<string, string|null>
      */
      public function load()
      {
      $entries = $this->parser->parse($this->store->read());
      return $this->loader->load($this->repository, $entries);
      }
      /**
      * Read and load environment file(s), silently failing if no files can be read.
      *
    <ROOT>/library/App.php:59 Dotenv\Dotenv::load()
    • Source
    • /**
      * Carrega o .env
      * @return void
      */
      static function loadEnv(): void
      {
      $dotenv = Dotenv::createMutable(ROOT);
      $dotenv->load();
      }
      static function resourcePath($resource): string
      {
      $path = PATH."/";
      if(strpos($_SERVER['PHP_SELF'], "public"))
      $path .= "public/";
    <ROOT>/library/App.php:32 AdmBereich\App::loadEnv()
    • Source
    • * Indica se a requisição atual está sendo tratada por um controller de API.
      * Setado pelo construtor de LiveAPIController antes de qualquer lógica de negócio.
      */
      public static bool $apiMode = false;
      function __construct()
      {
      self::loadEnv();
      }
      function setRouter(Router $router): static
      {
      $this->router = $router;
      return $this;
      }
    <ROOT>/library/loader.php:8 AdmBereich\App::__construct()
    • Source
    • <?php
      /**
      * Arquivo central que puxa todas as dependências para rodar o site
      */
      require_once(ROOT.'/config/config.php'); //Puxa as configurações
      require_once ROOT.'/vendor/autoload.php'; //Carrega as dependências
      $app = new AdmBereich\App(); //Instancia o aplicativo
      require_once(ROOT.'/library/shared.php'); //Configura definições de ini, além de funções padrão
      require_once(ROOT.'/config/routes.php'); //Carrega a classe de rotas e suas configurações
      if(!empty($_ENV['SASS_COMPILE']) && !preg_match('#^/[^/]+/API(?:/.*)?(?:\?.*)?$#', $_SERVER['REQUEST_URI'])){ //Compila SASS se SASS_COMPILE=true
      if(!is_dir(ROOT."/public/css/"))
      mkdir(ROOT."/public/css/");
    <ROOT>/public/index.php:26
    • Source
    • Arguments (1)
    • require_once ROOT.DS.'vendor'.DS.'autoload.php';
      \AdmBereich\CrashCapture::configure(
      [\Live21\Services\CrashReporter::class, 'persist'],
      ROOT.DS.'tmp'.DS.'issues.jsonl'
      );
      require_once(ROOT.DS.'library'.DS.'loader.php');
    • 0 => string (34) "/var/www/21live/library/loader.php"
      • File (839B)
      • -rw-r--r-- 1000 48 839 May 20 17:48 /var/www/21live/library/loader.php
        
    private previous -> null
  • public __construct(string $message = '', int $code = 0, ?Throwable $previous = null)
    new \Dotenv\Exception\InvalidPathException()
    public __wakeup()
    final public getMessage(): string
    $error->getMessage()
    final public getCode()
    $error->getCode()
    final public getFile(): string
    $error->getFile()
    final public getLine(): int
    $error->getLine()
    final public getTrace(): array
    $error->getTrace()
    final public getPrevious(): ?Throwable
    $error->getPrevious()
    final public getTraceAsString(): string
    $error->getTraceAsString()
    public __toString(): string
    (string) $error
    private Exception::__clone(): void
  • $error string (560) "Dotenv\Exception\InvalidPathException: Unable to read any of the environment...
    (string) $error
    Dotenv\Exception\InvalidPathException: Unable to read any of the environment file(s) at [/var/www/21live/.env]. in /var/www/21live/vendor/vlucas/phpdotenv/src/Store/FileStore.php:68
    Stack trace:
    #0 /var/www/21live/vendor/vlucas/phpdotenv/src/Dotenv.php(222): Dotenv\Store\FileStore->read()
    #1 /var/www/21live/library/App.php(59): Dotenv\Dotenv->load()
    #2 /var/www/21live/library/App.php(32): AdmBereich\App::loadEnv()
    #3 /var/www/21live/library/loader.php(8): AdmBereich\App->__construct()
    #4 /var/www/21live/public/index.php(26): require_once('...')
    #5 {main}
    

Warning: Undefined array key "DB_HOST" in /var/www/21live/library/DB.php on line 65

Warning: Undefined array key "DB_USER" in /var/www/21live/library/DB.php on line 65

Warning: Undefined array key "DB_PSWD" in /var/www/21live/library/DB.php on line 65

Warning: Undefined array key "DB_NAME" in /var/www/21live/library/DB.php on line 65

Warning: Undefined array key "DB_PORT" in /var/www/21live/library/DB.php on line 65