CodeIgniter Forums
Profiler Error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Profiler Error (/showthread.php?tid=49992)



Profiler Error - El Forum - 03-10-2012

[eluser]CodeIgniterNewbie[/eluser]
I have profiler enabled and suddenly started getting this:

Code:
A PHP Error was encountered
Severity: Warning
Message: htmlspecialchars() expects parameter 1 to be string, object given
Filename: libraries/Profiler.php
Line Number: 514

I'm not sure what triggered this as I was using this without problem. See: https://github.com/EllisLab/CodeIgniter/pull/334. I'm pretty sure my config does not have any objects. The code right before line 514 has this:

Code:
if (is_array($val))
{
$val = print_r($val, TRUE);
}

Any ideas what might be wrong?


Profiler Error - El Forum - 03-10-2012

[eluser]CodeIgniterNewbie[/eluser]
Problem solved for me. Turns out, I can't store an object in session.