I was having the same issue and determined it was the Yoast SEO Premium plugin that was causing the error. I haven’t been able to figure out if it is the entire plugin or a specific setting that I have that is the causing the problem. I’ll report back if I figure it out.