执行 ext:news 升级向导以更新 TYPO3 中的 path_segment 时出现异常 9 [英] Exception on executing ext:news upgrade wizard for updating path_segment in TYPO3 9

查看:14
本文介绍了执行 ext:news 升级向导以更新 TYPO3 中的 path_segment 时出现异常 9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到TYPO3 9后,部分tx_news_domain_model_news path_segment字段为空,所以我标记了升级向导更新新闻扩展的 EXT:news 记录的 slug 字段path_segment"" 已撤消并尝试执行它.这会引发一个异常.如果通过执行没有区别后端或在命令行上,尽管命令行在错误之前显示成功消息::

After upgrading to TYPO3 9, some of the tx_news_domain_model_news path_segment fields were empty, so I marked Upgrade Wizard "Updates slug field "path_segment" of EXT:news records" of news extension" as undone and tried to execute it. This throws an exception. Makes no difference if executed via backend or on command line, though the command line shows a success message before the error::

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.

Current TYPO3 version 9.5.5.

有变更日志条目:

有一个新的升级向导界面,但据我所知,带有 AbstractUpdate 的旧"更新向导应该仍然可以在 9.x 中工作.

There is a new Interface for upgrade wizard, but as far as I understand it, the "old" update wizards with AbstractUpdate should still work in 9.x.

这是一个错误吗?我已经解决了原始问题,因为更新向导确实成功转换了条目(请参阅 原始问题).

Is this a bug? I've got the original problem solved, because the update wizard did successfully convert the entries (see original question).

我只想澄清 TYPO3 9 中更新向导的实现.

I'd just like to have clarification for implementation of update wizards in TYPO3 9.

推荐答案

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

Yes this was a bug in the news extension and fixed in master. Be aware that the implementation of update wizards changed in 9 a bit, therefore also this bug occurred.

这篇关于执行 ext:news 升级向导以更新 TYPO3 中的 path_segment 时出现异常 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆