500 Internal Server Error

Greetings,

After upgrading from 1.23.8 to 1.24.0, I am not being given the below error 500 Internal Server Error:

Render failed, failed to render template: user/dashboard/dashboard, error: template error: custom:base/head_navbar:3:30 : executing “base/head_navbar” at <call .NotificationUnreadCount>: error calling call: wrong number of args for .NotificationUnreadCount: got 0 want 1

Any help would be greatly appreciated!

1 Like

Are you using custom templates?
Since you are the only one reporting such a serious issue, my best guess is your `base/head_navbar.tmpl` is custom and thus outdated since the upgrade.
Please re-add your changes to the up-to-date version.

1 Like

Pardon my ignorance as I was thrown into supporting this application with no training.

What do you mean by templates?

1 Like

By the way, 1.24 is outdated as 1.25(.3) exists already

1 Like

Thank you for the information. I have found the head_navbar.tmpl file within another branch of our repo so I will work on getting that resolved…fingers crossed.

1 Like

Update, I cannot find in the build process where it’s calling the head_navbar.tmpl file.

Is there a way to remove it from the DB or server after the fact?

If it exists, it’s a file on your server.
See FAQ | Gitea Documentation for where to find it.

1 Like

But still, could you please try upgrading to the latest released version instead (1.25.3)?
Maybe that fixes your problem already if you don’t have custom templates.

1 Like

removing the file from the local EFS volume resolved the issue for my server.

Thanks for the help!