Title: max_input_vars = 3000  causing a database error
Last modified: August 24, 2016

---

# max_input_vars = 3000 causing a database error

 *  [bigdrop.gr](https://wordpress.org/support/users/bigdropgr/)
 * (@bigdropgr)
 * [11 years ago](https://wordpress.org/support/topic/max_input_vars-3000-causing-a-database-error/)
 * I’m using the [Advanced Custom Fields plugin](https://wordpress.org/plugins/advanced-custom-fields/)
   for creating custom fields.
 * I had to modify the php.ini in order to be able to add more fields. After I have
   added the ‘max_input_vars = 3000’ in my php.ini file I was able to add more fields,
   it actually solved the problem.
 * My problem is that after I have modified the php.ini file I get a database error.(
   Error connection to database).
 * My wordpress instalation is running on a VPS, 2048 MB Memory, 2X cores and I’m
   using the VestaCP as a control panel. I’m using the 4.2.2 version of WordPress.
 * Does anyone have any idea what is might causing this problem?
 * Thank you all in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years ago](https://wordpress.org/support/topic/max_input_vars-3000-causing-a-database-error/#post-6146018)
 * Have you discussed this issue with your hosting provider? They might be able 
   to figure this out for you.
 *  Thread Starter [bigdrop.gr](https://wordpress.org/support/users/bigdropgr/)
 * (@bigdropgr)
 * [11 years ago](https://wordpress.org/support/topic/max_input_vars-3000-causing-a-database-error/#post-6146023)
 * Thank you for your answer.
    I have mailed them and waiting for their answer. 
   Just asked here, maybe anyone had the same problem and might helped me…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘max_input_vars = 3000 causing a database error’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [php.ini](https://wordpress.org/support/topic-tag/php-ini/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bigdrop.gr](https://wordpress.org/support/users/bigdropgr/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/max_input_vars-3000-causing-a-database-error/#post-6146023)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
