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

Page goes down if the 'sys_page' is empty #2

Open
KeLeKaPe opened this issue Nov 16, 2022 · 0 comments
Open

Page goes down if the 'sys_page' is empty #2

KeLeKaPe opened this issue Nov 16, 2022 · 0 comments

Comments

@KeLeKaPe
Copy link

This line of code sometimes gives an error, and thus breaking the site entirely.

$rootline = $GLOBALS['TSFE']->sys_page->getRootLine($targetPid);

The error is:
Uncaught TYPO3 Exception: Call to a member function getRootLine() on string | Error thrown in file /var/www/virtual/bolius/versioned/extensions/bolius_staticdomain/Classes/Service/StaticDomainService.php in line 114.

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