Project

General

Profile

Actions

Bug #104552

open

Error on form setup with source from fileadmin: Resource paths must start with "EXT:"

Added by Paul Klimek 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2024-08-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
form
Complexity:
easy
Is Regression:
Sprint Focus:

Description

If I setup "fileadmin" as source in extension configuration backend, I get a error by sending mails on frontend.
It shoudbe possible to use also images from fileadmin source as described on the examples in backend configuration.


(1/1) #1630089406 TYPO3\CMS\Core\Resource\Exception\InvalidFileException

Resource paths must start with "EXT:" 
in /var/customers/webs/HZFMuelheim/typo3_src-12.4.16/typo3/sysext/core/Classes/Utility/PathUtility.php line 101

     */
    public static function getPublicResourceWebPath(string $resourcePath, bool $prefixWithSitePath = true): string
    {
        if (!self::isExtensionPath($resourcePath)) {
            throw new InvalidFileException('Resource paths must start with "EXT:"', 1630089406);
        }
        $absoluteFilePath = GeneralUtility::getFileAbsFileName($resourcePath);
        if (!str_contains($resourcePath, 'Resources/Public')) {
            if (!str_starts_with($absoluteFilePath, Environment::

Files

Actions #1

Updated by Paul Klimek 3 months ago

Same error comes by setup "PNG" so its really a error of the path.
The same path is setuped for "backend logo" and works fine, so only "Login" >> "Logo" creates this error only by sending mails. Backend Login looks fine, too.

Actions #2

Updated by Riccardo De Contardi 3 months ago

Actions

Also available in: Atom PDF