Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v.6.1.2. error in page type 6 - backend user #1794

Closed
birgitberlin opened this issue Jul 18, 2022 · 1 comment
Closed

v.6.1.2. error in page type 6 - backend user #1794

birgitberlin opened this issue Jul 18, 2022 · 1 comment

Comments

@birgitberlin
Copy link

birgitberlin commented Jul 18, 2022

#1527777868 TYPO3\CMS\Core\Context\Exception\AspectNotFoundException

No aspect named "frontend.preview" found.

at TYPO3\CMS\Core\Context\Context->getPropertyFromAspect('frontend.preview', 'isPreview')
in /v.../public/typo3conf/ext/vhs/Classes/ViewHelpers/Resource/Record/AbstractRecordResourceViewHelper.php line 173

    $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($table);

    if (class_exists('\\TYPO3\\CMS\\Frontend\\Aspect\\PreviewAspect')) {
        //TYPO3 version >= 10
        $fePreview = GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.preview', 'isPreview');
    } else {
        $fePreview = (bool)(isset($GLOBALS['TSFE']) && $GLOBALS['TSFE']->fePreview);
    }
    if ($fePreview) {

TYPO3 11.5.12
vhs 6.1.2

error in page type 6 - backend module Web - ViewpageView

@birgitberlin
Copy link
Author

as in #1714 suggested:
A quick workaround is to replace:
{v:content.resources.fal(field: 'images', uid: '{record.uid}')}
By
{v:content.resources.fal(field: 'images', record: '{record}')}

fixes the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant