WordPress Preview Button Actually Saving Data
Support › Meta Box AIO › WordPress Preview Button Actually Saving DataResolved
- This topic has 5 replies, 2 voices, and was last updated 5 years, 1 month ago by 
Long Nguyen.
 
- 
		AuthorPosts
 - 
		
			
				
August 10, 2020 at 7:50 PM #21196
Georgetown University Web Services
ParticipantGreetings,
We have a problem that we've isolated to an interaction between Meta Box and one of our page templates. We're continuing to troubleshoot things on our end, but thought we'd post here in case anyone has any insight into the problem.
Here's the situation: one of our page templates, named Landing Page, includes a series of Meta Box fields for some content and display options. One of our editors noticed that, when they are editing such a page, clicking the WordPress preview button to review their changes is actually changing the page's data, even if you don't change Meta Box information. That is, if you only change (for example) the page's title, then click the preview button, the entire page is saved for real and the live site displays the new title. Even the toast notification the WP shows when the page is saved pops up in the lower left, so the core
wp_update_postfunction appears to be running in a way that it's not supposed to.We know it's a Meta Box interaction because we removed the fields from that template (by removing it from the array returned by our custom
rwmb_meta_boxesfilter) and without the fields, the WordPress preview button works as expected (i.e. the currently live site remains unchanged).We're running WP 5.4.2, Meta Box 5.3.3, and Meta Box AIO 1.11.16. We do use Gutenberg as our editor. Any help leading us to find the cause of this problem would be most appreciated.
Thanks,
David Dashifen Kees
Senior Full Stack Developer
University Information Services
Georgetown UniversityAugust 11, 2020 at 9:18 AM #21204Long Nguyen
ModeratorHi,
Thank you for pointing this out. I'm going to check the issue and let you know later.
August 11, 2020 at 5:12 PM #21210Georgetown University Web Services
ParticipantLet me know if I can help out. A video of the problem, code snippets, etc.
Thanks,
DashAugust 18, 2020 at 2:29 AM #21326Georgetown University Web Services
ParticipantHave you had a chance to investigate further?
Thanks,
DashSeptember 21, 2020 at 9:06 PM #22009Georgetown University Web Services
ParticipantGreetings,
We wanted to come back and return to this thread. This has come up again for us and we wondered if any of your investigations resulted in any information that may be helpful to us.
Thank you, and please don't hesitate to let me know if there's anything we can do to help.
Dash
September 22, 2020 at 8:58 AM #22015Long Nguyen
ModeratorHi,
We've fixed this issue on new commits, you can check it while waiting for the next release.
https://github.com/wpmetabox/meta-box/archive/master.zipThank you.
 - 
		AuthorPosts
 
- You must be logged in to reply to this topic.