Disappearing custom post fields
Support › Meta Box AIO › Disappearing custom post fields
- This topic has 11 replies, 4 voices, and was last updated 1 year, 10 months ago by
katja.
-
AuthorPosts
-
April 25, 2023 at 5:16 PM #41603
Pat
Participanti have encountered a severe problem with the custom fields group.
I have a CPT called reviewers. I created a custom field group for the CPT. This has been an ongoing process. I have been adding various fields over the last few weeks.Then over the weekend when I opened my CPT it said there were no fields and I assumed that the field group had lost the link to the specific CPT. When I looked at the Field group there were NO fields listed. Fortunately, I had a backup so I could export the field group file and import it into the live site and I recovered everything except about 5 hours of work.
So yesterday morning started redoing the newly added fields and after about two hours of work, I duplicated a field group type "group" when I renamed the id and saved it lost all of the fields again.
This is now the cond time in 24 hours it happened. I had to restore the backup as this is an active site with data required.
Once I restored the working field group the bata showed again. I need to have this figured out as I keep losing data.
The site is https://events.saalt.org.za/
and I am prepared to give you temp admin access to investigate I have tried to replicate the error but I don't know when it will happen again, however twice in one day is a problem
April 25, 2023 at 10:36 PM #41606Peter
ModeratorHello Pat,
Can you please export the field group to a JSON file and share it here? I will try to import it to my local site and observe if the issue happens.
April 26, 2023 at 4:39 PM #41616Pat
ParticipantHow do i share it here? i don't see any upload options
April 26, 2023 at 5:17 PM #41619Peter
ModeratorHello,
You can upload it to Google Drive or Dropbox and share the link here.
April 26, 2023 at 7:15 PM #41621Pat
ParticipantHi Peter,
Here it is.
regards
April 26, 2023 at 7:18 PM #41622Pat
ParticipantHi Sorry not myself today
abstract-submissions-field-group-2.json (file://HERMANPC/Users/Herman/Dropbox/metabox/abstract-submissions-field-group-2.json)April 27, 2023 at 2:25 PM #41631Pat
ParticipantOK i did figure it out here is the proper link:
https://www.dropbox.com/s/dndcducv3py6ehp/abstract-submissions-field-group-2.json?dl=0
April 27, 2023 at 8:09 PM #41636Peter
ModeratorHello,
After importing the field group to my local site, assigning it to a CPT and adding some field value to a post, I do not see any issue. But I see there are two fields that have the same ID (mbpf_reviewer_group_info) and the option format of some choice fields is not followed the suggested.
I'm not sure why the issue happens on your site, I think you can try:
- Increase PHP settingmax_input_vars
, following the documentation https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/
- Set each field with a unique ID
- Set the choice options following the format:value: Label
. The value should be in lowercase with alphabet characters and underscores.
For example:
teach_learn: Language preservation and revitalization with special reference to teaching and learning
May 2, 2023 at 4:35 PM #41676Pat
ParticipantIt happened again. i implemented all your suggested changes ,
changed the id's to be all unique
I bumped up the max inputvars to 100000 as it was on 10000.
I changed all my options fields to "Value: label" formats as commentedand after I saved I lost all the fields again.
I did save as I was making the changes and right at the end when I wanted to continue with the developing work all the fields were gone again. This is now the 5th time this happened.
We really need to address this at a very high level. My time lost is now already 14 hours of work that has disappeared.
I have not restored the field group so you can see what has happened.
I can grant you access to this site to see what is wrong.Please can we consider this urgent I need to finish this as the client is getting edgy?
May 4, 2023 at 7:29 AM #41692Peter
ModeratorHello,
Please share your site credentials via this contact form https://metabox.io/contact/
and a screen record of the issue. I will take a look.May 8, 2023 at 2:23 PM #41749Way Leong
ParticipantHi,
I am encountering the same issue as Pat. I was renaming my Custom Post Group Name Title without touching the ID but my CPTs went missing, but the DB still saves the data.
This is a bit frustrating as it happened to me a few times while renaming the title, has the problem been resolved?
June 14, 2023 at 6:00 PM #42193katja
ParticipantI have similar problem – I renamed the Post Type and all of my posts from that Post Type disappeared. I've tried to rename again and back to the old name, but there are still no posts there 🙁 I don't know where to search them;
-
AuthorPosts
- You must be logged in to reply to this topic.