Skip Navigation

[Resolved] Form is not creating custom posts

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have created a custom post type creation form, but the form, upon submission, is not generating a new post. I have set the form to display the post just created, and I get an error that no such post exists.

Solution:

It is a known issue, see our erratum here:

https://toolset.com/errata/submitting-a-form-fails-with-there-was-an-error-while-submitting-the-form-or-a-404-error/

Currently, you can try these:

https://toolset.com/forums/topic/form-is-not-creating-custom-posts/#post-1975409

Relevant Documentation:

This support ticket is created 4 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Luo Yang 4 years ago.

Assisted by: Luo Yang.

Author
Posts
#1972871

I have created a custom post type creation form, but the form, upon submission, is not generating a new post. I have set the form to display the post just created, and I get an error that no such post exists. I can confirm this in the dashboard.

The upload page is public (for testing purposes at the moment) at hidden link.

#1973207

Hello,

The problem you mentioned above is abnormal, what kind of error message do you get?
Please share your website credentials in below private message, I need to check it in a live website, please backup your website first.

#1974215

I have tried the credentials you provided above, it is not valid, I get below error message:
Unknown username. Check again or try your email address.

Did you get any PHP/JS error debug logs?
please provide a copy of your website, you can put the package files in your own google drive disk, share the link only, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1975311

I can login and see the problem in your website, since you did not provide FTP access, I can not get PHP debug logs from your website, so I am downloading the database dump file from your website, will update here if find anything

#1975409

I can duplicate the same problem in my localhost, and it is a known issue, see our erratum here:
https://toolset.com/errata/submitting-a-form-fails-with-there-was-an-error-while-submitting-the-form-or-a-404-error/

Currently, you can try these:
1) Edit post field group "Field Group for Artifacts"
hidden link
find and edit reference field "Platform", change the field slug to something else, for example "related-platform"

2) Edit the post form "Form for Artifacts":
hidden link
find and edit reference field "Platform", change the field slug same as above "related-platform", for example:

[cred_field field='related-platform' force_type='field' class='form-control' output='bootstrap' select_text='--- not set ---']

And test again.

#1976301

Thank you! That first solution worked. That was exactly the issue. Great and simple resolution.

#2125071

This is fixed in the latest version of Toolset Forms plugin, you can download it here:
https://toolset.com/account/downloads/
Please test it and feedback if the problem is fixed, thanks