<p>There's about a 99% chance you're bumping into your php.ini file's <a href="http://php.net/manual/en/info.configuration.php#ini.max-input-vars">max_input_vars</a> value and/or its <a href="http://php.net/manual/en/ini.core.php#ini.post-max-size">post_max_size</a>. If you bump those to higher values, it should start working as expected.</p>

<p>Note that you may have to restart your web server for the settings to take affect.</p>

CC BY-SA 3.0
2015-04-08T18:51:01.997Z
Brad for president.
Anna_MediaGirl
CC BY-SA 3.0
2016-02-11T18:34:18.697Z
For nginx users, make sure you run service php5-fpm reload before you restart nginx, the changes did not take affect until I did that. Thanks Brad!
Brad
CC BY-SA 3.0
2016-12-08T18:52:20.530Z
This solved it! Thanks a lot! I would have never thought of this!
Luke
CC BY-SA 3.0
2018-01-30T14:50:03.263Z
I set post_max_size to 50 and max_input_vars to 500 . I thoughtthis is enough. We still have problems here...
Simon Franzen
CC BY-SA 3.0
2018-01-30T14:56:38.583Z
Solved it... we have a large Matrix field and I increased max_input_vars to to 1200
Simon Franzen
CC BY-SA 3.0
2014-09-30T09:24:11.310Z
Cheers Brad, that's fixed the problem, works like a charm.
Matthew Woods
CC BY-SA 3.0
2014-09-26T18:55:03.973Z
2014-09-28T22:27:05.623Z
2014-09-28T22:27:05.623Z
Brad Bell
<p>I have a matrix field with around 26 block types with between 2-6 fields on each. It seems like I've hit a limit and cannot add any more fields to any of the block types. I can add a field if i delete one.</p>

<p>I get the following error "Undefined index: type"</p>

<p>/var/www/dev/domain.co.uk/craft/app/fieldtypes/MatrixFieldType.php(118)</p>

<p>I'm running Craft Pro 2.1.2563</p>

<p>Matt</p>

CC BY-SA 3.0
2014-09-26T12:27:26.227Z
Have you tried upgrading? There have been a fair few Matrix fixes since then. You could upgrade locally first to see if it affects anything else.
Josh Angell
CC BY-SA 3.0
2014-09-26T13:09:25.403Z
Yes, I tried upgrading this morning but still get the same problem locally. It seems like everything isn't getting posted when saving the matrix field.
Matthew Woods
CC BY-SA 3.0
2014-09-26T14:44:33.393Z
In that case it might be best to submit a support request to P&T through your control panel? They are usually very swift to respond.
Josh Angell
CC BY-SA 3.0
2014-09-26T16:50:39.737Z
I wonder if it's related to [this issue...](http://craftcms.stackexchange.com/q/1404/45) There are a few places around the system with an inherent limit of 100. You say you have 2-6 fields (average 4) per block type... ~25 * ~4 = ~100
Lindsey D
<matrix>
Matrix field input error from within the control panel
# Matrix field input error from within the control panel

(Asked by: username_0 on 2014-09-26)

I have a matrix field with around 26 block types with between 2-6 fields on each. It seems like I've hit a limit and cannot add any more fields to any of the block types. I can add a field if i delete one.

I get the following error "Undefined index: type"

/var/www/dev/domain.co.uk/craft/app/fieldtypes/MatrixFieldType.php(118)

I'm running Craft Pro 2.1.2563

Matt

**Tags:** matrix
> **Comments:**
> **username_1**: Have you tried upgrading? There have been a fair few Matrix fixes since then. You could upgrade locally first to see if it affects anything else.  
> **username_0**: Yes, I tried upgrading this morning but still get the same problem locally. It seems like everything isn't getting posted when saving the matrix field.  
> **username_1**: In that case it might be best to submit a support request to P&T through your control panel? They are usually very swift to respond.  
> **username_2**: I wonder if it's related to [this issue...](http://craftcms.stackexchange.com/q/1404/45) There are a few places around the system with an inherent limit of 100. You say you have 2-6 fields (average 4) per block type... ~25 * ~4 = ~100  

---

## 1 answers

### Answer by username_3 on 2014-09-26. Score: 15 | Accepted answer

There's about a 99% chance you're bumping into your php.ini file's [max\_input\_vars](http://php.net/manual/en/info.configuration.php#ini.max-input-vars) value and/or its [post\_max\_size](http://php.net/manual/en/ini.core.php#ini.post-max-size). If you bump those to higher values, it should start working as expected.

Note that you may have to restart your web server for the settings to take affect.

> **Comments:**
> **username_0**: Cheers Brad, that's fixed the problem, works like a charm.  
> **username_4**: Brad for president.  
> **username_5**: For nginx users, make sure you run service php5-fpm reload before you restart nginx, the changes did not take affect until I did that. Thanks Brad!  
> **username_6**: This solved it! Thanks a lot! I would have never thought of this!  
> **username_7**: I set post_max_size to 50 and max_input_vars to 500 . I thoughtthis is enough. We still have problems here...  
> **username_7**: Solved it... we have a large Matrix field and I increased max_input_vars to to 1200  

---

