Severity: 4096, Object of class stdClass could not be converted to string
Error Description:
A PHP Error was encountered
Severity: 4096
Message: Object of class stdClass could not be converted to string
Filename: libraries/Parser.php
Line Number: 101
Solution:
if (is_array($val))
{
$template = $this->_parse_pair($key, $val, $template);
}
elseif(is_object($val)){
$val = (array)$val;
$template = $this->_parse_pair($key, $val, $template);
}
else
{
$template = $this->_parse_single($key, (string)$val, $template);
}
Developer’s Notes: I know that changing the core files is never been encouraged. I am using the same parse library in application/libraries. You may extend it as well and modify the required method only. No need to make changes in core.
Last updated: March 19, 2014