Support Forum
Hi there, I just changed one of the existing custom fields from textarea to a WYSIWYG editor and now all the data in those fields is gone for all posts. If I try to resave it removes all the data in the fields. I went in and changed the WYSIWYG to textarea but it still behaves the same way. Meta Box is on the latest version 5.6.17
Did some more troubleshooting. I reverted to a backup and tried adding new posts and it worked fine. However when I change the textarea to WYSIWYG it loses all the data. Here is the json file for the custom fields: https://solacem-my.sharepoint.com/:u:/g/personal/sunny_solace_media/EcWN0D6URdxEtKYee3aPYK8BQjd8WiqR2CCFGYz_aCw0HA?e=drosv9
Hello,
I've had a similar issue, to resolve it, just delete the old field and create a new one with the same field ID to display the field value when editing the post.
Thanks Peter, but that would delete all the data right?
The issue is fixed now. I had to go in and delete individual fields and replace them with the same id and it all works now! Looks like a corruption perhaps? It would be a good idea to create a tool to fix corrupted custom fields don't you think?
Hello,
I'm not able to reproduce the issue on my end from scratch. For now, if you save a field WYSIWYG value in a post then change the field type to textarea and the value still displays as well. Can you please try to reproduce the issue in a fresh install of WordPress and Meta Box?
I think you may have misunderstood my question. The issue has been resolved but I had to go in and delete all the old custom fields and add new custom fields with the same id. Not a big deal for some but for others it may be a huge inconvenience if there are a lot of custom fields. So what I was proposing is a tool that Meta Box can develop which can automatically go in and fix corrupted custom fields, it's just a suggestion 🙂
Hello,
I have a similar problem.
I created groups and nested repeatable fields in a custom table without issues.
But now at once, if I add a new textarea, when I try to save, all field settings are lost.
Here is the JSON export before adding a new textarea:
https://drive.google.com/file/d/1vUuuLUHqZ6ZsOLhz5lX0sGSu-fDdXgLN/view?usp=sharing
My thought is that some textarea field settings might be corrupted, but I am not able to track it down.
I even deleted the custom table in MySQL and let the plugin recreate it automatically, without luck.
Please help, because the main reason I purchased the plugin is to speed-up development and this issue is causing delays on my milestones.
Hello Elene,
You can try to follow this tutorial to increase the PHP setting max_input_vars
to fix the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/
Let me know how it goes.
It worked like a charm, thank you!
I suggest you to highlight this info somewhere in the custom fields edit page, so that other users don't incurr in my same issue.
By the way, I am Francesco (the developer)