I was able to solve the issue in mail_login code, and created the ticket for it as well.
https://www.drupal.org/project/mail_login/issues/3497643
🐛
Backward compatibility fix for UserAuthenticationInterface
Needs work
The patch has also been hidden
I've created the MR
imre.horjan → changed the visibility of the branch 3497643-backward-compatibility-fix to hidden.
imre.horjan → created an issue.
I Unassign and set status to Needs review.
I tried to address the same issue in mail_login.
Unfortunately the old interface works like a wrapper for the new interface, therefore without applying this patch I got an other error:
Error: Call to undefined method Drupal\tfa\TfaUserAuth::authenticateAccount() in Drupal\mail_login\AuthDecorator->authenticateAccount() (line 137 of modules/contrib/mail_login/src/AuthDecorator.php).
In addition to implementing the interface, I also refactored the authentication logic into the new method, because at some point the old method is going to be removed.
I created the MR.
Thanks for your quick reply and detailed summary on the topic.
I assign the ticket to myself, and I will create an MR soon.
I will take a look what else can be done in mail_login and will create the corresponding ticket if necessary.
imre.horjan → created an issue.
The patch works for me
Many thanks
The merge request contains changes in the composer.json file, which won't apply using composer.
I attach a patch without these changes so it can be applied using composer.
imre.horjan → created an issue.
Hello,
f you don't mind I reopen this issue and added a patch for it.
I can reproduce it using Drupal 10.1, PHP 8.1, while editing a menu item using the Group Content Menu module.
https://www.drupal.org/project/group_content_menu/ →
Even though simple sitemap is enabled only for node and media entities, I get the same error message editing an entity (menu item in this case).
I think custom entity types can also trigger this error, which prevent editing them.
imre.horjan → created an issue.
imre.horjan → created an issue.