llaumgui I think I found what the issue is. Both view extensions declare the same global variables, which causes discussion-views to re-use the relationship name from profile-views, causing issues.
I have created an issue on the GitHub repository MichaelBelgium/flarum-profile-views14
In the meantime a workaround would be to disable one of the views extensions.
It's possible that enabling the two extensions in the opposite order produces a different error or an error that doesn't immediately crashes the forum.