Migrating from shared hosting to vps (lightsail) that is managed via ServerAvatar and noticed the custom fields are not connected to the posts.
First I tried backing up / restoring with wpvivid: They are messed up
Then manual migration (copy wp-content folder, export/import database and connecting it via wp-config.php): They are messed up
Now clean install again and using wordpress native export/import tool: They are messed up
In any of these cases if I try to edit any of the field groups on the new site, they just keep loading. "Loading fields, please wait..."
I've lost like 12 working hours so far trying to solve this. At some point I was thinking that maybe it has something to do with the db charsets as they differ between the WordPress intallations. https://stackoverflow.com/questions/71540009/mysqldump-import-into-db-with-different-charset-from-unicode-520-ci-to-utf8mb4 (Not sure if this is related at all. It's just one of the few google results regarding migration between exactly same database charsets that I am working with)
But then again after doing the native WordPress export/import and failing on that as well made me think that the charsets probably have nothing to with the issue.
Could you please provide some assistance? I am seriously losing my mind here.
Can you please export a field group to JSON file and share it here? I will help you to check the issue. Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
I gave a quick try for the export/import functionality but it seems that I'm only getting two field groups with same name and clicking either one of them causes the same infinite load. (see image attached)
Here is the JSON file: https://e1.pcloud.link/publink/show?code=XZiTa8ZVl7oaSJQ6o8XvowTqepXTbFc5Aey
And image from custom field groups after import: https://e1.pcloud.link/publink/show?code=XZGTa8ZyqoJWXmVf4BpH1Be1KE2dSWMUWf7
I don't see any issue after importing the field group to my local site, here is the screen record vhttps://monosnap.com/file/99k5WYnENnSLZOd1G4AKKAwANSE7q8
Can you please delete two field groups on your site and import one then check this issue again?
The thing is if I even create a new custom post field group, it doesn't load and I can't add new fields. This is how google chrome console looks like when I'm accessing any of them:
Could you btw please remove the video you just posted as it has some of my dev site urls on it?
It seems this was most likely to do with LiteSpeed Cache. I contacted my VPS service provider due the 404 errors. Creating and editing custom fields works now again.
Thanks for your assistance.
Let me know if you have any questions.