Tell us what you are trying to do?
I have created a new CPT named 'Kundenprojekte' and generated an associated creation form. When I try to save the form, it results in a critical error. I have cleared the cache and checked if the CPT fields are correctly included in the form, but unfortunately, it didn't help.
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site?
its locked only for users (hidden link)
That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try re-saving the form that generates the error and then inspect the log.
Can you also confirm if the error occurs if you disable all plugins except for Types and Forms, and switch to a default theme such as twentytwentyone.
You say the error occurs when trying to save the form?
Looking at the call stack of the error, I have the impression it relates to displaying a page made with Divi, that I expect includes the form, but that's not what you describe.
Would it be possible to get credentials from you to access the back end of the site and inspect your set up?
Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.
Can you also confirm, have you inserted the form into a page? Which page?
While I didn't have any issue saving the form in the admin area, I noticed that it was struck with the AJAX error, when I submitted it from the frontend.
Do I have your permission to download a clone/snapshot of the website? This will help in troubleshooting this on a different server, without affecting the actual website.
Of course, I allow you to clone the website. However, I cannot grant you FTP access. The system already has AIO Migration installed, which you are welcome to use.
During troubleshooting on your website's clone, I noticed that the issue with the form is fixed if PHP is switched to PHP 7.
The form itself is complex with many fields and conditional groups. With PHP 8, the form fails because there are fields where the long text values are saved as options-based fields like select, radio, and checkboxes. This long text value not only includes special characters like ',' and spaces but they are also used in the conditional groups for conditional display.
( screenshot: hidden link )
For an immediate fix, you can switch the server's PHP version to PHP 7+. For a proper long-term fix, you can redo the option-based custom fields, so that the value part doesn't include long text values or special characters. For the display text, you can use any text, but for the values or custom field content of those options, it is most efficient and safe to use numeric values (e.g. 1, 2, 3 ... )