Issue Bug Closed

#78496Fatal Error: Argument 2 passed to InlineElement::renderMainFields() must be type array

Franz Holzinger 10/29/16, 09:54 updated 01/31/17, 22:32

Description

PHP Catchable Fatal Error: Argument 2 passed to TYPO3\\CMS\\Backend\\Form\\Element\\InlineElement::renderMainFields() must be of the type array, boolean given

TYPO3\CMS\Core\Error\AbstractExceptionHandler->handleException# // TYPO3\CMS\Core\Error\DebugExceptionHandler->echoExceptionWeb#44 // TYPO3\CMS\Core\Error\AbstractExceptionHandler->writeLogEntries#51 // TYPO3\CMS\Core\Error\AbstractExceptionHandler->writeLog#85 // Geithware\DebugMysqlDb\Database\DatabaseConnection->exec_INSERTquery#123 // Geithware\DebugMysqlDb\Database\DatabaseConnection->myDebug#170
INSERT INTO sys_log (userid,type,action,error,details_nr,details,IP,tstamp,workspace) VALUES ('1','5','0','2','0','Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1: PHP Catchable Fatal Error: Argument 2 passed to TYPO3\\CMS\\Backend\\Form\\Element\\InlineElement::renderMainFields() must be of the type array, boolean given, called in /var/www/html/typo3_src-6.2.27/typo3/sysext/backend/Classes/Form/Element/InlineElement.php on line 795 and defined in /var/www/html/typo3_src-6.2.27/typo3/sysext/backend/Classes/Form/Element/InlineElement.php line 492 | TYPO3\\CMS\\Core\\Error\\Exception thrown in file /var/www/html/typo3_src-6.2.27/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 101. Requested URL: http://localhost/typo3/ajax.php?ajaxID=t3lib_TCEforms_inline%%3A%%3AgetRecordDetails&ajaxToken=e1b62f094b3db0157a7bbecff6492062e803c573','127.0.0.1','1477727275','0')
'article_uid' => array (
    'exclude' => 1,
    'label' => 'LLL:EXT:' . TT_PRODUCTS_EXT . '/locallang_db.xml:tt_products.article_uid',
    'config' => array (
        'type' => 'inline',
        'appearance' =>
            array (
                'collapseAll' => TRUE,
                'newRecordLinkAddTitle' => TRUE,
                'useCombination' => TRUE
            ),
        'foreign_table' => 'tt_products_products_mm_articles',
        'foreign_field' => 'uid_local',
        'foreign_sortby' => 'sorting',
        'foreign_label' => 'uid_foreign',
        'foreign_selector' => 'uid_foreign',
        'foreign_unique' => 'uid_foreign',
        'maxitems' => 1000
    ),
),
    article_uid int(11) DEFAULT '0' NOT NULL,
#
# Table structure for table 'tt_products_products_mm_articles'
#
CREATE TABLE tt_products_products_mm_articles (
    uid int(11) NOT NULL auto_increment,
    pid int(11) DEFAULT '0' NOT NULL,
    tstamp int(11) DEFAULT '0' NOT NULL,
    crdate int(11) DEFAULT '0' NOT NULL,
    deleted tinyint(4) DEFAULT '0' NOT NULL,
    hidden tinyint(4) DEFAULT '0' NOT NULL,
    uid_local int(11) DEFAULT '0' NOT NULL,
    uid_foreign int(11) DEFAULT '0' NOT NULL,
    tablenames varchar(30) DEFAULT '' NOT NULL,
    sorting int(10) DEFAULT '0' NOT NULL,
    articlesort int(10) DEFAULT '0' NOT NULL,

    PRIMARY KEY (uid),
    KEY uid_local (uid_local),
    KEY uid_foreign (uid_foreign),
    KEY parent (pid)
);

This TCA did work fine until TYPO3 6.1.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.