Creating event creation link in the admin the right way. May solve this issue:
https://wordpress.org/support/topic/error-on-setup?replies=4