Project

General

Profile

Actions

Bug #61861

closed

Frontend throws exception on missing image

Added by Grigori Prokhorov over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-09-24
Due date:
% Done:

0%

Estimated time:
8.00 h
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:
Remote Sprint

Description

With TYPO3 6.2.3 I currently experience the quite annoying issue that whenever there is an image that is referenced by a viewhelper or any other method that uses the TYPO3 API, the absence of said image leads to Exceptions being thrown in the frontend.

I feel that this behaviour is as annyoing as it is dangerous, since it poses the risk of killing off a complete website with a simple editor's mistake.

Although I understand that there is a need for the handling of a situation like this, I think that the Exception should only be thrown if a file is missing which is not located either in "fileadmin" or "uploads" - both of which are more or less user created content.

The exception in question is 1314516809, along with 1319455097

A possible solution might be as simple as adding && !strpos($path, 'fileadmin') && !strpos($path, 'uploads') to the respective conditions to allow for user generated images to be missing.

Possibly, some kind of error message should be put out, but an Exception seems to much.


Files


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #61125: FAL exception if file does not existRejected2014-08-21

Actions
Related to TYPO3 Core - Feature #47919: Catch exceptions in USER TS objectsClosedPhilipp Gampe2013-05-04

Actions
Related to TYPO3 Core - Bug #63955: Fatal Error if Ressource could not be foundClosed2014-12-17

Actions
Related to TYPO3 Core - Bug #71686: Image ViewHelper throws excpetion if image is missingClosedAndreas Allacher2015-11-19

Actions
Actions

Also available in: Atom PDF