Project

General

Profile

Actions

Bug #103157

open

Image referenced by `EXT:` does not work in TYPO3 subfolder installation

Added by Ayke Halder about 2 months ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Start date:
2024-02-20
Due date:
% Done:

0%

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

Description

In a composer-based TYPO3 subfolder installation ( e.g. BE https://example.org/subfolder/typo3 ) images refrenced by `EXT:` are not working.

<f:image src="EXT:example/Resources/Public/Images/test.svg" />
#1509741914 TYPO3Fluid\Fluid\Core\ViewHelper\Exception

Unable to render image tag in "pages:123": File /subfolder/_assets/abcdef0123456789abcdef0123456789/Images/test.svg does not exist.

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #95543: Processed files of static images are stored outside document rootClosed2021-10-08

Actions
Related to TYPO3 Core - Bug #101911: TYPO3 composer mode does not properly respect installations in a subdirectoryUnder Review2023-09-13

Actions
Actions #1

Updated by Ayke Halder about 2 months ago

  • Related to Bug #95543: Processed files of static images are stored outside document root added
Actions #2

Updated by Gerrit Code Review about 2 months ago

  • Status changed from New to Under Review

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

Actions #3

Updated by Ayke Halder about 2 months ago

  • Description updated (diff)
Actions #4

Updated by Benjamin Franzke about 2 months ago

Hm, the fix itself it fine, but I guess you'll run into alot of issues with that setup, since the subfolder you're referring to is probably a symlink to some/projectpath/public.

That means that `Environment::getPublicPath()` will be wrong (pointing to `some/projectpath/public`) and thus basically every place that uses `Environment::getPublicPath()` is broken for you.

Can you canfirm that you're using such a symlink to the public folder?
(Please share some more details, composer.json and directory structure)

Actions #5

Updated by Gerrit Code Review about 2 months ago

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

Actions #6

Updated by Ayke Halder about 2 months ago · Edited

@Benjamin Franzke Thank you for looking into this!

I'm not really using symlinks, instead I use this special configuration in composer.json:

{
  "extra": {
    "typo3/cms": {
      "web-dir": "public/subfolder" 
    }
}

composer.json [click to open]

Directory structure [click to open]

Actions #7

Updated by Garvin Hicking about 1 month ago

This could be the problematic "subdirectory in composer mode" issue with some other effects:

https://forge.typo3.org/issues/101911

I grouped a few similar sounding issues there.

Actions #8

Updated by Garvin Hicking about 1 month ago

  • Related to Bug #101911: TYPO3 composer mode does not properly respect installations in a subdirectory added
Actions

Also available in: Atom PDF