Welcome Guest, Not a member yet? Register   Sign In
issue with logging on CI3
#1

I am not getting my CI error log. I have set the following in config.php:
$config['log_threshold'] = 4;
$config['log_file_permissions'] = 0644;
Everything else dealing with logging is default. Any place else I need to turn on logging?
proof that an old dog can learn new tricks
Reply
#2

(This post was last modified: 11-22-2022, 08:18 AM by richb201.)

I guess logging doesn't work in CI3 anymore.
proof that an old dog can learn new tricks
Reply
#3

You can test logging.

PHP Code:
log_message('error''log test'); 

And check the logs folder permission.
Reply
#4

I was looking on the client rather than the server.
Here is the error: Cannot use object of type stdClass as array
here is the code that is creating it.
$query=$this->db->query($sql, array($_SESSION['userid'], $_SESSION['campaign'],$bus_comp,$taxyear));
$row=$query->result();
$id=$row[0]['id'];

should this be $id=$row[0]=>id?
If not, what is wrong with it?
proof that an old dog can learn new tricks
Reply
#5

turned out to be -> not =>

All solved!
proof that an old dog can learn new tricks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB