Anonymous role cannot make contribution
I have had a similar problem with a WordPress install. In my case the Anonymous role of WordPress missing.
The Wordpress roles can be checked with
wp role list

I created the new role with
wp role create anonymous_user 'Anonymous User'