Tiby08 Posted August 12, 2015 Share Posted August 12, 2015 Hello, I updated whmcs v6.0.1 and my template file not work, if i use code.Enabled the code on admin, but this is the problem: Fatal error: Using $this when not in object context in /home/*****/public_html/billing/vendor/smarty/smarty/libs/SmartyBC.class.php(465) : eval()'d code on line 3 SmartyBC.class.php 465 line: eval($content); So whats the problem? :-/ 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 12, 2015 Share Posted August 12, 2015 where is your code? 0 Quote Link to comment Share on other sites More sharing options...
Tiby08 Posted August 12, 2015 Author Share Posted August 12, 2015 tpl: {php} <?php $serviceid = $this->_tpl_vars['id']; $servicedata = get_query_vals("tblhosting","",array("id"=>$serviceid)); $params = array(); {/php} or, but not work..: {php} $serviceid = $this->_tpl_vars['id']; $servicedata = get_query_vals("tblhosting","",array("id"=>$serviceid)); $params = array(); {/php} 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 12, 2015 Share Posted August 12, 2015 try to replace: $this->_tpl_vars['id']; with: $smarty->get_template_vars('id'); 0 Quote Link to comment Share on other sites More sharing options...
Tiby08 Posted August 12, 2015 Author Share Posted August 12, 2015 Ohh man, thanks. Working, thanks mate. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.