# 500 post error after trying to send a form \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/500-post-error-after-trying-to-send-a-form-resolved/6571>\
**Category:** Get Help\
**Tags:** duplicate-key, has-ticket\
**Created:** [October 22, 2020, 11:56am UTC](https://community.gravityforms.com/t/500-post-error-after-trying-to-send-a-form-resolved/6571 "2020-10-22T11:56:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvanoel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jvanoel/32/2156_2.png) [@jvanoel](https://community.gravityforms.com/u/jvanoel)\
**Post date:** [October 22, 2020, 11:56am UTC](https://community.gravityforms.com/t/500-post-error-after-trying-to-send-a-form-resolved/6571/1 "2020-10-22T11:56:37Z")

</div>

Hi!

I’ve submitted a ticket last week for this issue but I didn’t get a response yet so we will try it over here.

Whenever I try to submit a GF form, I’m getting a 500 post error in console log and when I check WP debug.log, I see this:

`[16-Oct-2020 11:23:30 UTC] WordPress database error Duplicate entry '0' for key 'PRIMARY' for query INSERT INTO `wp\_gf\_entry` (`form\_id`, `ip`, `source\_url`, `date\_created`, `date\_updated`, `user\_agent`, `currency`, `created\_by` ) VALUES (2, '163.158.197.98', 'https://private/company/contact/', '2020-10-16 11:23:31', '2020-10-16 11:23:31', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/private Safari/537.36', 'EUR', '3') made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array('wp'), WP_Hook->do_action, WP_Hook->apply_filters, GFForms::maybe_process_form, GFFormDisplay::process_form, GFFormDisplay::handle_submission, GFFormsModel::save_lead, GFFormsModel::save_entry`

Could someone help us out please?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 23, 2020, 4:37pm UTC](https://community.gravityforms.com/t/500-post-error-after-trying-to-send-a-form-resolved/6571/2 "2020-10-23T16:37:12Z")

</div>

Hi Justin. We did reply to your ticket on Oct 16 and it shows that your email client received the message. This is what Samuel sent to you:

> That error is from your MySQL server and suggests an issue in the database with the AUTO\_INCREMENT setting in the **evo\_gf\_entry** table, for some reason that setting was lost. That is not something Gravity Forms has any control over but something related to your database server. To fix that you can try to enable **AUTO\_INCREMENT** in this table again following the steps below.
> 
> **IMPORTANT** : Before proceeding with this be sure to **make a full backup of your database** (just in case).
> 
> 1. Open phpmyadmin from your hosting panel, go to your WordPress database and find the table mentioned above at the left of the phpmyadmin screen, click on it.
> 
> 2. Now click on Structure tab (at the top).
> 
> 3. Make sure that **AUTO\_INCREMENT** is shown in the **Extra** column for the **id** row, click **Change** and enable it by checking the **A\_I** checkbox and clicking the Save button.
> 
> If there are many rows using the same id shown on the error message, you would need to delete the duplicates before completing the above steps.
> 
> Now try again to replicate the issue, it should work now or add new error messages.
> 
> If you don’t feel comfortable enough using phpmyadmin to perform these actions please contact with your hosting support for further assistance to perform the above steps.
> 
> Regards,

---

<div class="post-metadata">

**Author:** ![jvanoel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jvanoel/32/2156_2.png) [@jvanoel](https://community.gravityforms.com/u/jvanoel)\
**Post date:** [November 3, 2020, 2:53pm UTC](https://community.gravityforms.com/t/500-post-error-after-trying-to-send-a-form-resolved/6571/3 "2020-11-03T14:53:40Z")

</div>

Thank you! It has been fixed now.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 4, 2020, 6:03am UTC](https://community.gravityforms.com/t/500-post-error-after-trying-to-send-a-form-resolved/6571/4 "2020-11-04T06:03:24Z")

</div>



---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 4, 2020, 6:04am UTC](https://community.gravityforms.com/t/500-post-error-after-trying-to-send-a-form-resolved/6571/5 "2020-11-04T06:04:01Z")

</div>

Thank you for the update Justin.
