Skip to content

Bug: Error Occurred While Changing User Password: strtolower(): Argument #1 ($string) must be of type string, null given in NothingPersonalValidator #1171

Closed
@arashsaffari

Description

@arashsaffari

PHP Version

8.3.10

CodeIgniter4 Version

4.5.4

Shield Version

1.1.0

Which operating systems have you tested for this bug?

macOS

Which server did you use?

apache

Database

MySQL 8

Did you customize Shield?

Yes, but I believe my changes have nothing to do with the error.

What happened?

When changing a user's password, I encounter the following error:

strtolower(): Argument #1 ($string) must be of type string, null given

This error is caused by the NothingPersonalValidator.

Steps to Reproduce

if (! $this->validate($userValidationRules))
{
return redirect()->to('/users/update/' . $id)->withInput()->with('errors', $this->validator->getErrors());
}

Expected Output

Bildschirmfoto 2024-08-18 um 03 22 27

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions