Bug #47222
closedUncaught TYPO3 Exception in RTE when using FAL makes the tceform unusable for editors
0%
Description
TYP3 6.0.4
1.) Create a content element that uses rte in the backend.
2.) In the rte create a link to a file or a path that doesn't exist (anymore).
3.) Save and reload the tceform.
You will get this error:
Uncaught TYPO3 Exception TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException thrown in file /var/www/vhosts/domain.com/httpdocs/typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php in line 399. 14 TYPO3\CMS\Core\Resource\Driver\AbstractDriver::getFile("veranstaltungen/seminarpauschalen/")
This makes it virtually impossible to use TYPO3 6.0 as an editor right now, because the editor has no way to fix this minor mistake in the link. You would have to directly edit the database field in an external tool because tceform itself becomes unusable.
Updated by Ben van 't Ende over 11 years ago
I can confirm similar behaviour in 6.1beta2. I changed the path for an image in the RTE, because of failed migration and that throws this error:
#1320575630: Folder migrated/RTE/RTEmagicC_inspiring-flow-head_01.png.png does not exist. (More information)
TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException thrown in file
/home/typo3_src/typo3_src-6.1.0beta2/typo3/sysext/core/Classes/Resource/ResourceStorage.php in line 1638.
Updated by Sebastian Koch over 11 years ago
As a temporary(!!!) work around to fix the corrupted link just change the code in the following way:
// THIS IS line 399 in AbstractDriver.php
public function getFile($identifier) {
<------><------>$fileObject = NULL;
<------><------>if (!$this->fileExists($identifier)) {
// TEMPORARY FIX Remove Exception handling
<------><------>//<---->throw new \TYPO3\CMS\Core\Resource\Exception\FileDoesNot
// RETURN NULL
<------><------>return null;
<------><------>}
<------><------>$fileInfo = $this->getFileInfoByIdentifier($identifier);
<------><------>$fileObject = $this->getFileObject($fileInfo);
<------><------>return $fileObject;
<------>}
Now you can edit the link and then better move back to the original code.
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Closed
Closed as duplicate of #46785
Updated by Gerrit Code Review over 11 years ago
- Status changed from Closed to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20570
Updated by Alexander Opitz over 11 years ago
- Status changed from Under Review to Closed
Updated by Simon Schick about 11 years ago
I got this exception when creating an external link to a page having the same domain-name as the page managed in TYPO3. Because I use seo-friendly URLs, the URL must have looked like a folder to the system ... and because it had a domain that was registered to this TYPO3 instance, it tried to open it as a folder ...
Don't know if this issue should be addressed anywhere else ... I think external links are not worth checking, are they?