Project

General

Profile

Actions

Bug #31778

closed

Fatal error: Call to a member function getValue() on a non-object

Added by Philipp Gampe about 13 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2011-11-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

( ! ) Fatal error: Call to a member function getValue() on a non-object in typo3/sysext/form/Classes/Domain/Model/Attributes/Attributes.php on line 154
Call Stack
#    Time    Memory    Function    Location
1    0.0001    653840    {main}( )    ../index.php:0
2    0.0008    851528    require( 'typo3/sysext/cms/tslib/index_ts.php' )    ../index.php:84
3    0.1211    26456768    tslib_fe->INTincScript( )    ../index_ts.php:415
4    0.1211    26457264    tslib_fe->INTincScript_process( )    ../class.tslib_fe.php:3145
5    0.1221    26649896    tslib_cObj->COBJ_ARRAY( )    ../class.tslib_fe.php:3205
6    0.1222    26649976    tslib_content_ContentObjectArray->render( )    ../class.tslib_content.php:738
7    0.1222    26650056    tslib_cObj->cObjGet( )    ../class.tslib_content_contentobjectarray.php:48
8    0.1222    26650648    tslib_cObj->cObjGetSingle( )    ../class.tslib_content.php:548
9    0.1222    26650984    tx_form_Controller_Form->cObjGetSingleExt( )    ../class.tslib_content.php:594
10    0.1242    27061096    tx_form_Controller_Form->execute( )    ../Form.php:143
11    0.1253    27262064    tx_form_Controller_Form->renderConfirmation( )    ../Form.php:161
12    0.1325    28065152    tx_form_View_Confirmation->get( )    ../Form.php:272
13    0.1326    28067296    tx_form_View_Confirmation_Element_Abstract->render( )    ../Confirmation.php:98
14    0.1328    28068056    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:197
15    0.1328    28068856    tx_form_View_Confirmation_Element_Abstract->render( )    ../Abstract.php:95
16    0.1328    28069328    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:197
17    0.1328    28069880    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:164
18    0.1328    28070384    tx_form_View_Confirmation_Element_Container->getChildElements( )    ../Abstract.php:104
19    0.1330    28083376    tx_form_View_Confirmation_Element_Abstract->render( )    ../Container.php:72
20    0.1330    28084000    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:197
21    0.1330    28084552    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:164
22    0.1331    28085056    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:164
23    0.1335    28111520    tx_form_View_Confirmation_Element_Abstract->render( )    ../Abstract.php:95
24    0.1335    28111992    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:197
25    0.1335    28112544    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:164
26    0.1335    28113048    tx_form_View_Confirmation_Element_Container->getChildElements( )    ../Abstract.php:104
27    0.1337    28124856    tx_form_View_Confirmation_Element_Abstract->render( )    ../Container.php:72
28    0.1338    28125448    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:197
29    0.1338    28126000    tx_form_View_Confirmation_Element_Abstract->parseXML( )    ../Abstract.php:164
30    0.1341    28138344    tx_form_View_Confirmation_Element_Abstract->getInputValue( )    ../Abstract.php:142
31    0.1341    28138424    tx_form_Domain_Model_Element_Abstract->getAttributeValue( )    ../Abstract.php:343
32    0.1341    28138424    tx_form_Domain_Model_Attributes_Attributes->getValue( )    ../Abstract.php:318

I tried to test #31711 and created two simple forms. On hitting submit, this exception happens.

Form 1 is:

prefix = tx_form
confirmation = 1
postProcessor {
    1 = mail
    1 {
        recipientEmail = phil@localhost
        senderEmail = phil@localhost
    }
}
10 = FIELDSET
10 {
    legend {
        value = Form 1
    }
    10 = TEXTLINE
    10 {
        name = name
        label {
            value = Form1 Text
        }
    }
    20 = SUBMIT
    20 {
        name = 4
        value = Submit form
    }
}
rules {
    1 = email
    1 {
        breakOnError = 0
        showMessage = 1
        message = (john.doe@domain.com)
        error = This is not a valid email address
        element = name
    }
}

and Form 2 is:

prefix = tx_form2
confirmation = 1
postProcessor {
    1 = mail
    1 {
        recipientEmail = phil@localhost
        senderEmail = phil@localhost
    }
}
10 = FIELDSET
10 {
    legend {
        value = Form 2
    }
    10 = TEXTLINE
    10 {
        name = name2
        label {
            value = Form2 Text
        }
    }
    20 = SUBMIT
    20 {
        name = 4
        value = Submit form
    }
}
rules {
    1 = digit
    1 {
        breakOnError = 0
        showMessage = 1
        message = Use digit characters
        error = The value contains not only digit characters
        element = name2
    }
}


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #31652: Fatal error: Call to a member function getValue() [Attributes.php line 154]Closed2011-11-07

Actions
Actions

Also available in: Atom PDF