Closed Abdull closed 2 years ago
Unfortunately the message is a bit wrong, $GLOBALS['TSFE']
is set. The problem is with the
!$GLOBALS['TSFE']->sys_page instanceof PageRepository
.
The PageRepository namespace in line 13 has changed in Typo3 11 from
TYPO3\CMS\Frontend\Page\PageRepository
to
TYPO3\CMS\Core\Domain\Repository\PageRepository
.
This change solved the problem for me.
TYPO3\CMS\Frontend\Page\PageRepository
is used in several places in the code and they all fail with TYPO3 v11. I don't know what is the proper way solve this in EXT:vhs
and maintain compatibility with < v11.
Unfortunately the message is a bit wrong,
$GLOBALS['TSFE']
is set. The problem is with the!$GLOBALS['TSFE']->sys_page instanceof PageRepository
. The PageRepository namespace in line 13 has changed in Typo3 11 fromTYPO3\CMS\Frontend\Page\PageRepository
toTYPO3\CMS\Core\Domain\Repository\PageRepository
. This change solved the problem for me.
Me too...
Thanks!
Duplicate Issue with pull requests https://github.com/FluidTYPO3/vhs/issues/1737
Using
My TYPO3 frontend pages are configured with a Fluid layout using
<v:page.header.title title="{v:page.info(field:'title')}" />
When visiting the frontend with a TYPO3 template using , the following exception occurs:
So if I assume correctly,
$GLOBALS['TSFE']
is not set, even though the request is in a frontend context.Any ideas?
This exception does not occur for me in TYPO3 10.