TypeError - Argument must be of type string

Describe the issue / Steps to reproduce:
Want to use a maintenance script, to create and promote a user…

Expected behavior:
User was created and promoted

What was the error message/error log?

[72b197c80d4857d7f3497cbe] [no req] TypeError: MediaWiki\User\UserNameUtils::getCanonical(): Argument #1 ($name) must be of type string, null given, called in /home/web/wiki/includes/auth/LocalPasswordPrimaryAuthenticationProvider.php on line 230

System info:

  • OS:Linux Debian 12
  • Server: Caddy v2.9.0-beta
  • PHP: 8.2
  • Database: 11.6.1
  • BlueSpice version: BlueSpice free 4.5.4
  • Browser version: Mozilla Firefox 134.0.2

Hello Justman10000,
can you please share the command you use to call createAndPromote.php in this case?