Advanced Custom Fields. It needs updated to the most recent version. That being said as I went through the code I realized it could be a lot of different things. My advice would be start a fresh install and try again. Not great advice I know, but it’s what helped me find the issue.