I have two WP installs sharing the same version both for WordPress itself (6.1.1) and ACF (6.0.5).
I want to export ACF fields from the first install and import that to the second one. However, when importing, the ACF fields are broken.
The JSON export looks like this:
https://pastebin.com/bGHjUH5r
The PHP version of that after import looks like this:
https://pastebin.com/KeyRPfKs
As you can see, the PHP version stops at the field group “Modules”, and it also turns it into a Text field instead of a Flexible Layout field. I’ve tried validating the JSON and it seems valid.
What could be causing this issue?
I just tested your export file on one of my test sites and both field groups were imported successfully.
I would start by deactivating other plugins to see if I can find what is interfering with the import. There is also the possibility that it is a filter in your theme that is causing the issue. The only other thing that I can think of is that you have the free version of ACF active on the site you are importing into.