Closed GeneralFutz closed 3 months ago
Temporarily check with the change below. https://github.com/codeigniter4/shield/blob/341ba47106387edc4e2b55531f21a59579d79746/src/Models/CheckQueryReturnTrait.php#L44
$validationErrors = service('validation')->getErrors();
I sent #1088
PHP Version
8.2.4
CodeIgniter4 Version
4.5.0
Shield Version
1.0.2
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.4-28
Did you customize Shield?
No
What happened?
After updating to Codeigniter 4.5 through
composer update
, (and copying the required files), also after and fresh installation of a new project through Composer, the Login and Register pages return the following error:Call to a member function getErrors() on null
The registration was successful with a new entries in the users and identities tables.
When a validation error does occur, the proper errors are displayed as intended.
Steps to Reproduce
As said above this happened after composer update and new installation of latest Codeigniter version. No changes to Shield Controllers or routes.
Expected Output
We should be redirected to the default pages on success.
Anything else?
No response