Custom Field Data Disappears when Post is Published
-
I have an intermittent problem that has been driving me crazy. I have a simple field group of 6 custom fields tied to the post type “Post”. There are 4 text fields and one WYSIWYG field, none of the fields are set as required. The custom fields were set up using Advanced Custom Fields Pro. My client schedules four posts each evening to publish early the next morning (2:32 a.m., 2:33 a.m., 2:34 a.m., 2:35 a.m.). The client saves regularly while creating the post and also previews the posts. On occasion (this week more than usual) one of the posts will have missing custom field data, it’s just gone, not trace of it in the database nothing showing in post revisions and yet when the client previewed the post before and after scheduling the data was showing. It usually only happens on one out of the four daily posts. So far I can’t find a way to reliably recreate the issue.
The folks at ACF Pro suggested there might be a cron job causing problems. I’m not running any special cron jobs just the default WP-cron. I have set the firewall scanner to run at a different time than when posts are scheduled. Switched backup plugins to be manually run, removed the caching plugin, disabled the caching at the server level (Bluehost), and also disabled caching in wp-config.
Posts are done in the default Gutenberg editor.
Any ideas on how to find out why this happens and how to fix it? The client is ready to leave WordPress completely out of frustration.
Host: Bluehost
WordPress Version: 6.3.1
ACF Pro version: 6.2.1.1
Theme Divi version: 4.22.2
PHP version 8.1.23
PHP memory limit: 512M
PHP max input variables: 5000
PHP time limit: 600
Max input time: 1200The page I need help with: [log in to see the link]
- The topic ‘Custom Field Data Disappears when Post is Published’ is closed to new replies.