Project

General

Profile

Actions

Bug #71361

closed

fluid link.typolink crashes in Backend with page links

Added by Christian Weiske over 8 years ago. Updated about 4 years ago.

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

0%

Estimated time:
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 1 (0 open1 closed)

Related to TYPO3 Core - Story #73183: Removal of frontend simulation in all ViewHelpersClosed2016-02-08

Actions
Actions #1

Updated by Christian Weiske over 8 years ago

May be related to #66855 and #67556.

Actions #2

Updated by Christian Weiske over 8 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

Actions #3

Updated by Christian Weiske about 8 years ago

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

Actions #4

Updated by Gerrit Code Review almost 8 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

Actions #5

Updated by Gerrit Code Review almost 8 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

Actions #6

Updated by Gerrit Code Review almost 8 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

Actions #7

Updated by Gerrit Code Review over 7 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

Actions #8

Updated by Gerrit Code Review about 7 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

Actions #9

Updated by Susanne Moog about 4 years ago

  • Status changed from Under Review to Needs Feedback

Is this still an issue in current TYPO3 versions?

Actions #10

Updated by Georg Ringer about 4 years ago

  • Status changed from Needs Feedback to Closed

tested in 10 with

<f:link.typolink parameter="31">example</f:link.typolink>

and this generates a link as in the frontend, therefore closing this issue.

Actions

Also available in: Atom PDF