Project

General

Profile

Actions

Bug #102611

open

TYPO3\CMS\Core\Imaging\IconFactory::getIconForResource(): Argument #1 ($resource) must be of type TYPO3\CMS\Core\Resource\ResourceInterface, null given, called in /var/www/html/vendor/typo3/cms-core/Classes/ViewHelpers/IconForResourceViewHelper.php on lin

Added by Vivek Solanki 5 months ago. Updated 5 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-12-06
Due date:
% Done:

0%

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

Description

error while selecting Entry point [identifier] it shows TYPO3\CMS\Core\Imaging\IconFactory::getIconForResource(): Argument #1 ($resource) must be of type TYPO3\CMS\Core\Resource\ResourceInterface, null given, called in /var/www/html/vendor/typo3/cms-core/Classes/ViewHelpers/IconForResourceViewHelper.php on line 72

is there anything from my side to do?


Files

Actions #1

Updated by Garvin Hicking 5 months ago

I just tried to reproduce in v12 and v13 and couldn't.

Created a filemount record, and if I try to save it with an empty identifier, I get a javascript validation error. Even if I disable the javascript error and submit an empty identifier it does work without showing the error you copied.

Are you using the most recent TYPO3 release for v12? Any custom or third-party-extensions that might expand your sys_filemount databasetable/tca?

Also, the full stacktrace of the error (with all output, be sure to strip any possible credentials or sensitive information) would be needed - plus a description what exactly you enter where, and what exactly triggers the error. The shortest way to reproduce the error (for you).

Actions #2

Updated by Vivek Solanki 5 months ago

The solution was found in Is default storage, the default storage folder was not specified in my project

Thank you for the quick response

Actions #3

Updated by Stefan Froemken 5 months ago

The question is: How you want to solve that issue?

Currently, I prefer adding a new check in "Environment Check" of InstallTool. What do you think?

Actions

Also available in: Atom PDF