Possible issue with user Kirby 2.5

Hi,

I try to create a new user from panel in localhost with K2.5 but seems to beug:

 Call to a member function password() on null

Error appears when click on add new user from users panel page. I tried with 2.4.1 on same site and works fine.

PS: Thanks Kirby staff for all good work, welcome to @nocksock and happy to know Bastian go full time for Kirby !

I’m seeing the same error when attempting to add a user from the panel

It is happening locally with osx mamp, and on a server

Me too… (and some more chars)

I created an issue on GitHub.

1 Like

An local with XAMPP 7.0.13 on Win10 too.

Same: Local: Win10 PHP7.0.3 UwAmp
live: OVH PHP 7.0

I guess this might be related to this commit: https://github.com/getkirby/panel/commit/96088b95a5f81741736c0efd80147352452b6df8

See this post: Bugfix-Release: 2.5.1

1 Like

There is an issue in file /panel/app/forms/users/user.php. Panel tries to check if user has password even tho you are just adding new user…
Solution for now is just comment these few lines of code in mentioned file.

  if(!$user->password()) {
    // Warning that the user does not have a password and can't login
    $fields['noPasswordHelp'] = array(
      'type' => 'info',
      'text' => 'users.form.password.none.info'
    );
  }

Kirby people should repair this with ease.

I had already suggested to solve this issue like this in the other post:

if($user && !$user->password()) {
// Warning that the user does not have a password and can't login
  $fields['noPasswordHelp'] = array(
    'type' => 'info',
    'text' => 'users.form.password.none.info'
  );
}

That makes more sense then just commenting out those lines.

This is now fixed on the development branch and will be in the next release.

(Release 2.5.2, July 4, 2017)

1 Like

has there been a release that fixes this bug?

That was fixed in 2.5.2