Front End Submission not editing custom post fields
Support › MB Frontend Submission › Front End Submission not editing custom post fieldsResolved
- This topic has 10 replies, 4 voices, and was last updated 2 years, 7 months ago by
Timo Wessels.
-
AuthorPosts
-
July 17, 2022 at 5:06 PM #37040
Jacob Greenhow
ParticipantI have two different forms for front end submission which are editing the custom fields for the post they are shown in. Both used to work fine but now one is not working. The shortcode that works is this;
[mb_frontend_form id='beach-field' post_fields='title' post_id='current']
The one that is failing is this. I also tried turning on edit= true and this made no impact.
[mb_frontend_form id='beach-photo-basic' post_fields='title' post_id ='current']
Debug.log shows nothing and I have turned off all plugins to see if the issue still persists and it does. The metabox plugin is also updated. Not sure what else to do to try and fix the issue.July 17, 2022 at 5:49 PM #37041Jacob Greenhow
ParticipantIn terms of the actual issue I can modify the title through the front end and it updates fine. It's only the custom fields that do not get populated. If I update the custom fields from the back end the front end displays the updated values.
July 17, 2022 at 10:39 PM #37050Long Nguyen
ModeratorHi Jacob,
Please share your site credentials via this contact form https://metabox.io/contact/, I will take a closer look. Thanks.
July 21, 2022 at 12:20 PM #37095Timo Wessels
ParticipantIf I'm allowed to post it here instead of in a new one.
The same is happening with me too!
There were no changes in the way how I create or key in the shortcodes for the Front End Submission.
- I deactivate all Plugins.
- I try the Query Monitor, but there were no real issues.
- The max_input_vars is already by 10.000
Then, I used a Backup from June.
I deactivated again all Plugins.
But...... before I updated Metabox from 5.6.4 to 5.6.5 it worked, after I only did the Update the Front End Submission wasn't saving any custom fields.So there might be a Bug in the Update?
I can give you access to my Staging Site
July 21, 2022 at 10:48 PM #37107Long Nguyen
ModeratorHi Timo,
Please share the staging site credentials and some screenshots of the issue via the contact form. I will take a closer look.
July 24, 2022 at 2:13 AM #37156Jeremy Parrott
ParticipantSame once I did the latest updates... had to revert to backup because it is a production site. The data will not save when more than 1 metabox is linked to the same table.
July 24, 2022 at 5:04 PM #37159Jacob Greenhow
ParticipantI have just shared my site details so hopefully, you can take a look Long. Let me know if you have any issues with access ect.
Some ways that I am working that might be related to the issue
• I am storing the information in a custom table.
• I have two different field groups attached to the same custom table (‘beach photo basic’ and ‘beach photo advanced’)
•I am using oxygen builder on my site. But I did manage to recreate the issue without Oxygen turned onJuly 25, 2022 at 12:32 AM #37165Jacob Greenhow
ParticipantJermey post was right about what is causing the issue. I have just run a test on my website and I managed to recreate the issue.
-
I had a custom post type of 'location'.
I created a custom field group called 'location' and set this up to use a custom table
I added the shortcode to the 'location' post type so I could edit each post from the front end. This worked as expected.
I created another custom field group called 'location 2' using the same custom table.
I tried to update the custom post from the front end and it no longer worked.
I removed the field group called 'location 2' and the front-end submission worked again.August 2, 2022 at 3:57 AM #37305Jeremy Parrott
ParticipantJacob, I think this was a pretty major bug in the last release. Based on the user, I need to show some fields and not others from the same page view. The only way to do this is to create the form different ways. It had always worked well until this update and it took me forever to figure out. Hopefully they will have a release soon to fix this.
August 4, 2022 at 8:39 PM #37350Long Nguyen
ModeratorHi Jeremy,
I've tried to reproduce the issue on my demo site but did not see that. I have two field groups saved field value to one custom table. The field group is assigned to a CPT (job) and the frontend form display them on the frontend. Please check this screen record https://monosnap.com/file/seiz493QlKhv6JtQKgoc60MLPIdJYT
September 21, 2022 at 12:30 AM #38368Timo Wessels
ParticipantThanks for the latest Update. Now everything is saving and working like expected =)
Which means the Forms Data are now saved again on the Custom Tables =)
thanks a lot =)
-
AuthorPosts
- You must be logged in to reply to this topic.