Error 500 Internal Server Error

GET http://simplexsms.com/_all_dbs?path=_all_dbs

Forwarded to ErrorController (284eb6)

Exceptions

locale_compose(): Argument #1 ($subtags) must contain a "language" key

  • Exception
  • Logs
  • Stack Trace

ValueError

  1.             } elseif (\function_exists('locale_parse')) {
  2.                 $localeSubTags locale_parse($locale);
  3.                 $locale null;
  4.                 if (\count($localeSubTags)) {
  5.                     array_pop($localeSubTags);
  6.                     $locale locale_compose($localeSubTags) ?: null;
  7.                 }
  8.             } elseif ($i strrpos($locale'_') ?: strrpos($locale'-')) {
  9.                 $locale substr($locale0$i);
  10.             } else {
  11.                 $locale null;
in vendor/symfony/translation/Translator.php locale_compose (line 388)
  1.             } elseif (\function_exists('locale_parse')) {
  2.                 $localeSubTags locale_parse($locale);
  3.                 $locale null;
  4.                 if (\count($localeSubTags)) {
  5.                     array_pop($localeSubTags);
  6.                     $locale locale_compose($localeSubTags) ?: null;
  7.                 }
  8.             } elseif ($i strrpos($locale'_') ?: strrpos($locale'-')) {
  9.                 $locale substr($locale0$i);
  10.             } else {
  11.                 $locale null;
in vendor/symfony/translation/Translator.php -> computeFallbackLocales (line 357)
  1.     private function loadFallbackCatalogues(string $locale): void
  2.     {
  3.         $current $this->catalogues[$locale];
  4.         foreach ($this->computeFallbackLocales($locale) as $fallback) {
  5.             if (!isset($this->catalogues[$fallback])) {
  6.                 $this->initializeCatalogue($fallback);
  7.             }
  8.             $fallbackCatalogue = new MessageCatalogue($fallback$this->getAllMessages($this->catalogues[$fallback]));
in vendor/symfony/translation/Translator.php -> loadFallbackCatalogues (line 246)
  1.         } catch (NotFoundResourceException $e) {
  2.             if (!$this->computeFallbackLocales($locale)) {
  3.                 throw $e;
  4.             }
  5.         }
  6.         $this->loadFallbackCatalogues($locale);
  7.     }
  8.     private function initializeCacheCatalogue(string $locale): void
  9.     {
  10.         if (isset($this->catalogues[$locale])) {
  1.     }
  2.     protected function initializeCatalogue(string $locale)
  3.     {
  4.         $this->initialize();
  5.         parent::initializeCatalogue($locale);
  6.     }
  7.     /**
  8.      * @internal
  9.      */
in vendor/symfony/translation/Translator.php -> initializeCatalogue (line 274)
  1.         $this->catalogues[$locale] = include $cache->getPath();
  2.     }
  3.     private function dumpCatalogue(string $localeConfigCacheInterface $cache): void
  4.     {
  5.         $this->initializeCatalogue($locale);
  6.         $fallbackContent $this->getFallbackContent($this->catalogues[$locale]);
  7.         $content sprintf(<<<EOF
  8. <?php
in vendor/symfony/translation/Translator.php -> dumpCatalogue (line 259)
  1.         }
  2.         $this->assertValidLocale($locale);
  3.         $cache $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale),
  4.             function (ConfigCacheInterface $cache) use ($locale) {
  5.                 $this->dumpCatalogue($locale$cache);
  6.             }
  7.         );
  8.         if (isset($this->catalogues[$locale])) {
  9.             /* Catalogue has been initialized as it was written out to cache. */
in vendor/symfony/config/ResourceCheckerConfigCacheFactory.php -> Symfony\Component\Translation\{closure} (line 36)
  1.     public function cache(string $file, callable $callable): ConfigCacheInterface
  2.     {
  3.         $cache = new ResourceCheckerConfigCache($file$this->resourceCheckers);
  4.         if (!$cache->isFresh()) {
  5.             $callable($cache);
  6.         }
  7.         return $cache;
  8.     }
  9. }
  1.             /* Catalogue already initialized. */
  2.             return;
  3.         }
  4.         $this->assertValidLocale($locale);
  5.         $cache $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale),
  6.             function (ConfigCacheInterface $cache) use ($locale) {
  7.                 $this->dumpCatalogue($locale$cache);
  8.             }
  9.         );
in vendor/symfony/translation/Translator.php -> initializeCacheCatalogue (line 231)
  1.     protected function loadCatalogue(string $locale)
  2.     {
  3.         if (null === $this->cacheDir) {
  4.             $this->initializeCatalogue($locale);
  5.         } else {
  6.             $this->initializeCacheCatalogue($locale);
  7.         }
  8.     }
  9.     protected function initializeCatalogue(string $locale)
  10.     {
in vendor/symfony/translation/Translator.php -> loadCatalogue (line 205)
  1.         } else {
  2.             $this->assertValidLocale($locale);
  3.         }
  4.         if (!isset($this->catalogues[$locale])) {
  5.             $this->loadCatalogue($locale);
  6.         }
  7.         return $this->catalogues[$locale];
  8.     }
in vendor/symfony/translation/Translator.php -> getCatalogue (line 170)
  1.             return '';
  2.         }
  3.         $domain ??= 'messages';
  4.         $catalogue $this->getCatalogue($locale);
  5.         $locale $catalogue->getLocale();
  6.         while (!$catalogue->defines($id$domain)) {
  7.             if ($cat $catalogue->getFallbackCatalogue()) {
  8.                 $catalogue $cat;
  9.                 $locale $catalogue->getLocale();
  1.         $this->translator $translator;
  2.     }
  3.     public function trans(?string $id, array $parameters = [], string $domain nullstring $locale null): string
  4.     {
  5.         $trans $this->translator->trans($id = (string) $id$parameters$domain$locale);
  6.         $this->collectMessage($locale$domain$id$trans$parameters);
  7.         return $trans;
  8.     }
  1.         if (null !== $count) {
  2.             $arguments['%count%'] = $count;
  3.         }
  4.         return $this->getTranslator()->trans($message$arguments$domain$locale);
  5.     }
  6.     public function createTranslatable(string $message, array $parameters = [], string $domain null): TranslatableMessage
  7.     {
  8.         if (!class_exists(TranslatableMessage::class)) {
  1.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  4.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_home", [], "messages"), "html"nulltrue);
  5.         
  6.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  7.         
  8.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
in vendor/twig/twig/src/Template.php -> block_title (line 171)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.     <head>
  2.         <meta charset=\"UTF-8\">
  3.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  4.         <title>";
  5.         // line 6
  6.         $this->displayBlock('title'$context$blocks);
  7.         echo "</title>
  8.         <!-- Bootstrap 5 cdn -->
  9.         <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC\" crossorigin=\"anonymous\">
  10.         
  11.         <!-- Font Awesome 5 cdn -->
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home.html.twig"));
  3.         $this->parent $this->loadTemplate("./base.html.twig""home.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php -> display (line 379)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context\func_get_args()[1] ?? []);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = []): string
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.             if ($v instanceof FormInterface) {
  2.                 $parameters[$k] = $v->createView();
  3.             }
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      *
  1.      * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2.      * Forms found in parameters are auto-cast to form views.
  3.      */
  4.     protected function render(string $view, array $parameters = [], Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         $response ??= new Response();
  8.         if (200 === $response->getStatusCode()) {
  9.             foreach ($parameters as $v) {
  10.                 if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
AbstractController->render() in src/Controller/HomeController.php (line 53)
  1.     public function index(EntityManagerInterface $entityManager): Response
  2.     {   
  3.                 
  4.         $this->flags $this->flagsService->getflags();
  5.         return $this->render('home.html.twig', [
  6.             'flags' => $this->flags,
  7.             
  8.         ]);
  9.     }
  10.     
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/manager/simplexsms.com/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };