EE 2.9.0 Matrix 2.6
I have a template with a channel form in it, nothing else (I've stripped it down for testing).
{exp:channel:form
channel="test_channel_form"
return="test-return"
}
<input type="text" name="title" id="title" value="{title}" onkeyup="liveUrlTitle();">
<input type="submit" value="Submit">
{/exp:channel:form}
This is using a test channel field group with no custom fields. It returns to the correct page on submission and an entry is created.
Changing the channel to use another field group I run into problems. The field group has 5 fields, 2 textarea fields and 3 Matrix fields. I only need the text area fields in this channel form.
My template code is
{exp:channel:form
channel="test_channel_form"
return="test-return"
}
<input type="text" name="title" id="title" value="{title}" onkeyup="liveUrlTitle();">
{field:news_summary}
{field:news_body}
<input type="submit" value="Submit">
{/exp:channel:form}
An entry is created OK but it doesn't return to the specified page on submission it just stays on the same page and I get the following errors.
A PHP Error was encountered Severity: Warning Message: array_keys() expects parameter 1 to be array, null given Filename: matrix/ft.matrix.php Line Number: 2259
A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: matrix/ft.matrix.php Line Number: 2259
A PHP Error was encountered Severity: Warning Message: array_keys() expects parameter 1 to be array, null given Filename: matrix/ft.matrix.php Line Number: 2259
A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: matrix/ft.matrix.php Line Number: 2259
A PHP Error was encountered Severity: Warning Message: array_keys() expects parameter 1 to be array, null given Filename: matrix/ft.matrix.php Line Number: 2259
A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: matrix/ft.matrix.php Line Number: 2259
A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /Users/timprint/Dropbox/Sites/imagineering/imageesys47836/codeigniter/system/core/Exceptions.php:170) Filename: libraries/Functions.php Line Number: 446