Jump to content

massa

Member
  • Content Count

    17
  • Joined

  • Last visited

Community Reputation

0 Neutral

About massa

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I just uplad old files, but WHMCS still doesn't work. Down for Maintenance (Err 2) An upgrade is currently in progress... Please come back soon... WHMCS\Exception\Application\InstallationVersionMisMatch: Database version '8.1.0-beta.1' does not match file version '8.0.4-release.1' in /home/centoserver/public_html/ap/vendor/whmcs/whmcs-foundation/lib/Application/ApplicationServiceProvider.php:0 Stack trace: #0 /home/centoserver/public_html/ap/init.php(0): WHMCS\Application\ApplicationServiceProvider::checkVersion() #1 /home/centoserver/public_html/ap/index.php(0): unknown() #2 {main}
  2. After automatically update, I can't load my WHMCS installation. Please cay solve this ASAP, and make whmcs without bugs. Lately mote things is not working then it is working. Please WHMCSS team get serious. Best regards...
  3. This is my PHP code: {php} /////////////////////////////////////////////////////////////////////////// $ticketid = $template->get_template_vars('ticketid'); $subject = $template->getTemplateVars('subject'); $lastreply = $template->get_template_vars('lastreply'); $tidc = $template->get_template_vars('tid'); $res4 = WHMCS\Database\Capsule::table('tblticketowners') ->select(WHMCS\Database\Capsule::raw('adminid, onhold')) ->where('tid', '=', $ticketid) ->first(); $owner = $res4->adminid; $onhold = $res4->onhold; $adminid = WHMCS\Session::get("adminid"); $res4 = WHMCS\Database\Capsule::table('tbladmins') ->select(WHMCS\Database\Capsule::raw('firstname, lastname')) ->where('id', '=', $owner) ->first(); $ownerusername = $res4->firstname.' '.$res4->lastname; if( count( $res4 ) == 0 ) echo '<h2>#'.$tidc.' - '.$subject.' (Nedodjeljen)</h2>'; else echo '<h2>#'.$tidc.' - '.$subject.' (Preuzeo: '.$ownerusername.')</h2>'; echo '<div class="ticketlastreply">Last Reply: '.$lastreply.'</div>'; $res4 = WHMCS\Database\Capsule::table('tbltickets') ->select(WHMCS\Database\Capsule::raw('status')) ->where('id', '=', $ticketid) ->first(); $tstatus = $res4->status; echo "<script type='text/javascript'> function SubmitForm( action, tid, aid ) { if( action == 'preuzmi' ) { $.ajax({ url: 'supportticketsupdateowner.php?action=checkassign&tid='+tid+'&aid='+aid, type: 'post', dataType: 'json', success: function(data) { if( data != '' ) { var s = confirm( 'Ticket je već preuzet od strane administratora '+data+'! Ukoliko i dalje želite preuzeti tiket kliknite na OK, za odustati kliknite CANCEL.' ); if( s == true ) { var messagetext = document.getElementById('replymessage').value; var ownerid = document.getElementById('adminowner').value; window.location = 'supportticketsupdateowner.php?action=' + action + '&tid=' + tid + '&adminowner=' + ownerid + '&aid=' + aid + '&replymsg=' + messagetext; } } else { var messagetext = document.getElementById('replymessage').value; var ownerid = document.getElementById('adminowner').value; window.location = 'supportticketsupdateowner.php?action=' + action + '&tid=' + tid + '&adminowner=' + ownerid + '&aid=' + aid + '&replymsg=' + messagetext; } } }); } else { var messagetext = document.getElementById('replymessage').value; var ownerid = document.getElementById('adminowner').value; window.location = 'supportticketsupdateowner.php?action=' + action + '&tid=' + tid + '&adminowner=' + ownerid + '&aid=' + aid + '&replymsg=' + messagetext; } } function SubmitForm2( action, tid, aid ) { if( action == 'preuzmi' ) { $.ajax({ url: 'supportticketsupdateowner.php?action=checkassign&tid='+tid+'&aid='+aid, type: 'post', dataType: 'json', success: function(data) { if( data != '' ) { var s = confirm( 'Ticket je već preuzet od strane administratora '+data+'! Ukoliko i dalje želite preuzeti tiket kliknite na OK, za odustati kliknite CANCEL.' ); if( s == true ) { var messagetext = document.getElementById('replymessage').value; var ownerid = document.getElementById('adminowner2').value; window.location = 'supportticketsupdateowner.php?action=' + action + '&tid=' + tid + '&adminowner=' + ownerid + '&aid=' + aid + '&replymsg=' + messagetext; } } else { var messagetext = document.getElementById('replymessage').value; var ownerid = document.getElementById('adminowner2').value; window.location = 'supportticketsupdateowner.php?action=' + action + '&tid=' + tid + '&adminowner=' + ownerid + '&aid=' + aid + '&replymsg=' + messagetext; } } }); } else { var messagetext = document.getElementById('replymessage').value; var ownerid = document.getElementById('adminowner2').value; window.location = 'supportticketsupdateowner.php?action=' + action + '&tid=' + tid + '&adminowner=' + ownerid + '&aid=' + aid + '&replymsg=' + messagetext; } } </script>"; if( $owner == $adminid ) { if( $tstatus == "Closed" ) { $onclickstring = "SubmitForm( 'otvori', ".$ticketid.", ".$adminid." )"; echo '<input type="button" name="otvori" id="otvori" value="Otvori" onclick="'.$onclickstring.'" class="btn btn-small btn-primary"/>&nbsp;&nbsp;'; } else { $onclickstring = "SubmitForm( 'zatvori', ".$ticketid.", ".$adminid." )"; echo '<input type="button" name="zatvori" id="zatvori" value="Zatvori" onclick="'.$onclickstring.'" class="btn btn-small btn-primary"/>&nbsp;&nbsp;'; } if( $onhold == 1 ) { $onclickstring = "SubmitForm( 'otpusti', ".$ticketid.", ".$adminid." )"; echo '<input type="button" name="onhold" id="onhold" value="Otpusti" onclick="'.$onclickstring.'" class="btn btn-small btn-primary"/>&nbsp;&nbsp;'; } else { $onclickstring = "SubmitForm( 'zadrzi', ".$ticketid.", ".$adminid." )"; echo '<input type="button" name="onhold" id="onhold" value="Zadr&#382;i" onclick="'.$onclickstring.'" class="btn btn-small btn-primary"/>&nbsp;&nbsp;'; } } else { $onclickstring = "SubmitForm( 'preuzmi', ".$ticketid.", ".$adminid." )"; echo '<input type="button" name="preuzmi" id="preuzmi" value="Preuzmi" onclick="'.$onclickstring.'" class="btn btn-small btn-primary"/>&nbsp;&nbsp;'; } echo '<select name="adminowner" id="adminowner" style="width:250px; height:34px; top:2px; position:relative;">'; $res4 = WHMCS\Database\Capsule::table('tbladmins') ->select(WHMCS\Database\Capsule::raw('id, firstname, lastname')) ->where('username', '<>', 'apiuser') ->get(); foreach( $res4 as $adminobj ) { $ownerid = $adminobj->id; $firstname = $adminobj->firstname; $lastname = $adminobj->lastname; if( $adminid == $ownerid ) echo '<option selected value="'.$ownerid.'">'.$firstname.' '.$lastname.'</option>'; else echo '<option value="'.$ownerid.'">'.$firstname.' '.$lastname.'</option>'; } echo '</select>&nbsp;&nbsp;'; $onclickstring = "SubmitForm( 'dodijeli', ".$ticketid." )"; echo '<input type="button" name="dodijeli" id="dodijeli" value="Dodijeli" onclick="'.$onclickstring.'" class="btn btn-small btn-primary"/> '; /////////////////////////////////////////////////////////////////////////// {/php} and also: {if $smarty.session.cart.promo} <span>Promotional Code: {$smarty.session.cart.promo}</span> <span>Discount: {$currency.prefix}{$carttotals.rawdiscount}{$currency.suffix}</span> <span class="amt">{$currency.prefix}{$carttotals.rawtotal}{$currency.suffix}</span> <span>Total Due Today with promo <b>{$smarty.session.cart.promo}</b></span> {/if}
  4. I added your code to configuration.php but I still got an error Error: Call to a member function get_template_vars() on null in
  5. So, how do I enable PHP smarty to work as in WHMCS7? I just tried to add it to the comf following the instructions from the link but without success, I can't enable PHP smarty to work again.
  6. Hello, after I make a upgrade to WHMCS 8 i have problem with templates which use PHP Smarty. [29-Sep-2020 18:41:46 Europe/Sarajevo] [WHMCS Application] ERROR: Error: Call to a member function get_template_vars() on null in /home/xxxx/whmcsmd/templates_c/9696ac8c6e5322b1d8d49c7704c10ff2f1fa60a8_0.file.viewticket.tpl.php:49 Stack trace: #0 /home/xxxx/public_html/ap/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5f73638ecb4d98_14662502(Object(Smarty_Internal_Template)) #1 /home/xxxx/public_html/ap/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #2 /home/xxxx/public_html/ap/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #3 /home/xxxx/public_html/ap/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0) #4 /home/xxxx/public_html/ap/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #5 /home/xxxx/public_html/ap/vendor/whmcs/whmcs-foundation/lib/Smarty.php(0): Smarty_Internal_TemplateBase->fetch('tpl/v...', NULL, NULL, NULL, false, true, false) #6 /home/xxxx/public_html/ap/vendor/whmcs/whmcs-foundation/lib/Admin.php(0): WHMCS\Smarty->fetch('tpl/v...') #7 /home/xxxx/public_html/ap/vendor/whmcs/whmcs-foundation/lib/Admin.php(0): WHMCS\Admin->output() #8 /home/xxxx/public_html/ap/chadm/supporttickets.php(2665): WHMCS\Admin->display() #9 {main} {"exception":"[object] (Error(code: 0): Call to a member function get_template_vars() on null at /home/xxxx/whmcsmd/templates_c/9696ac8c6e5322b1d8d49c7704c10ff2f1fa60a8_0.file.viewticket.tpl.php:49)"} []
  7. Hi, I would like to remove one configurable option and just from client panel. Can you please tell me how to do that? Thanks!
  8. Hi, when I try to upgrade from 7.1.2 to 7.2 i got a error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'client_id' in 'field list' (SQL: update tblhostingaddons set client_id = 1110 where id = 18) Does ennyone know what is th problem?
  9. There is not possibility for download that fix: "You are not logged in or you do not have permission to access this page."
  10. Yes, I'm contacted solusvm support and they tell me "Please report this to WHMCS, its a well known issue and they have fix for this issue"
  11. Hi, I have same problem with solusvm module. Please can you tell me how can I solve this problem?
  12. Hi, I'm using 2co as payment gateway. When user goes to "Create Automated Recurring Subscription" he gets error "Unfortunately your payment attempt was not successful. Please try again or contact support." In gateway log it says: Errors => Array ( [errors] => Array ( [0] => Array ( code => UNAUTHORIZED message => Authentication failed ) ) ) Does anyone knows what could be the problem? Please notice that make off payment is working fine, problem appeared only with recurring payment.
  13. Happy new year for everyone. New year and new problems. Reset invoice number not work for me. Today is 01.01.2015, but WMCS stil count numeration from last year. I use EU VAT ADDON an i set in addon, Auto Reset Numbering to annually. Does some one know what is the problem?
  14. does someone have solution for this problem?
  15. Nate, As for your answer to my problem # 1, your claim, at least in my case, is not correct. You say: The first reported issue is slightly complicated, when a item should be renewed depends on when the product was activated / the order accepted, not when the related invoice was paid. this is what I want too; that renew date depends on when the product is activated, ie. order accepted but WHMCS with me is not doing so, and I was also confirmed that via support ticket. Renew date strictly depends on when the order was placed and not when the product is activated, I'll repeat again my example. User makes an order on 10/10/2014. and choose pay via bank transfer. Makes a payment after 20 days (30th of October of 2014.) I activate hosting on 10/30/2014 (20 days after order is placed). After activation of hosting service and accept order invoice an service is created for the period from 10/10/2014. till 10/10/2015. instead of 10/30/2014. till 10/30/2015. With that I stole from my client 20 days. Date of registration should be date of product activation, logically. Due date should be date of product activation+cycle. Problem 2 and 3: User account can not be closed because the same user, under the same e-mail address can not have two accounts, and he wants to be re-registered using the same email address. Example: Nate has a firm XXXX LLC, after a few years he close that company and opens a new one YYYY LLC, or wants to buy as physical entity uses has standard e-mail address. When orders will put out the message that there is already a client with this e-mail address! So, to open a new user account, I have to delete the old one. Deleting or modifying data on the old client account is not an option because with that I'll change all information on any purchases from the past, which is, as I have already said, a criminal offense. I must have all invoices in electronic form too. Printing copies is not solution when it comes to a large number of hosting clients. Module Fixed Invoice data is not working in the new versions of WHMCS, so this is also not a solution. from the very beginning WHMCS had to define some things, at least for the invoice. No change inside the option of WHMCS or client option should not affect the data stored on the already generated invoice.
×
×
  • 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