I’m trying to import a .json file with custom fields in ACF PRO, but it is showing an error saying the file is empty. I created the fields in my local installation of WordPress (XAMPP) and tried to import the WordPress installation of my site, but this error occurred.
https://dl.dropboxusercontent.com/s/lhce61qjxnyeobe/2014-12-09_19-25-43.png?dl=0
Could help me solve this problem?
(Sorry about my bad english. I needed to use Google Translate)
Hi @giancarlozero
Can you attach your exported .json file and I will test it out
Yeah, sure! This is the file: https://www.dropbox.com/s/jx9inly86rk54g1/acf-export-2014-12-13.json?dl=0
I updated the ACF PRO plugin to version 5.1.5, but the problem keeps happening.
See this thread it shows why is happening and how to fix it.
This reply has been marked as private.
I tried again and the json file was successfully imported.
Thank you!
For those who still struggle with this problem: check if your exported JSON file has BOM marker (it depends on the server whether this marker is added to a file). When the marker is present, import doesn’t work. You can always open file in Notepad (on Windows) and save file with UTF-8 coding (not “UTF-8 with BOM”) – it should work unless your file has some syntax issues.