Title: HTTP 500 error on submit
Last modified: March 6, 2018

---

# HTTP 500 error on submit

 *  [dries17](https://wordpress.org/support/users/dries17/)
 * (@dries17)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/http-500-error-on-submit/)
 * Hello,
 * I created a form using your plugin and everything was working fine. Untill 2 
   hours ago ..
 * Whenever I submit the form (even with no fields filled in) I get a HTTP 500 error.
   
   When I check my error logs, the error is caused in api-helpers.php.
 * The log:
    PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (
   tried to allocate 262144 bytes) in public_html/wp-content/plugins/advanced-forms/
   api/api-helpers.php on line 202, referer: xxxx PHP Fatal error: Allowed memory
   size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in public_html/
   wp-includes/load.php on line 679, referer: xxxx
 * Increasing the memory limit to 1024M (as you can see in the log above) did not
   fix the issue so I guess there must be some sort of memory leak somewhere.
 * The faulty code is this:
    foreach ( $value as $single_value ) { $rendered_values[]
   = _af_render_field_include( $field, $single_value ); }

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

 *  Thread Starter [dries17](https://wordpress.org/support/users/dries17/)
 * (@dries17)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/http-500-error-on-submit/#post-10044711)
 * When I disable the Email notifications, I don’t get the error
 * UPDATE: and when NOT using the {all_fields} option this also works so I guess
   that’s where the problem lies.
    -  This reply was modified 8 years, 3 months ago by [dries17](https://wordpress.org/support/users/dries17/).
 *  Plugin Author [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * (@fabianlindfors)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/http-500-error-on-submit/#post-10052523)
 * Hi!
 * Are you by any chance using group fields? I’ve had some people telling me they
   are having issues including group fields in emails so I just pushed an update
   to Github which improves support for them. The update also adds support for using
   the syntax `{field:group_name[sub_field]}` to include individual sub fields.
 * You can read more about the update in this thread: [https://wordpress.org/support/topic/impossible-to-use-acf-fieldtype-group/](https://wordpress.org/support/topic/impossible-to-use-acf-fieldtype-group/).
 * Please try downloading the update from Github and see if it helps! I haven’t 
   been able to reproduce the 500 errors so I’m not sure. 🙂
 * Thanks!
 *  Thread Starter [dries17](https://wordpress.org/support/users/dries17/)
 * (@dries17)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/http-500-error-on-submit/#post-10052639)
 * Yes, I have been using field groups (a lot).
    Will try the update, thanks! I’ll
   post the results in this thread.
 * UPDATE: no error message but also NO email. Check the mail logs, nothing received,
   tried to send to gmail, no mail so I guess the mail is not being sent
    -  This reply was modified 8 years, 3 months ago by [dries17](https://wordpress.org/support/users/dries17/).
 *  Plugin Author [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * (@fabianlindfors)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/http-500-error-on-submit/#post-10074633)
 * Thanks for trying it.
 * Could you take a screenshot of your form field configuration as well as the settings
   you are using for your form notifications?
 * Thanks!
 *  Thread Starter [dries17](https://wordpress.org/support/users/dries17/)
 * (@dries17)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/http-500-error-on-submit/#post-10077851)
 * [https://www.dropbox.com/s/hf533q0gxaqn7ln/form_problem1.png?dl=0](https://www.dropbox.com/s/hf533q0gxaqn7ln/form_problem1.png?dl=0)
 * [https://www.dropbox.com/s/o6hj4e71sn47win/form_problem2.png?dl=0](https://www.dropbox.com/s/o6hj4e71sn47win/form_problem2.png?dl=0)
 * I deleted the old notification because it did not work but it was something alike
   the second image.
    -  This reply was modified 8 years, 2 months ago by [dries17](https://wordpress.org/support/users/dries17/).

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

The topic ‘HTTP 500 error on submit’ is closed to new replies.

 * ![](https://ps.w.org/advanced-forms/assets/icon-256x256.png?rev=1894254)
 * [Advanced Forms for ACF](https://wordpress.org/plugins/advanced-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-forms/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [dries17](https://wordpress.org/support/users/dries17/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/http-500-error-on-submit/#post-10077851)
 * Status: not resolved