-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: [CI 4.5.0] TypeError: CodeIgniter\Database\MySQLi\Connection::_escapeString(): Argument #1 ($str) must be of type string, CodeIgniter\I18n\Time given #1092
Comments
We are aware of this behavior. But so far no decision has been made to fix it. I believe this is related to CI4.5 and not Shield. vendor\codeigniter4\framework\system\Database\BaseConnection.php: /**
* Platform independent string escape.
*
* Will likely be overridden in child classes.
*/
protected function _escapeString(string|\CodeIgniter\I18n\Time $str): string
{
return str_replace("'", "''", remove_invisible_characters($str, false));
} vendor\codeigniter4\framework\system\Database\MySQLi\Connection.php: /**
* Platform-dependant string escape
*/
protected function _escapeString(string|\CodeIgniter\I18n\Time $str): string
{
if (! $this->connID) {
$this->initialize();
}
return $this->connID->real_escape_string((string)$str);
} duplicate: #1086 |
me too i got same error, Has this been updated in the release version? |
CodeIgniter 4.5.1 already released, please update and verify |
Update ke CI 4.5.1 |
makasi bang infonya |
Upgrade to CI v4.5.1 and Shield v1.0.3. |
PHP Version
8.1
CodeIgniter4 Version
4.5.0
Shield Version
dev-develop
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MySQL 5.6
Did you customize Shield?
No.
What happened?
When logging in and an error appears.
Steps to Reproduce
...
Expected Output
...
Anything else?
No response
The text was updated successfully, but these errors were encountered: