【问题标题】:"Flux could not extract a Flux definition" error in fluidbootstraptheme after migration from fluidcontent to flux 9.2.0 and composer TYPO3 8.7 to 9.5从流体内容迁移到通量 9.2.0 和作曲家 TYPO3 8.7 到 9.5 后,流体引导主题中的“通量无法提取通量定义”错误
【发布时间】:2020-02-07 01:34:48
【问题描述】:

问题

我已将 composerTYPO3 8.7 升级到 TYPO3 9.5 并卸载 fluidcontent 并迁移到使用 flux。这是我的扩展版本...

  • flux 9.2.0
  • fluidpages 5.0.0
  • vhs 5.2.0
  • fluidbootstraptheme (使用最新版本并在本地修复了一些错误,因为它现在没有维护)

现在我收到此错误...

Flux 无法从“/home/username/public_html/typo3conf/ext/fluidbootstraptheme/Resources/Private/Templates/Content/NavigationList.html”中提取 Flux 定义。检查文件是否存在并包含必要的通量:配置部分“配置”中的表格

代码:NavigationList.html 中的配置部分

    <f:section name="Configuration">
        <flux:form id="navigationlist" options="{group: 'Navigation', sorting: '50', icon: '{f:uri.resource(path: \'Icons/Content/NavigationList.png\')}'}">
            <flux:form.sheet name="display">
                <flux:field.checkbox name="addWell"/>
                <flux:field.checkbox name="zeroPadding"/>
                <flux:field.input name="class"/>
            </flux:form.sheet>
            <flux:form.sheet name="items">
                <flux:form.section name="items">
                    <flux:form.object name="header">
                        <flux:field.input name="text"/>
                        <flux:field.input name="class"/>
                    </flux:form.object>
                    <flux:form.object name="item">
                        <flux:field.input name="text"/>
                        <flux:field.input name="tooltip"/>
                        <flux:field.input name="icon" eval="trim">
                            <flux:wizard.link activeTab="file"/>
                        </flux:field.input>
                        <flux:field.input name="target">
                            <flux:wizard.link activeTab="page"/>
                        </flux:field.input>
                        <flux:field.input name="class"/>
                    </flux:form.object>
                    <flux:form.object name="divider">
                        <flux:field.input name="class"/>
                    </flux:form.object>
                </flux:form.section>
            </flux:form.sheet>
        </flux:form>
    </f:section>

我已经做了什么

求助,上面代码的配置部分有什么问题?

【问题讨论】:

    标签: typo3 fluid typo3-9.x


    【解决方案1】:

    这是我从 Claus Due(主要 Flux 开发人员)那里得到的关于 Flux 频道中 TYPO3 Slack 的评论...

    错误 [Flux 无法提取 Flux 定义...] 通常意味着无法正确解析模板文件本身(可能位于 Configuration 部分之外的其他位置)。如果您制作一个特别的 FLUIDTEMPLATE 打字稿对象来呈现该文件,您可能会看到更具体的错误。

    虽然今天对你没有帮助,但该特定错误消息将在下一个版本的 Flux 中删除,“真正的”错误将被传递。

    当 Flux 尝试解析模板时,将 TYPO3“上下文”设置为 Development 会导致任何 Fluid 解析错误(如无效参数等)作为异常抛出。

    因此,作为对此的回应,我在.env 中设置了TYPO3_CONTEXT='Development',然后能够看到更多有意义的错误。事实证明我需要做这两件事,当然在其他人的特定情况下可能会有所不同,因为它是导致问题的其他扩展。

    1. fluidbootstraptheme 中使用的已弃用的流体声明&lt;f:case default="true"&gt; 更新为&lt;f:defaultCase&gt;
    2. flux:grid.column 需要 colPos,在某些情况下 fluidboostraptheme 扩展中缺少它

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-06
      • 1970-01-01
      • 2017-07-14
      • 2017-02-19
      • 2014-05-02
      • 2021-09-01
      • 2016-02-27
      相关资源
      最近更新 更多