Bug #71361

fluid link.typolink crashes in Backend with page links

Added by Christian Weiske over 3 years ago. Updated about 2 years ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2015-11-06
Due date:
% Done:

0%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When using Fluid's <f:link.typolink> in backend preview of content elements, I get a fatal error when the parameter attribute is a page ID.

It works fine for full URLs or absolute paths like "http://example.org/" or "/example".

Error message:

Fatal error: Call to a member function getPage_noCheck() on null in .../typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php on line 6094


Related issues

Related to TYPO3 Core - Story #73183: Removal of frontend simulation in all ViewHelpers Under Review 2016-02-08

History

#1 Updated by Christian Weiske over 3 years ago

May be related to #66855 and #67556.

#2 Updated by Christian Weiske over 3 years ago

Relative paths like foo lead to:

Fatal error: Call to a member function getPageIdFromAlias() on null in .../typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php on line 6301

#3 Updated by Christian Weiske about 3 years ago

I've made a custom view helper that I use instead of <f:link.typolink>; see http://p.cweiske.de/301

#4 Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

#5 Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

#6 Updated by Gerrit Code Review almost 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

#7 Updated by Gerrit Code Review over 2 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

#8 Updated by Gerrit Code Review about 2 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

Also available in: Atom PDF