Exceptions
Exception
TypeError
if($hostName === $host || $portal->getHost() === $host) {$this->locales[$host] = $portal->getLocale();}}}return $this->locales[$host];}private function findNews(string $locale, int $limit = null, int $offset = null): array{return $this->repository->findAllForSitemap($locale, $limit, $offset);
in
vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php
->
getLocaleByHost
(line 51)
return 'news';}public function getMaxPage($scheme, $host): ?float{$locale = $this->getLocaleByHost($host);return ceil($this->repository->countForSitemap($locale) / self::PAGE_SIZE);}private function getLocaleByHost($host): string{
in
vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php
->
getMaxPage
(line 41)
return $result;}public function createSitemap($scheme, $host): Sitemap{return new Sitemap($this->getAlias(), $this->getMaxPage($scheme, $host));}public function getAlias(): string{return 'news';
in
vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/SitemapProviderPool.php
->
createSitemap
(line 71)
return $this->sitemapsPerHost[$key];}$sitemapsPerHost = [];foreach ($this->providers as $alias => $provider) {$sitemapsPerHost[] = $provider->createSitemap($scheme, $host);}$this->sitemapsPerHost[$key] = $sitemapsPerHost;return $this->sitemapsPerHost[$key];
in
vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php
->
getIndex
(line 95)
* @return bool*/private function needsIndex($scheme, $host){return 1 < \array_reduce($this->sitemapProviderPool->getIndex($scheme, $host),function($v1, Sitemap $v2) {return $v1 + $v2->getMaxPage();});}
in
vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php
->
needsIndex
(line 41)
$this->engine = $engine;}public function renderIndex($scheme, $host){if (!$this->needsIndex($scheme, $host)) {return null;}return $this->render('@SuluWebsite/Sitemap/sitemap-index.xml.twig',
in
vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php
->
renderIndex
(line 95)
public function indexAction(Request $request){$response = $this->getDumpedIndexResponse($request);if (!$response) {$sitemap = $this->xmlSitemapRenderer->renderIndex($request->getScheme(), $request->getHost());if (!$sitemap) {$sitemapAlias = null;foreach ($this->sitemapProviderPool->getProviders() as $sitemapAlias => $provider) {if ($provider->getMaxPage($request->getScheme(), $request->getHost()) > 0) {
in
vendor/symfony/http-kernel/HttpKernel.php
->
indexAction
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
// When using the HttpCache, you need to call the method in your front controller// instead of relying on the configuration parameter// https://symfony.com/doc/6.4/reference/configuration/framework.html#http-method-overrideRequest::enableHttpMethodParameterOverride();$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 09:23:50 | deprecation |
User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Task\TaskBundle\TaskBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 09:23:50 | deprecation |
User Deprecated: Method "PHPCR\Query\QueryManagerInterface::createQuery()" might add "QueryInterface" as a native return type declaration in the future. Do the same in implementation "Jackalope\Query\QueryManager" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Method "IteratorAggregate::getIterator()" might add "\Traversable" as a native return type declaration in the future. Do the same in implementation "Sulu\Component\Webspace\Manager\WebspaceCollection" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Method "JsonSerializable::jsonSerialize()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Sulu\Component\Localization\Localization" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Webspace\Portal::getXDefaultLocalization" method is deprecated on "Sulu\Component\Webspace\Portal" use "getDefaultLocalization" instead. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Webspace\Portal::setXDefaultLocalization" method is deprecated on "Sulu\Component\Webspace\Portal" use "setDefaultLocalization" instead. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. {
"exception": {}
}
|
| INFO 09:23:51 | doctrine |
Connecting with parameters {params} {
"params": {
"use_savepoints": true,
"driver": "pdo_mysql",
"idle_connection_ttl": 600,
"host": "127.0.0.1",
"port": 3306,
"user": "imagohea_chikulo",
"password": "<redacted>",
"driverOptions": {
"1002": "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))"
},
"serverVersion": "8.0.32",
"defaultTableOptions": [],
"dbname": "imagohea_imagohealthsystems",
"charset": "utf8mb4"
}
}
|
| DEBUG 09:23:51 | doctrine |
Executing statement: SELECT 1 FROM phpcr_workspaces WHERE name = ? (parameters: {params}, types: {types}) {
"sql": "SELECT 1 FROM phpcr_workspaces WHERE name = ?",
"params": {
"1": "default_live"
},
"types": {
"1": 2
}
}
|
| DEBUG 09:23:51 | doctrine |
Executing query: SELECT prefix, uri FROM phpcr_namespaces {
"sql": "SELECT prefix, uri FROM phpcr_namespaces"
}
|
| DEBUG 09:23:51 | doctrine |
Executing statement:
SELECT * FROM phpcr_nodes
WHERE path = ?
AND workspace_name = ?
ORDER BY depth, sort_order ASC (parameters: {params}, types: {types}) {
"sql": "\n SELECT * FROM phpcr_nodes\n WHERE path = ?\n AND workspace_name = ?\n ORDER BY depth, sort_order ASC",
"params": {
"1": "/cmf/website/custom-urls/routes/imagohealthsystems.com/_profiler/f560e5",
"2": "default_live"
},
"types": {
"1": 2,
"2": 2
}
}
|
| INFO 09:23:51 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "f560e5"
},
"request_uri": "https://imagohealthsystems.com/_profiler/f560e5",
"method": "GET"
}
|
| INFO 09:23:51 | deprecation |
User Deprecated: Method "JsonSerializable::jsonSerialize()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Sulu\Component\Content\Compat\Property" now to avoid errors or add an explicit @return annotation to suppress this message. {
"exception": {}
}
|
| INFO 09:23:51 | deprecation |
Deprecated: Optional parameter $limit declared before required parameter $options is implicitly treated as a required parameter {
"exception": {}
}
|
Stack Trace
|
TypeError
|
|---|
TypeError:
Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider::getLocaleByHost(): Return value must be of type string, null returned
at vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php:66
at Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->getLocaleByHost('imagohealthsystems.com')
(vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php:51)
at Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->getMaxPage('https', 'imagohealthsystems.com')
(vendor/manuxi/sulu-news-bundle/src/Sitemap/NewsSitemapProvider.php:41)
at Manuxi\SuluNewsBundle\Sitemap\NewsSitemapProvider->createSitemap('https', 'imagohealthsystems.com')
(vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/SitemapProviderPool.php:71)
at Sulu\Bundle\WebsiteBundle\Sitemap\SitemapProviderPool->getIndex('https', 'imagohealthsystems.com')
(vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php:95)
at Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->needsIndex('https', 'imagohealthsystems.com')
(vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php:41)
at Sulu\Bundle\WebsiteBundle\Sitemap\XmlSitemapRenderer->renderIndex('https', 'imagohealthsystems.com')
(vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php:95)
at Sulu\Bundle\WebsiteBundle\Controller\SitemapController->indexAction(object(Request))
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(/home/imagohea/public_html/index.php:69)
|