Project

General

Profile

Actions

Bug #78496

closed

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

Added by Franz Holzinger about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2016-10-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

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.


Files

Actions #1

Updated by Franz Holzinger about 8 years ago

  • Sprint Focus set to Stabilization Sprint

This happens when a product is connected with a not present article.

article_uid = 1;
uid_local = 9;
uid_foreign = 10;

There is no article with uid=10.

Actions #3

Updated by Nicole Cordes about 8 years ago

  • Status changed from New to Needs Feedback

Hi Franz,

Can you please give detailed information how to reproduce your issue? Have you tested on a more current system like 7.6 oer 8? Thank you for your help.

Actions #4

Updated by Riccardo De Contardi almost 8 years ago

  • Status changed from Needs Feedback to Closed

No feedback since 90 days > closing.

If you think that this is the wrong decision or you have more information about how to reproduce it, please reopen it or open a new issue adding this one as reference.

Thank you!

Actions

Also available in: Atom PDF