When adding comment - gives website encountered error

Created on 18 May 2023, over 1 year ago

Problem/Motivation

I am trying to add a comment but when saving the comment it gives me a website encountered error. This is related to getUsername() function.
Error: Call to undefined method Drupal\user\Entity\User::getUsername() in yg_flexy_preprocess_comment() (line 88 of /app/drupal9.5/themes/contrib/yg_flexy/yg_flexy.theme)

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024