Skip Navigation

Submitting a Form fails with “There was an error while submitting the form”, or a 404 Error

Resolved

Reported for: Toolset Forms 2.3.5

Symptoms

Toolset Types offers Post Reference Fields which can be inserted in Toolset Forms to connect the newly created posts to another Post of the type set in the Post Reference Field.

If that Post Reference Field happens to have the same slug as a Custom Post Type, submitting such form will result in:

  • Post not being created and a 404 not found error – if AJAX is not used.
  • An error pop-up stating “There was an error while submitting the form” – if AJAX is used.

Workaround

Comments are closed