Could not convert to string
public php v1 · immutablewhile($row = $database->fetch_object($languages)){ $options->cache($options->template); /** * Works, echos out the correct items */ echo($row->shortname . '<br />'); echo($row->title . '<br />'); /** * Throws an error, Catchable fatal error: Object of class Template could not be converted to string in /home/sites/uvshock.co.uk/public_html/fenix/includes/class_template.php on line 42 */ $options->replace('shortname', $row->shortname); $options->replace('title', $row->title);}