Project

General

Profile

Actions

Bug #81909

closed

Error when editing a content which contains a link to a deleted record

Added by José Ricardo over 7 years ago. Updated about 6 years ago.

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>

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #83412: Uncaught DatabaseRecordException if foreign record is deletedClosedAndreas Kienast2017-12-22

Actions
Actions #1

Updated by José Ricardo over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Georg Ringer over 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
Actions #3

Updated by Matthias Kappenberg almost 7 years ago

Is this problem solved?
because it get same error in v 8.7.9

Actions #4

Updated by Markus Klein almost 7 years ago

  • Assignee deleted (Georg Ringer)
Actions #5

Updated by Tymoteusz Motylewski almost 7 years ago

  • Related to Bug #83412: Uncaught DatabaseRecordException if foreign record is deleted added
Actions #6

Updated by Tymoteusz Motylewski almost 7 years ago

Was it solved with https://review.typo3.org/#/c/55197/ or is it a different issue?

Actions #7

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 #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF