Bug #54394
closed
Editing templavoila Template Objects not working
Added by Dragan Tomic almost 11 years ago.
Updated about 6 years ago.
Description
You can not edit templavoila Template Object if his preview icon is missing!
You can not edit templavoila Template Object if his preview icon is missing!
Bug is in TYPO3\CMS\Backend\Utility\BackendUtility -> thumbCode() method.
In this part, if you don't get a file (file is missing) next line is trying to read File extension and throws an error!
$fileName = trim($uploaddir . '/' . $theFile, '/');
$fileObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($fileName);//if file is missing fileObject is empty
$fileExtension = $fileObject->getExtension(); // and this throws exception
Just need to double check if $fileObject is empty and then go further.
if($fileObject) {
$fileExtension = $fileObject->getExtension();
.......
}
Bug found in versions: 6.1.4-dev and 6.1.5
- Category changed from Backend User Interface to Backend API
- Target version set to next-patchlevel
This is fixed in 6.2, but definitely missing in 6.1!
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF