Bug #70423

Epic #69955: Optimize new Extbase/ Fluid based rewrite of EXT:form

Warning: array_fill_keys() expects parameter 1 to be array, null given in /form/Classes/Domain/Repository/TypoScriptRepository.php line 96

Added by Frans Saris about 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2015-10-06
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When using this form configuration I get an warning (exception in development context).

prefix = tx_form
confirmation = 1
postProcessor {
    1 = mail
    1 {
        recipientEmail = info@domain.com
        senderEmail = info@domain.com
        subject = Contact form
    }
}
10 = TEXTLINE
10 {
    name = company
    label {
        value = Company
    }
}
20 = TEXTLINE
20 {
    name = name
    placeholder = Your name
    label {
        value = Name
    }
}
30 = TEXTLINE
30 {
    name = email
    placeholder = Your emailaddres
    label {
        value = Emailaddress
    }
}
40 = SELECT
40 {
    name = Inform me about
    label {
        value = Please send me some info
    }
    10 = OPTION
    10 {
        data = Webdesign
    }
    20 = OPTION
    20 {
        data = TYPO3
    }
    30 = OPTION
    30 {
        data = Something else
    }
}
50 = TEXTAREA
50 {
    cols = 40
    rows = 5
    name = message
    label {
        value = Message
    }
}
60 = SUBMIT
60 {
    class = btn
    name = 5
    value = Send
}
rules {
    1 = required
    1 {
        breakOnError = 0
        showMessage = 1
        message = Required
        error = This field is required
        element = name
    }
    2 = email
    2 {
        breakOnError = 0
        showMessage = 1
        message = (john.doe@domain.com)
        error = This is not a valid email address
        element = email
    }
}

Associated revisions

Revision f8ae5413 (diff)
Added by Frans Saris about 4 years ago

[BUGFIX] Check if value is array to prevent a PHP warning

Change-Id: I81dc99c9961ab817ad16a44c53f4c150e2bedba7
Resolves: #70423
Releases: master
Reviewed-on: http://review.typo3.org/43842
Reviewed-by: Ralf Zimmermann <>
Tested-by: Ralf Zimmermann <>
Reviewed-by: Bjoern Jacob <>
Tested-by: Bjoern Jacob <>
Reviewed-by: Wouter Wolters <>
Tested-by: Wouter Wolters <>

History

#1 Updated by Gerrit Code Review about 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43842

#2 Updated by Ralf Zimmermann about 4 years ago

  • Category set to Form Framework

#3 Updated by Frans Saris about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#4 Updated by Riccardo De Contardi about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF