-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ErrorException #1 htmlspecialchars() expects parameter 1 to be string #702
Comments
htmlspecialchars takes 4 parameters. the last ones are optional. So echo out your $value and see if it is a string. |
Shouldn't your auth.html be named auth.php ? |
I don't think so, .html just an extension for the url. |
A better option than deleting the line (and the potential protections they give) is to try and fix it. Not sure how an object was getting through when we were checking to ensure it wasn't an object, but that's no biggie. I've changed it to check if it's a string which should keep us safe. Try again and let me know how it works for you. |
It's work! Thanks. |
I have this error Exception. I wonder why i received this error and how to fix it. I decided to delete this display full error detail.
When i delete this line
ci4/application/Views/errors/html/error_exception.php(149): htmlspecialchars(Object(__PHP_Incomplete_Class), 8, 'UTF-8')
so this error has display normally.After i delete this line, result like this:
Does this negatively affect the display of errors?
The text was updated successfully, but these errors were encountered: