Error message when trying to create a post or page

Thanks Angus! The PR has been merged into the master branch and pushed to the WordPress plugin repo.

@alchemyandaim, updating to WP Discourse 2.2.1 from your WordPress dashboard should fix the issue for you.