Project

General

Profile

Actions

Bug #103116

closed

Oops, an error occurred! Call to a member function getStorage() on bool

Added by Matthias Greiling 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-02-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Since 9.5.46 & 11.5.35
"Oops, an error occurred! Call to a member function getStorage() on bool"
occurs at selecting a file as a link target in CKE as a non admin user. There is no problem as an admin user.


Files

no_admin_user.txt (13.5 KB) no_admin_user.txt Matthias Greiling, 2024-02-14 10:31

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #103122: FileLinkHandler: false return value not taken into accountResolved2024-02-14

Actions
Has duplicate TYPO3 Core - Bug #103150: After Update to 11.5.35 -> Call to a member function getStorage() on bool | Error thrown in file ...FileLinkHandler.phpClosed2024-02-19

Actions
Actions #1

Updated by Matthias Greiling 3 months ago

Matthias Greiling wrote:

Since 9.5.46 & 11.5.36
"Oops, an error occurred! Call to a member function getStorage() on bool"
occurs at selecting a file as a link target in CKE as a non admin user. There is no problem as an admin user.

The file storage is a link at www root - this structure does not work any more

lrwxrwxrwx 1 www-data typowww 30 28. Sep 2015 fileadmin -> /mnt/TYPO3_data/fXXX/fileadmin
lrwxrwxrwx 1 www-data typowww 19 16. Nov 2021 index.php -> typo3_src/index.php
lrwxrwxrwx 1 www-data typowww 28 28. Sep 2015 robots.txt -> /opt/typo3/server/robots.txt
lrwxrwxrwx 1 www-data typowww 15 16. Nov 2021 typo3 -> typo3_src/typo3
-rwxr-xr-x 1 www-data typowww 189 16. Nov 2021 typo3cms
drwxrwsr-x 6 www-data typowww 213 27. Jun 2023 typo3conf
lrwxrwxrwx 1 www-data typowww 26 20. Jan 2022 typo3_src -> /opt/typo3/src/typo3_src-9
lrwxrwxrwx 1 www-data typowww 30 16. Nov 2021 typo3temp -> /mnt/TYPO3_data/fXXX/typo3temp
lrwxrwxrwx 1 www-data typowww 28 28. Sep 2015 uploads -> /mnt/TYPO3_data/fXXX/uploads

Actions #2

Updated by Stig Nørgaard Færch 3 months ago

  • TYPO3 Version changed from 9 to 11
  • PHP Version changed from 7.4 to 8.1

We have this problem as well. But we don't use link on the file storage.
We found this happens when the user tries to create a link to a file in the RTE.

Actions #3

Updated by Gerrit Code Review 3 months ago

  • Status changed from New to Under Review

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

Actions #4

Updated by Gerrit Code Review 3 months ago

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

Actions #5

Updated by Gerrit Code Review 3 months ago

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

Actions #6

Updated by Matthias Greiling 3 months ago

Gerrit Code Review wrote in #note-5:

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

line 126 patch fixes issues in 9.5.46 & 11.5.35

Actions #7

Updated by Mathias Brodala 3 months ago

  • Description updated (diff)
Actions #8

Updated by Markus Klein 3 months ago

  • Has duplicate Bug #103122: FileLinkHandler: false return value not taken into account added
Actions #9

Updated by Gerrit Code Review 3 months ago

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

Actions #10

Updated by Andreas Fernandez 3 months ago

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

Updated by Stefan Terborg 3 months ago

When will this fix become a release? I have several websites running into problems because editors cannot link files.

Actions #12

Updated by Stig Nørgaard Færch 2 months ago

Also waiting for the next release. We get a many support calls, as we have 600 sites which have this problem.
Will there be release soon? Else we will have to patch.

Actions #13

Updated by Andreas Kienast 2 months ago

  • Has duplicate Bug #103150: After Update to 11.5.35 -> Call to a member function getStorage() on bool | Error thrown in file ...FileLinkHandler.php added
Actions

Also available in: Atom PDF