Concrete 5 站点地图生成器因错误而停止?

Concrete 5 Sitemap generator stalls out with an error?

在尝试生成站点地图时,我不断收到此错误并且作业停滞了 我在 8.4.3 中注意到这个错误,所以我更新到 8.4.4,它仍然存在

错误:

Argument 2 passed to Concrete\Core\Page\Sitemap\Element\SitemapPage::__construct() must implement interface Concrete\Core\Url\UrlInterface, instance of League\Url\Url given, called in /home2/cedarcom/public_html/updates/concrete5-8.4.4_remote_updater/concrete/src/Page/Sitemap/SitemapGenerator.php on line 316

如果有人对此有所了解,将不胜感激!

此问题已被 https://github.com/concrete5/concrete5/pull/7363 修复,因此即将推出的 concrete5 8.5.0 将不会遇到此问题。

如果您想修复 运行 安装,您可以编辑这两个文件:

  • /home2/cedarcom/public_html/updates/concrete5-8.4.4_remote_updater/concrete/src/Page/Sitemap/Element/SitemapPage.php
  • /home2/cedarcom/public_html/updates/concrete5-8.4.4_remote_updater/concrete/src/Page/Sitemap/Element/SitemapPageAlternativeLanguage.php

替换此行

 use Concrete\Core\Url\UrlInterface;

use League\Url\UrlInterface;