在 TYPO3 9 中执行 ext:news 升级向导以更新 path_segment 时出现异常

Exception on executing ext:news upgrade wizard for updating path_segment in TYPO3 9

升级到TYPO3 9后,一些tx_news_domain_model_news path_segment字段是空的,所以我标记了升级向导 "Updates slug field "path_segment" of EXT:news records" of news extension" 已撤消并尝试执行它。这会引发 异常。如果通过后端或命令行执行没有区别,尽管命令行在错误之前显示一条成功消息::

typo3-cli upgrade:run newsSlug

输出:

In UpgradeWizardsService.php line 466:

No valid wizard identifier given  


in /var/www/domain/htdocs/typo3_src-9.5.5/typo3/sysext/install/Classes/Service/UpgradeWizardsService.php line 466
     */
    protected function assertIdentifierIsValid(string $identifier): void
    {
        if ($identifier === '' || (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][$identifier]) && !is_subclass_of($identifier, RowUpdaterInterface::class))) {
            throw new \RuntimeException('No valid wizard identifier given', 1502721731);
        }
    }
}

当前 TYPO3 版本 9.5.5。

有更新日志条目:

升级向导有一个新的界面,但据我了解,带有 AbstractUpdate 的 "old" 更新向导应该仍然可以在 9.x 中使用。


这是一个错误吗?我已经解决了最初的问题,因为更新向导确实成功地转换了条目(参见 )。

我想澄清一下 TYPO3 9 中更新向导的实现。

是的,这是新闻扩展中的错误,已在 master 中修复。请注意,更新向导的实现在 9 中发生了一些变化,因此也出现了此错误。