pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.06k stars 265 forks source link

Front-end form submission not creating post #5417

Open jaycollier opened 4 years ago

jaycollier commented 4 years ago

Hi!

We have a front-end Pods form that has been correctly creating draft “job” posts (created by Pods) for several months: https://www.mltn.org/jobs/submit-form/

This is the form shortcode:

[pods name="job" form="1" fields="post_title,job_org_name,job_post_date,job_expires_date,job_submittor_name,job_submittor_email,job_submittor_phone,job_apply_link,job_apply_email,job_description"]

Starting this week, after submitting an entry, the response is the correct ?success=1 suffix and “Form submitted successfully”. However, no “job” post is created for that Pod.

Since we weren’t sure exactly what may have caused this change, we created an exact staging copy, changed the theme to Twenty Nineteen, deactivated all plugins except Pods 2.7.14, and optimized the database … and the same thing happens; no “job” post is created.

Pods Version

2.7.14

WordPress Environment

Here is the debug information for our staging site, where we've deactivated all plugins except Pods.

WordPress Version: 5.2.2 PHP Version: 7.1.30 MySQL Version: 5.6.36 Server Software: Apache/2.4.39 (Unix) mod_hive/6.27 OpenSSL/1.0.1e-fips mod_fastcgi/2.4.6 Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 Session Save Path: /tmp Session Save Path Exists: Yes Session Save Path Writeable: Yes Session Max Lifetime: 1440

Opcode Cache: Apc: No Memcached: No OPcache: Yes Redis: No

Object Cache: APC: No APCu: No Memcache: No Memcached: Yes Redis: No WPDB Prefix: mltn_

WP Multisite Mode: No WP Memory Limit: 40M Current Memory Usage: 9.085M Current Memory Usage (real): 10.000M

Pods Network-Wide Activated: No

Pods Install Location: /home/[snip]/staging/5/wp-content/plugins/pods/

Pods Tableless Mode Activated: No Pods Light Mode Activated: No

Currently Active Theme: Twenty Nineteen

Currently Active Plugins: Pods - Custom Content Types and Fields: 2.7.14

Pods Package Export (helpful!)

Attached. pods-package-export.txt

Additional context None

Possible Workaround None found

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label Type: Bug to this issue, with a confidence of 0.85. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

jaycollier commented 4 years ago

I am going to try Gravity Forms and the Pods add-on while I keep an eye on this bug.

https://wordpress.org/plugins/pods-gravity-forms/

jaycollier commented 4 years ago

Update for anyone who runs into a similar issue: We decided to use Formidable Forms, which natively supports custom post type creation, custom fields, and notifications. (Gravity Forms required an add-on.) Works great with Pods.

jimtrue commented 4 years ago

@jaycollier The Pods Gravity Forms Add-on does more than what the Formidable support can do (specifically supporting populating relationship fields and providing front-end editing). It's not a comparison.

jaycollier commented 4 years ago

Thank you. That is good to know! We're just using Formidable until the bug is fixed, then we'll move back.

jamesgol commented 4 years ago

I just tried to reproduce this and was unable to.