# About internal server error 500 when aplay to form

**URL:** <https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370>\
**Category:** Product Support\
**Created:** [September 20, 2015, 11:18am UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370 "2015-09-20T11:18:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![masafu](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@masafu](https://forum.mautic.org/u/masafu)\
**Post date:** [September 20, 2015, 11:18am UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/1 "2015-09-20T11:18:14Z")

</div>

Hi, I’m masafu.  
  
Thanks for us that provide mautic.  
  
It’s very cool OSS.  
  
Howerver, I wrong now.  
  
These are about Internal server error 500 when aplay to form.  
  
My mautic is 1.2 latest version.  
  
  
  
Error message was below…  
  
[2015-09-20 10:34:52] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A column is missing required name key. at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php:159)"} []  
  
[2015-09-20 10:35:52] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A column is missing required name key. at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php:159)"} []  
  
[2015-09-20 10:44:31] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A column is missing required name key. at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php:159)"} []  
  
[2015-09-20 10:46:21] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A column is missing required name key. at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php:159)"} []  
  
  
  
These error were output when new create form, so setup to “Actions”.  
  
I try to “Action tab” into Add submit action select some one, but output Internal server error when click to save or aplay.  
  
Please help me.

---

<div class="post-metadata">

**Author:** ![masafu](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@masafu](https://forum.mautic.org/u/masafu)\
**Post date:** [September 20, 2015, 11:18am UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/2 "2015-09-20T11:18:14Z")

</div>

Hi, I’m masafu.  
Thanks for us that provide mautic.  
It’s very cool OSS.  
Howerver, I wrong now.  
These are about Internal server error 500 when aplay to form.  
My mautic is 1.2 latest version.

Error message was below…  
[2015-09-20 10:34:52] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A column is missing required name key. at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php:159)"} []  
[2015-09-20 10:35:52] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A column is missing required name key. at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php:159)"} []  
[2015-09-20 10:44:31] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A column is missing required name key. at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php:159)"} []  
[2015-09-20 10:46:21] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A column is missing required name key. at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php:159)"} []

These error were output when new create form, so setup to “Actions”.  
I try to “Action tab” into Add submit action select some one, but output Internal server error when click to save or aplay.  
Please help me.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 21, 2015, 12:46pm UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/3 "2015-09-21T12:46:15Z")

</div>

I think the problem is that your database schema is outdated. If you have SSH access, what happens if you run following command?

```auto
php app/console doctrine:schema:update --sql-dump
```

---

<div class="post-metadata">

**Author:** ![masafu](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@masafu](https://forum.mautic.org/u/masafu)\
**Post date:** [September 22, 2015, 8:51am UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/4 "2015-09-22T08:51:08Z")

</div>

Great!.  
Thanks for message.  
I try your idea, but my hostings service could not submit that command by SSH.  
Date Base is MySQL 5.6.  
If I get SQL dump file, Can you understand to view it?  
Maybe, I can get it from PHPMyAdmin.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 23, 2015, 9:09am UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/5 "2015-09-23T09:09:13Z")

</div>

If you don’t have SSH access, you can use this script to emulate Mautic commands: [https://gist.github.com/escopecz/9a1a0b10861941a457f4](https://gist.github.com/escopecz/9a1a0b10861941a457f4)

---

<div class="post-metadata">

**Author:** ![masafu](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@masafu](https://forum.mautic.org/u/masafu)\
**Post date:** [September 24, 2015, 3:00am UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/6 "2015-09-24T03:00:55Z")

</div>

Thanks Mr.esoopecz

## I tired your new idea. So, I got below message.

## Executing console doctrine:schema:update --dump-sql Nothing to update - your database is already in sync with the current entity metadata.

Probably, that message is latest datebase schema.

I guess that ploblem is TableSchemaHelper.php file in Mautic .

* * *

## [2015-xx-xx 10:35:52] mautic.CRITICAL: Uncaught PHP Exception MauticCoreBundleExceptionSchemaException: “A column is missing required name key.” at /home/sites/heteml/users/c/a/r/cares/web/mautic/app/bundles/CoreBundle/Doctrine/Helper/TableSchemaHelper.php line 159 {“exception”:"[object] (Mautic\CoreBundle\Exception\SchemaException(code: 0): A

What do you think?

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [September 24, 2015, 4:48pm UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/7 "2015-09-24T16:48:19Z")

</div>

Some how your fields aren’t generating aliases. I’ve not seen this happen before. Is reproducible every time? Are you able to trace the issue to a specific field and if so, how is it configured?

[https://github.com/mautic/mautic/blob/fbef02439b1b5e60861a7a42971f1797b10471bf/app/bundles/FormBundle/Model/FormModel.php#L399](https://github.com/mautic/mautic/blob/fbef02439b1b5e60861a7a42971f1797b10471bf/app/bundles/FormBundle/Model/FormModel.php#L399)

---

<div class="post-metadata">

**Author:** ![masafu](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@masafu](https://forum.mautic.org/u/masafu)\
**Post date:** [September 25, 2015, 3:04am UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/8 "2015-09-25T03:04:57Z")

</div>

Great!  
Thanks Mr.alanhartless  
Are you sure?  
I’ll try your idea.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/about-internal-server-error-500-when-aplay-to-form/2370/9 "2020-02-02T22:58:09Z")

</div>

Closed on February 2, 2020, 10:58pm UTC


