Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-08T18:51:01.997Z
Answers.Text: Brad for president.
Answers.UserDisplayName: Anna_MediaGirl
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-11T18:34:18.697Z
Answers.Text: 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!
Answers.UserDisplayName: Brad
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-08T18:52:20.530Z
Answers.Text: This solved it! Thanks a lot! I would have never thought of this!
Answers.UserDisplayName: Luke
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-30T14:50:03.263Z
Answers.Text: I set post_max_size to 50 and max_input_vars to 500 . I thoughtthis is enough. We still have problems here...
Answers.UserDisplayName: Simon Franzen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-30T14:56:38.583Z
Answers.Text: Solved it... we have a large Matrix field and I increased max_input_vars to to 1200
Answers.UserDisplayName: Simon Franzen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-30T09:24:11.310Z
Answers.Text: Cheers Brad, that's fixed the problem, works like a charm.
Answers.UserDisplayName: Matthew Woods
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-26T18:55:03.973Z
Answers.LastActivityDate: 2014-09-28T22:27:05.623Z
Answers.LastEditDate: 2014-09-28T22:27:05.623Z
Answers.UserDisplayName: Brad Bell
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-26T12:27:26.227Z
Comments.Text: 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.
Comments.UserDisplayName: Josh Angell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-26T13:09:25.403Z
Comments.Text: 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.
Comments.UserDisplayName: Matthew Woods
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-26T14:44:33.393Z
Comments.Text: 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.
Comments.UserDisplayName: Josh Angell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-26T16:50:39.737Z
Comments.Text: 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
Comments.UserDisplayName: Lindsey D
Tags: <matrix>
Title: Matrix field input error from within the control panel
ThreadText: # 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 username_3, that's fixed the problem, works like a charm.  
  > **username_4**: username_3 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 username_3!  
  > **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  
  
  ---
  
  