@jolora I cannot recreate an issue using the latest version of yoast when only it and ACF are installed. With yoast and WC installed, I do see the same error, but just deactivating WC clears up this issue. Only discovered this when trying to find a solution for yoast being a problem.
I’m trying to figure out a better solution since what I posted does not seem to work for everyone. I’ll see what I can find with WC.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users