Error 500 Internal Server Error

GET https://mistik.smartive.app/sitemaps/articles-1.xml

Serializer

1 Handled
0.19 ms Total time

serialize 1

Data Context Normalizer Encoder Time Caller
Symfony\Component\ErrorHandler\Exception\FlattenException
Show contents
Symfony\Component\ErrorHandler\Exception\FlattenException {#6241
  -message: "Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider::findUrl(): Return value must be of type string, null returned"
  -code: 0
  -previous: null
  -trace: [
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => ""
      "file" => "/var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php"
      "line" => 124
      "args" => []
    ]
    [
      "namespace" => "Sulu\Bundle\ArticleBundle\Sitemap"
      "short_class" => "ArticleSitemapProvider"
      "class" => "Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider"
      "type" => "->"
      "function" => "findUrl"
      "file" => "/var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php"
      "line" => 110
      "args" => [
        [
          "object"
          "App\Document\ArticleViewDocument"
        ]
        [
          "string"
          "https"
        ]
        [
          "string"
          "mistik.smartive.app"
        ]
        [
          "string"
          "website"
        ]
      ]
    ]
    [
      "namespace" => "Sulu\Bundle\ArticleBundle\Sitemap"
      "short_class" => "ArticleSitemapProvider"
      "class" => "Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider"
      "type" => "->"
      "function" => "buildUrl"
      "file" => "/var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php"
      "line" => 81
      "args" => [
        [
          "object"
          "App\Document\ArticleViewDocument"
        ]
        [
          "string"
          "https"
        ]
        [
          "string"
          "mistik.smartive.app"
        ]
        [
          "string"
          "website"
        ]
      ]
    ]
    [
      "namespace" => "Sulu\Bundle\ArticleBundle\Sitemap"
      "short_class" => "ArticleSitemapProvider"
      "class" => "Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider"
      "type" => "->"
      "function" => "build"
      "file" => "/var/www/html/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php"
      "line" => 62
      "args" => [
        [
          "string"
          "1"
        ]
        [
          "string"
          "https"
        ]
        [
          "string"
          "mistik.smartive.app"
        ]
      ]
    ]
    [
      "namespace" => "Sulu\Bundle\WebsiteBundle\Sitemap"
      "short_class" => "XmlSitemapRenderer"
      "class" => "Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer"
      "type" => "->"
      "function" => "renderSitemap"
      "file" => "/var/www/html/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php"
      "line" => 179
      "args" => [
        [
          "string"
          "articles"
        ]
        [
          "string"
          "1"
        ]
        [
          "string"
          "https"
        ]
        [
          "string"
          "mistik.smartive.app"
        ]
      ]
    ]
    [
      "namespace" => "Sulu\Bundle\WebsiteBundle\Controller"
      "short_class" => "SitemapController"
      "class" => "Sulu\Bundle\WebsiteBundle\Controller\SitemapController"
      "type" => "->"
      "function" => "sitemapPaginatedAction"
      "file" => "/var/www/html/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 183
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
        [
          "string"
          "articles"
        ]
        [
          "string"
          "1"
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handleRaw"
      "file" => "/var/www/html/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" => "/var/www/html/vendor/symfony/http-kernel/Kernel.php"
      "line" => 182
      "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" => "/var/www/html/public/index.php"
      "line" => 69
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
      ]
    ]
  ]
  -traceAsString: """
    #0 /var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php(110): Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->findUrl(Object(App\Document\ArticleViewDocument), 'https', 'mistik.smartive...', 'website')\n
    #1 /var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php(81): Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->buildUrl(Object(App\Document\ArticleViewDocument), 'https', 'mistik.smartive...', 'website')\n
    #2 /var/www/html/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php(62): Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->build('1', 'https', 'mistik.smartive...')\n
    #3 /var/www/html/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php(179): Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->renderSitemap('articles', '1', 'https', 'mistik.smartive...')\n
    #4 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(183): Sulu\Bundle\WebsiteBundle\Controller\SitemapController->sitemapPaginatedAction(Object(Symfony\Component\HttpFoundation\Request), 'articles', '1')\n
    #5 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)\n
    #6 /var/www/html/vendor/symfony/http-kernel/Kernel.php(182): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n
    #7 /var/www/html/public/index.php(69): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))\n
    #8 {main}
    """
  -class: "TypeError"
  -statusCode: 500
  -statusText: "Internal Server Error"
  -headers: [
    "Vary" => "Accept"
    "X-Debug-Exception" => "Sulu%5CBundle%5CArticleBundle%5CSitemap%5CArticleSitemapProvider%3A%3AfindUrl%28%29%3A%20Return%20value%20must%20be%20of%20type%20string%2C%20null%20returned"
    "X-Debug-Exception-File" => "%2Fvar%2Fwww%2Fhtml%2Fvendor%2Fsulu%2Farticle-bundle%2FSitemap%2FArticleSitemapProvider.php:124"
    "Content-Type" => "text/xml"
  ]
  -file: "/var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php"
  -line: 124
  -asString: """
    <?xml version="1.0"?>\n
    <response><code>0</code><message>Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider::findUrl(): Return value must be of type string, null returned</message><errors><![CDATA[TypeError: Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider::findUrl(): Return value must be of type string, null returned in /var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php:124\n
    Stack trace:\n
    #0 /var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php(110): Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->findUrl(Object(App\Document\ArticleViewDocument), 'https', 'mistik.smartive...', 'website')\n
    #1 /var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php(81): Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->buildUrl(Object(App\Document\ArticleViewDocument), 'https', 'mistik.smartive...', 'website')\n
    #2 /var/www/html/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php(62): Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->build('1', 'https', 'mistik.smartive...')\n
    #3 /var/www/html/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php(179): Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->renderSitemap('articles', '1', 'https', 'mistik.smartive...')\n
    #4 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(183): Sulu\Bundle\WebsiteBundle\Controller\SitemapController->sitemapPaginatedAction(Object(Symfony\Component\HttpFoundation\Request), 'articles', '1')\n
    #5 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)\n
    #6 /var/www/html/vendor/symfony/http-kernel/Kernel.php(182): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n
    #7 /var/www/html/public/index.php(69): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))\n
    #8 {main}]]></errors></response>\n
    """
  -dataRepresentation: ? Symfony\Component\VarDumper\Cloner\Data
}
Format: xml
Show context
[
  "exception" => TypeError {#5759
    #message: "Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider::findUrl(): Return value must be of type string, null returned"
    #code: 0
    #file: "/var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php"
    #line: 124
    trace: {
      /var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php:124 {
        Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->findUrl(ArticleViewDocumentInterface $articleView, string $scheme, string $host, string $webspaceKey): string …
        › return $this->webspaceManager->findUrlByResourceLocator(    $articleView->getRoutePath(),    null,
      }
      /var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php:110 {
        Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->buildUrl(ArticleViewDocumentInterface $articleView, string $scheme, string $host, string $webspaceKey): SitemapUrl …
        › return new SitemapUrl(    $this->findUrl($articleView, $scheme, $host, $webspaceKey),    $articleView->getLocale(),
        arguments: {
          $articleView: App\Document\ArticleViewDocument {#5506 …}
          $scheme: "https"
          $host: "mistik.smartive.app"
          $webspaceKey: "website"
        }
      }
      /var/www/html/vendor/sulu/article-bundle/Sitemap/ArticleSitemapProvider.php:81 {
        Sulu\Bundle\ArticleBundle\Sitemap\ArticleSitemapProvider->build($page, $scheme, $host) …
        › foreach ($itemWebspaceKeys as $itemWebspaceKey) {    $url = $this->buildUrl($item, $scheme, $host, $itemWebspaceKey);arguments: {
          $articleView: App\Document\ArticleViewDocument {#5506 …}
          $scheme: "https"
          $host: "mistik.smartive.app"
          $webspaceKey: "website"
        }
      }
      /var/www/html/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php:62 {
        Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->renderSitemap($alias, $page, $scheme, $host) …
        › 
        › $entries = $provider->build($page, $scheme, $host);arguments: {
          $page: "1"
          $scheme: "https"
          $host: "mistik.smartive.app"
        }
      }
      /var/www/html/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php:179 {
        Sulu\Bundle\WebsiteBundle\Controller\SitemapController->sitemapPaginatedAction(Request $request, $alias, $page) …
        › if (!$response) {    $sitemap = $this->xmlSitemapRenderer->renderSitemap(        $alias,
        arguments: {
          $alias: "articles"
          $page: "1"
          $scheme: "https"
          $host: "mistik.smartive.app"
        }
      }
      /var/www/html/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 {#13 …}
          $alias: "articles"
          $page: "1"
        }
      }
      /var/www/html/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 {#13 …}
          $type: 1
        }
      }
      /var/www/html/vendor/symfony/http-kernel/Kernel.php:182 {
        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 {#13 …}
          $type: 1
          $catch: true
        }
      }
      /var/www/html/public/index.php:69 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
        arguments: {
          $request: Symfony\Component\HttpFoundation\Request {#13 …}
        }
      }
    }
  }
  "debug" => true
]
FlattenExceptionNormalizer (0.03 ms) XmlEncoder (0.17 ms) 0.19 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.