Accessing my own group return 500 error

I am using for my project. I have 2 groups but suddenly, when I am trying to access one of the group. I got the following result

# 500

### Whoops, something went wrong on our end.


Try refreshing the page, or going back and attempting the action again.

Please contact your GitLab administrator if this problem persists.

But I can access another group normally. Also, if I login with another account to that group, there is no issue.


I have similar issue but running on-prem instance of omnibus. Everytime normaluser/admin both owner or developer tries to access the menu/group/[my-group] 500 Error appears. The same happens when it tries to create a group. The group is being created, but redirected to 500 error. It is only possible to edit a group from Admin menu. Interestinglly from Admin Groups it is also impossible to “Manage access” the group members. In this case the traceback is identical to the previous one and reported below:

A partial excerpt from logs:

Started GET “/gitops” for X.X.X.X at 2022-08-05 14:43:59 +0200
Processing by GroupsController#show as HTML
Parameters: {“id”=>“gitops”}
Rendered layout layouts/group.html.haml (Duration: 463.4ms | Allocations: 132416)
Completed 500 Internal Server Error in 562ms (ActiveRecord: 28.7ms | Elasticsearch: 0.0ms | Allocations: 149426)

ActionView::Template::Error (undefined method `’ for nil:NilClass):
1: = render partial: ‘shared/nav/sidebar’, object:, current_user))

lib/gitlab/auth/saml/config.rb:21:in groups' ee/lib/ee/gitlab/auth/saml/config.rb:20:in group_sync_enabled?’
ee/app/policies/ee/group_policy.rb:104:in block (2 levels) in <module:GroupPolicy>' app/models/ability.rb:86:in allowed?’
lib/gitlab/allowable.rb:6:in `can?’