Project

General

Profile

Actions

Bug #102611

closed

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 8 months ago. Updated about 1 month ago.

Status:
Closed
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 8 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 8 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 7 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 #4

Updated by Vivek Solanki about 2 months ago

It would be great if we could get some information about filemount in the environment info. You guys can close this issue.

Actions #5

Updated by Georg Ringer about 1 month ago

  • Status changed from New to Closed

closing issue as requested

Actions

Also available in: Atom PDF