Bug #82575

exception thrown in `f:uri.resource` with `absolute="true"`

Added by DANIEL Rémy over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-09-28
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi

TYPO3 8.7.7

f:uri.resource with absolute="true" throws this exception:

Uncaught TYPO3 Exception
Call to undefined method TYPO3\CMS\Extbase\Mvc\Request::getBaseUri() 

Error thrown in file
/www/www.example.com/site/vendor/typo3/cms/typo3/sysext/fluid/Classes/ViewHelpers/Uri/ResourceViewHelper.php in line 74.

History

#1 Updated by Markus Klein over 2 years ago

  • Status changed from New to Needs Feedback
TYPO3\CMS\Extbase\Mvc\Request
seems weird, this should be a
Web\Request
instead.

Where does this error actually happen?

#2 Updated by DANIEL Rémy over 2 years ago

This error happens in fluid/Classes/ViewHelpers/Uri/ResourceViewHelper.php in line 74, in FE (not Cli, not BE)

#3 Updated by Markus Klein over 2 years ago

I just tested this in a current project with

<img src="{f:uri.resource(path: 'Images/creditcards.png', absolute: 1)}" width="105" height="35" alt="Credit Cards" />

Works without issues.

#4 Updated by Wouter Wolters about 2 years ago

  • Status changed from Needs Feedback to Closed

Tested myself, works as expected. Closing this for lack of feedback.

Also available in: Atom PDF