blog icon indicating copy to clipboard operation
blog copied to clipboard

Error: Section "Content" does not exist.

Open nitsan-technologies opened this issue 5 years ago • 3 comments

Bug Report

Section "Content" does not exist.

Prerequisites

  • [x] Issue in TYPO3 v10.x LTS
  • [x] Issue with EXT:blog 9.1.2

Description

  • The typo correction of latest version 9.1.2 in file - template/ListRecentPosts.html<f:section name="Content">
  • Creates the issue Section "Content" does not exist.
  • It cause an issue in already made customisation for older version of blog compatible with TYPO3 v8 and v9.

Expected behavior: Should not cause fatal error "Section "Content" does not exist"

Actual behavior: Getting error "Section "Content" does not exist" at Blog listing plugin

nitsan-technologies avatar Jul 27 '20 12:07 nitsan-technologies

Could it be that you got an overwrite of the blog partials/templates which still uses the "old" <f:section name="content".. In the latest blog version the section is called in uppercase which might be not the case in your overwrite

helsner avatar Aug 21 '20 14:08 helsner

Same problem. No overriding template files. Section Content (capital C) not found.

maximaexchen avatar Apr 03 '21 18:04 maximaexchen

So I have found a "solution" for me. I think this must be a bug. Even if I wonder this doesn’t happen to others. I renamed the sections in blog/Resources/Private/Templates/Page/BlogList.html blog/Resources/Private/Templates/Page/BlogPost.html <f:section name="Main"> to <f:section name="Content">

But other way round if I change “render section” in blog/Resources/Private/Layouts/Default.html to <f:render section="Main" /> it doesn’t work. Strange. Its working, but i think there is something messed up somewhere else.

maximaexchen avatar Apr 04 '21 11:04 maximaexchen