简体   繁体   English

将tt_news迁移到新闻:插件迁移创建textmedia插件

[英]Migrating tt_news to news: Plugin Migration creates textmedia plugins

I'm in the process of migrating a TYPO3 7 LTS latest site from ext:tt_news to ext:news. 我正在将TYPO3 7 LTS最新站点从ext:tt_news迁移到ext:news。

The data migration is working flawless. 数据迁移工作正常。 But when I'm running ttnewspluginmigrate:run , all new plugins are textmedia content elements (should be news content elements). 但是,当我运行ttnewspluginmigrate:run ,所有新插件都是textmedia内容元素(应该是新闻内容元素)。

What I tried solving this issue: 我尝试解决此问题的方法:

  • Updated tt_news to latest version on TER tt_news更新到TER的最新版本
  • Used dev:master of news_ttnewsimport 二手dev:master of news_ttnewsimport
  • Used dev:master of news 二手dev:新闻大师
  • Used ^5.0 for news 使用^ 5.0作为新闻

The site is heavily reliant on tt_news plugins, so manually replacing them would rather be unpleasant. 该站点严重依赖tt_news插件,因此手动替换它们会令人不快。

Data migration working, plugin migration failing 数据迁移正常,插件迁移失败

Additional Information: 附加信息:

  • Template uses fsc, csc extension disabled 模板使用fsc,禁用csc扩展名

The migration is not that complicated to debug and I wonder why that could happen. 迁移调试起来并不那么复杂,我想知道为什么会发生这种情况。 See https://github.com/ext-news/news_ttnewsimport/blob/master/Classes/Service/Migrate/TtNewsPluginMigrate.php#L84-L85 参见https://github.com/ext-news/news_ttnewsimport/blob/master/Classes/Service/Migrate/TtNewsPluginMigrate.php#L84-L85

Can you check the database what is wrong with the new elements? 您可以检查数据库新元素有什么问题吗? The field CType should be list and the field list_type should be news_pi1 . 字段CType应该是list ,字段list_type应该是news_pi1

Can confirm exactly the same problem. 可以确认完全一样的问题。 Same conditions – 7 LTS, fsc, no csc. 相同条件– 7 LTS,FSC,无CSC。 So I tried to investigate. 所以我试图调查。 UPDATE query for this textmedia record was generated, but without any effect. 生成了针对此textmedia记录的UPDATE查询,但没有任何效果。

Then i tried it manually and i got following error: " Unknown column 'header_position' in 'field list '". 然后,我手动进行了尝试,但出现以下错误:“ 字段列表 ' 中的未知列'header_position '”。 So it is obvious – tt_content table with FSC (Fluid Styled Content) used instead of CSC, doesn't contain "header_position" field. 因此很明显–使用FSC(流体样式内容)而不是CSC的tt_content表不包含“ header_position”字段。 The same goes also for fields "spaceBefore", "spaceAfter" and "section_frame". 对于字段“ spaceBefore”,“ spaceAfter”和“ section_frame”也是如此。 So these fields should be excluded from "$fieldToCopy" in case of using FSC. 因此,在使用FSC的情况下,应将这些字段从“ $ fieldToCopy”中排除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM