Jump to content

whmcs v6.0.1 template php problem


Tiby08

Recommended Posts

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? :-/

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated