Actions
Bug #81909
closedError when editing a content which contains a link to a deleted record
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2017-07-18
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Hi,
On TYPO3 8.7.3, when you create a record (tx_news for example), create a link using LinkHandler on a Content Element, delete the news record and then edit the Content Element, an error is thrown:
Argument 2 passed to TYPO3\CMS\Core\Imaging\IconFactory::getIconForRecord() must be of the type array, null given, called in .../typo3_src/typo3/sysext/backend/Classes/Form/Element/InputLinkElement.php on line 399
This is the configuration I'm using:
TCEMAIN.linkHandler.tx_news { handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler configuration { table = tx_news_domain_model_news } scanBefore = page }
Couldn't find any configuration to avoid this problem, so I guess it's a bug on core.
This is the flexform field:
<link> <TCEforms> <label>Link</label> <config> <type>input</type> <eval>trim</eval> <wizards type="array"> <link type="array"> <type>popup</type> <title>LLL:EXT:cms/locallang_ttc.xlf:header_link_formlabel</title> <icon>link_popup.gif</icon> <module type="array"> <name>wizard_element_browser</name> <urlParameters type="array"> <mode>wizard</mode> </urlParameters> </module> <JSopenParams>height=500,width=600,status=0,menubar=0,scrollbars=1</JSopenParams> </link> </wizards> </config> </TCEforms> </link>
Updated by Georg Ringer about 7 years ago
- Category set to Site Handling, Site Sets & Routing
- Status changed from New to Accepted
- Assignee set to Georg Ringer
- Complexity set to easy
Updated by Matthias Kappenberg over 6 years ago
Is this problem solved?
because it get same error in v 8.7.9
Updated by Tymoteusz Motylewski over 6 years ago
- Related to Bug #83412: Uncaught DatabaseRecordException if foreign record is deleted added
Updated by Tymoteusz Motylewski over 6 years ago
Was it solved with https://review.typo3.org/#/c/55197/ or is it a different issue?
Updated by Georg Ringer over 6 years ago
- Status changed from Accepted to Resolved
could not reproduce anymore, therefore set to solved. if you still can reproduce it, please open a new issue and mention this one.
Actions