Project

General

Profile

Actions

Bug #103157

closed

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

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

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

100%

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 4 (1 open3 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 subdirectoryClosed2023-09-13

Actions
Related to TYPO3 Core - Bug #104460: Asset ViewHelper does not take config.forceAbsoluteUrls into accountUnder Review2024-07-23

Actions
Has duplicate TYPO3 Core - Bug #100661: Wrong resource links to symlinked _assets unsing base with appending path segmentClosed2023-04-19

Actions
Actions #1

Updated by Ayke Halder 9 months ago

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

Updated by Gerrit Code Review 9 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 9 months ago

  • Description updated (diff)
Actions #4

Updated by Benjamin Franzke 9 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 9 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 9 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 8 months 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 8 months ago

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

Updated by Markus Klein 7 months ago

  • Has duplicate Bug #100661: Wrong resource links to symlinked _assets unsing base with appending path segment added
Actions #10

Updated by Georg Ringer 5 months ago

  • Status changed from Under Review to Closed

closed in favor of #101911

Actions #11

Updated by Gerrit Code Review about 2 months ago

  • Status changed from Closed to Under Review

Patch set 3 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 #12

Updated by Gerrit Code Review about 2 months ago

Patch set 4 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 #13

Updated by Gerrit Code Review about 2 months ago

Patch set 5 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 #14

Updated by Gerrit Code Review about 2 months ago

Patch set 6 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 #15

Updated by Gerrit Code Review about 2 months ago

Patch set 7 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 #16

Updated by Gerrit Code Review about 2 months ago

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

Actions #17

Updated by Ayke Halder about 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #18

Updated by Ayke Halder about 1 month ago

  • Related to Bug #104460: Asset ViewHelper does not take config.forceAbsoluteUrls into account added
Actions #19

Updated by Benni Mack about 1 month ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF