Bug #47222
closed
Uncaught TYPO3 Exception in RTE when using FAL makes the tceform unusable for editors
Added by Christian Eßl over 11 years ago.
Updated about 11 years ago.
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.
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.
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.
- Status changed from New to Closed
- Status changed from Closed to Under Review
- Status changed from Under Review to Closed
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?
Also available in: Atom
PDF