-
Notifications
You must be signed in to change notification settings - Fork 228
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
BUG: Exception when "<v:page.rootline>" is used and pageUid doesn't exist #1905
Comments
Correct this issue: FluidTYPO3#1905
Correct this issue: FluidTYPO3#1905
Correct this issue: FluidTYPO3#1905
Correct this issue: FluidTYPO3#1905
I would argue that in this case it's desirable to get an exception and undesirable to suppress all warning/error output when a non-existing page is passed. Otherwise you're just left clueless about why you get an empty root line. I suggest using |
I made the decision to reject this - it's undesirable to have this API suppress warnings about unreadable pages. See #1906 (comment). |
I have checked that the bug exists in the
dev-development
branchYes.
I have checked that there are no already open issues or recently closed issues about this bug
Yes.
Describe the bug
When you're trying to get the root line of a page that doesn't exist, a
PageNotFoundException
exception is thrown:(1/1) #1343589451 TYPO3\CMS\Core\Exception\Page\PageNotFoundException
To Reproduce
Steps to reproduce the behavior:
with
{linkNotInDb}
having a page Uid that doesn't exist in DB.Expected behavior
No
PageNotFoundException
exception should be thrownAdditional context
In file vhs/Classes/Service/PageService.php, method getRootLine() the call to
$rootLineUtility->get()
must be surrounded bytry{} catch()
The text was updated successfully, but these errors were encountered: