Project

General

Profile

Actions

Bug #82575

closed

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

Added by Rémy DANIEL over 6 years ago. Updated over 6 years ago.

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

0%

Estimated time:
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.
Actions #1

Updated by Markus Klein over 6 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?

Actions #2

Updated by Rémy DANIEL over 6 years ago

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

Actions #3

Updated by Markus Klein over 6 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.

Actions #4

Updated by Wouter Wolters over 6 years ago

  • Status changed from Needs Feedback to Closed

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

Actions

Also available in: Atom PDF