FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
190 stars 229 forks source link

Call to protected method TYPO3\CMS\Core\Domain\Repository\PageRepository::init() from context 'FluidTYPO3\Vhs\Service\PageService' #1782

Closed dennismetz closed 1 year ago

dennismetz commented 2 years ago

In the page module I get the following error message when I try to open some pages:

Call to protected method TYPO3\CMS\Core\Domain\Repository\PageRepository::init() from context 'FluidTYPO3\Vhs\Service\PageService'

VHS 6.1.0 / 6.1.1 (works fine in 6.0.5) TYPO3 10.4.28 PHP 7.4.6

jwittorf commented 2 years ago

Same overhere, maybe this indicator can help: I'm calling {v:page.rootline(pageUid: '{pageUid}')} inside the <f:section name="Preview"></f:section>

/Edit: same occurs if I call {v:page:info()} in the preview-section. The docs actually say Does not work in the TYPO3 backend. for this ViewHelper.

NamelessCoder commented 1 year ago

Solved in current development branch. The init() method will only be called on TYPO3 8.7.