am getting this error while trying to register a new account in joomla "PHP Catchable fatal error: Object of class CTemplateHelper could not be converted to string" on line 15 i had installed jomsocial so registration done using that and jomsocial using a custom template. this is the file which create this error, itz a jomsocial template file. <?php /** * @package JomSocial * @subpackage Core * @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved! * @license GNU/GPL, see LICENSE.php */ // no direct access defined('_JEXEC') or die('Restricted access'); ?> <center> <table bgcolor="#FFFFFF" width="640" cellpadding="0" cellspacing="0" border="0" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #333333; text-align: left;"> <tr> <td background="<?php echo $template . '/images/mail_header.png' ?>" height="30"></td> </tr> <tr> <td background="<?php echo $template . '/images/mail_body.png' ?>" style="padding: 15px;"> <h1 style="font-family: Arial, Helvetica, sans-serif; font-size: 28px; font-weight: bold; margin: 0 0 20px 0; border-bottom: 1px solid #CCCCCC;"><a href="<?php echo JURI::root();?>" style="text-decoration: none; color: #333333;"><?php echo $sitename;?></a></h1> <?php echo $content; ?> </td> </tr> <tr> <td background="<?php echo $template . '/images/mail_footer.png' ?>" height="10"></td> </tr> <tr> <td style="font-size: 11px; padding: 10px;"><center><?php echo $this->getPoweredByLink();?></a></center></td> </tr> </table> </center> PHP: and line 15 is <td background="<?php echo $template . '/images/mail_header.png' ?>" height="30"></td> PHP: please help. thanks