Welcome Guest, Not a member yet? Register   Sign In
Codeigniter not showing helpful error messgaes
#3

(This post was last modified: 10-10-2020, 12:04 PM by paulbalandan.)

The error is clear. You are passing a resource type as the first parameter of htmlspecialchars, which usually accepts a string. Please check the variable you are passing to the first param.

Ok. Scrap my last comment. The error is from the built in error exception file.

Do you have somewhere in your code that you defined a constant equivalent to a resource? Something like define('STREAM', STDOUT); or define('MY_FILE', fopen('path/to/file', 'rb'));

The problem is that the file is printing all defined constants and escaping them using htmlspecialchars. But somewhere a user defined constant is set to a resource so this causes a fatal error.
Reply


Messages In This Thread
RE: Codeigniter not showing helpful error messgaes - by paulbalandan - 10-10-2020, 11:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB