<admBereich>_Ocorreu um erro grave, e o sistema não pode prosseguir:protected function _loadTenant(&$path): void{$tenant = Tenant::bySlug($path[0]);if($tenant !== false){if($tenant->isDeleted()){if ($_SERVER['REQUEST_METHOD'] !== 'OPTIONS')throw new \Exception("A Instância /".$tenant->slug." #".$tenant->tenant_id." - ".$tenant->name." está desativada");array_shift($path);self::setTenant($tenant);self::$tenant = $tenant->slug;return;}array_shift($path);
-rw-r--r-- 1000 48 8920 May 13 16:20 /var/www/21live/app/Foundation/LiveRouter.php
$namespace = $this->getNamespace(); //\Live21\Controllers\if(empty($path)){$this->redirToLanding();}//Load a tenant to run the application$this->_loadTenant($path);//Check if route is set as a custom route on \config\routes.phpif(isset($this->routes[implode("/", $path)]))$path = preg_split('@/@', $this->routes[implode("/", $path)], -1, PREG_SPLIT_NO_EMPTY);//Check if route is on another namespaceif(isset($this->extraNamespaces[$path[0]])){
* Executa o Router* @return void* @throws \Exception*/function run(): void{$path = \ltrim(\str_freplace(PATH."/", '', $_SERVER['REQUEST_URI']), '/');$this->router->route($path);}/*** Carrega o .env* @return void*/static function loadEnv(): void
if($_ENV['APP_DEBUG'] && !preg_match('#^/[^/]+/API(?:/.*)?(?:\?.*)?$#', $_SERVER['REQUEST_URI'])){ //Se estiver no modo desenvolvimento, checa se algum arquivo .sass precisa ser compiladoif(!is_dir(ROOT."/public/css/"))mkdir(ROOT."/public/css/");\AdmBereich\Sass::compile(ROOT."/public/sass/", ROOT."/public/css/");}$app->setRouter($routes)->run();
if (version_compare(phpversion(), '8.0', '<'))echo 'O 21LIVE requer no mínimo a versão 8.0 do php, por favor, atualize';require_once ROOT.DS.'library'.DS.'profiling.php';require_once ROOT.DS.'library'.DS.'error_handler.php';require_once(ROOT.DS.'library'.DS.'loader.php');
-rw-r--r-- 1000 48 891 Apr 25 09:53 /var/www/21live/library/loader.php
Exception: A Instância /openhouse #43 - Open House está desativada in /var/www/21live/app/Foundation/LiveRouter.php:157
Stack trace:
#0 /var/www/21live/app/Foundation/LiveRouter.php(57): Live21\Foundation\LiveRouter->_loadTenant()
#1 /var/www/21live/library/App.php(43): Live21\Foundation\LiveRouter->route()
#2 /var/www/21live/library/loader.php(20): AdmBereich\App->run()
#3 /var/www/21live/public/index.php(17): require_once('...')
#4 {main}