Error 500 Internal Server Error

GET https://imagohealthsystems.com/sitemap.xml

Serializer

1 Handled
0.43 ms Total time

default 1

serialize 1

Data Context Normalizer Encoder Time Caller
Symfony\Component\ErrorHandler\Exception\FlattenException
Show contents
Symfony\Component\ErrorHandler\Exception\FlattenException {#2533
  -message: "Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider::getLocaleByHost(): Return value must be of type string, null returned"
  -code: 0
  -previous: null
  -trace: [
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => ""
      "file" => "/home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php"
      "line" => 66
      "args" => []
    ]
    [
      "namespace" => "Manuxi\SuluNewsBundle\Sitemap"
      "short_class" => "NewsSitemapProvider"
      "class" => "Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider"
      "type" => "->"
      "function" => "getLocaleByHost"
      "file" => "/home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php"
      "line" => 51
      "args" => [
        [
          "string"
          "imagohealthsystems.com"
        ]
      ]
    ]
    [
      "namespace" => "Manuxi\SuluNewsBundle\Sitemap"
      "short_class" => "NewsSitemapProvider"
      "class" => "Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider"
      "type" => "->"
      "function" => "getMaxPage"
      "file" => "/home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php"
      "line" => 41
      "args" => [
        [
          "string"
          "https"
        ]
        [
          "string"
          "imagohealthsystems.com"
        ]
      ]
    ]
    [
      "namespace" => "Manuxi\SuluNewsBundle\Sitemap"
      "short_class" => "NewsSitemapProvider"
      "class" => "Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider"
      "type" => "->"
      "function" => "createSitemap"
      "file" => "/home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/SitemapProviderPool.php"
      "line" => 71
      "args" => [
        [
          "string"
          "https"
        ]
        [
          "string"
          "imagohealthsystems.com"
        ]
      ]
    ]
    [
      "namespace" => "Sulu\Bundle\WebsiteBundle\Sitemap"
      "short_class" => "SitemapProviderPool"
      "class" => "Sulu\Bundle\WebsiteBundle\Sitemap\SitemapProviderPool"
      "type" => "->"
      "function" => "getIndex"
      "file" => "/home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php"
      "line" => 95
      "args" => [
        [
          "string"
          "https"
        ]
        [
          "string"
          "imagohealthsystems.com"
        ]
      ]
    ]
    [
      "namespace" => "Sulu\Bundle\WebsiteBundle\Sitemap"
      "short_class" => "XmlSitemapRenderer"
      "class" => "Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer"
      "type" => "->"
      "function" => "needsIndex"
      "file" => "/home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php"
      "line" => 41
      "args" => [
        [
          "string"
          "https"
        ]
        [
          "string"
          "imagohealthsystems.com"
        ]
      ]
    ]
    [
      "namespace" => "Sulu\Bundle\WebsiteBundle\Sitemap"
      "short_class" => "XmlSitemapRenderer"
      "class" => "Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer"
      "type" => "->"
      "function" => "renderIndex"
      "file" => "/home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php"
      "line" => 95
      "args" => [
        [
          "string"
          "https"
        ]
        [
          "string"
          "imagohealthsystems.com"
        ]
      ]
    ]
    [
      "namespace" => "Sulu\Bundle\WebsiteBundle\Controller"
      "short_class" => "SitemapController"
      "class" => "Sulu\Bundle\WebsiteBundle\Controller\SitemapController"
      "type" => "->"
      "function" => "indexAction"
      "file" => "/home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 183
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handleRaw"
      "file" => "/home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 76
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
        [
          "integer"
          1
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/Kernel.php"
      "line" => 193
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
        [
          "integer"
          1
        ]
        [
          "boolean"
          true
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "Kernel"
      "class" => "Symfony\Component\HttpKernel\Kernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/home/imagohea/public_html/index.php"
      "line" => 69
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
      ]
    ]
  ]
  -traceAsString: """
    #0 /home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php(51): Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->getLocaleByHost('imagohealthsyst...')\n
    #1 /home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php(41): Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->getMaxPage('https', 'imagohealthsyst...')\n
    #2 /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/SitemapProviderPool.php(71): Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->createSitemap('https', 'imagohealthsyst...')\n
    #3 /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php(95): Sulu\Bundle\WebsiteBundle\Sitemap\SitemapProviderPool->getIndex('https', 'imagohealthsyst...')\n
    #4 /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php(41): Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->needsIndex('https', 'imagohealthsyst...')\n
    #5 /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php(95): Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->renderIndex('https', 'imagohealthsyst...')\n
    #6 /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/HttpKernel.php(183): Sulu\Bundle\WebsiteBundle\Controller\SitemapController->indexAction(Object(Symfony\Component\HttpFoundation\Request))\n
    #7 /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)\n
    #8 /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/Kernel.php(193): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n
    #9 /home/imagohea/public_html/index.php(69): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))\n
    #10 {main}
    """
  -class: "TypeError"
  -statusCode: 500
  -statusText: "Internal Server Error"
  -headers: [
    "Vary" => "Accept"
    "X-Debug-Exception" => "Manuxi%5CSuluNewsBundle%5CSitemap%5CNewsSitemapProvider%3A%3AgetLocaleByHost%28%29%3A%20Return%20value%20must%20be%20of%20type%20string%2C%20null%20returned"
    "X-Debug-Exception-File" => "%2Fhome%2Fimagohea%2Fimagohealthsystems%2Fvendor%2Fmanuxi%2Fsulu-news-bundle%2Fsrc%2FSitemap%2FNewsSitemapProvider.php:66"
    "Content-Type" => "text/xml"
  ]
  -file: "/home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php"
  -line: 66
  -asString: """
    <?xml version="1.0"?>\n
    <response><code>0</code><message>Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider::getLocaleByHost(): Return value must be of type string, null returned</message><errors><![CDATA[TypeError: Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider::getLocaleByHost(): Return value must be of type string, null returned in /home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php:66\n
    Stack trace:\n
    #0 /home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php(51): Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->getLocaleByHost('imagohealthsyst...')\n
    #1 /home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php(41): Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->getMaxPage('https', 'imagohealthsyst...')\n
    #2 /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/SitemapProviderPool.php(71): Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->createSitemap('https', 'imagohealthsyst...')\n
    #3 /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php(95): Sulu\Bundle\WebsiteBundle\Sitemap\SitemapProviderPool->getIndex('https', 'imagohealthsyst...')\n
    #4 /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php(41): Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->needsIndex('https', 'imagohealthsyst...')\n
    #5 /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php(95): Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->renderIndex('https', 'imagohealthsyst...')\n
    #6 /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/HttpKernel.php(183): Sulu\Bundle\WebsiteBundle\Controller\SitemapController->indexAction(Object(Symfony\Component\HttpFoundation\Request))\n
    #7 /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)\n
    #8 /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/Kernel.php(193): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n
    #9 /home/imagohea/public_html/index.php(69): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))\n
    #10 {main}]]></errors></response>\n
    """
  -dataRepresentation: ? Symfony\Component\VarDumper\Cloner\Data
}
Format: xml
Show context
[
  "exception" => TypeError {#2298
    #message: "Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider::getLocaleByHost(): Return value must be of type string, null returned"
    #code: 0
    #file: "/home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php"
    #line: 66
    trace: {
      /home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php:66 {
        Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->getLocaleByHost($host): string …
        ›     }\r    return $this->locales[$host];\r}\r
      }
      /home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php:51 {
        Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->getMaxPage($scheme, $host): ?float …
        › {\r    $locale = $this->getLocaleByHost($host);\r    return ceil($this->repository->countForSitemap($locale) / self::PAGE_SIZE);\r
        arguments: {
          $host: "imagohealthsystems.com"
        }
      }
      /home/imagohea/imagohealthsystems/vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php:41 {
        Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->createSitemap($scheme, $host): Sitemap …
        › {\r    return new Sitemap($this->getAlias(), $this->getMaxPage($scheme, $host));\r}\r
        arguments: {
          $scheme: "https"
          $host: "imagohealthsystems.com"
        }
      }
      /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/SitemapProviderPool.php:71 {
        Sulu\Bundle\WebsiteBundle\Sitemap\SitemapProviderPool->getIndex($scheme, $host) …
        › foreach ($this->providers as $alias => $provider) {    $sitemapsPerHost[] = $provider->createSitemap($scheme, $host);}
        arguments: {
          $scheme: "https"
          $host: "imagohealthsystems.com"
        }
      }
      /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php:95 {
        Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->needsIndex($scheme, $host) …
        › return 1 < \array_reduce(    $this->sitemapProviderPool->getIndex($scheme, $host),    function($v1, Sitemap $v2) {
        arguments: {
          $scheme: "https"
          $host: "imagohealthsystems.com"
        }
      }
      /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php:41 {
        Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->renderIndex($scheme, $host) …
        › {    if (!$this->needsIndex($scheme, $host)) {        return null;
        arguments: {
          $scheme: "https"
          $host: "imagohealthsystems.com"
        }
      }
      /home/imagohea/imagohealthsystems/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php:95 {
        Sulu\Bundle\WebsiteBundle\Controller\SitemapController->indexAction(Request $request) …
        › if (!$response) {    $sitemap = $this->xmlSitemapRenderer->renderIndex($request->getScheme(), $request->getHost());    if (!$sitemap) {
        arguments: {
          $scheme: "https"
          $host: "imagohealthsystems.com"
        }
      }
      /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/HttpKernel.php:183 {
        Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
        › // call controller$response = $controller(...$arguments);arguments: {
          $request: Symfony\Component\HttpFoundation\Request {#30 …}
        }
      }
      /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/HttpKernel.php:76 {
        Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
        › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
        arguments: {
          $request: Symfony\Component\HttpFoundation\Request {#30 …}
          $type: 1
        }
      }
      /home/imagohea/imagohealthsystems/vendor/symfony/http-kernel/Kernel.php:193 {
        Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
        › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
        arguments: {
          $request: Symfony\Component\HttpFoundation\Request {#30 …}
          $type: 1
          $catch: true
        }
      }
      /home/imagohea/public_html/index.php:69 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
        arguments: {
          $request: Symfony\Component\HttpFoundation\Request {#30 …}
        }
      }
    }
  }
  "debug" => true
]
FlattenExceptionNormalizer (0.07 ms) XmlEncoder (0.41 ms) 0.43 ms

deserialize 0

Nothing was deserialized.

normalize 0

Nothing was normalized.

denormalize 0

Nothing was denormalized.

encode 0

Nothing was encoded.

decode 0

Nothing was decoded.