Jump to content

souzadavi

Member
  • Content Count

    113
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by souzadavi

  1. I comment on one of those links, I hope one day get it done... thanks.
  2. WHMCS should give a better admin user management (delete, password change etc). It's cost a lot now delete an user from database. Only a senior dev could do it "safely". We hope get it a soon as possible. Thanks
  3. After update to WHMCS release 8.0.4-release.1 it fixed.
  4. I fixed it by updating the table: tblconfiguration. setting: Version and change the value to: 8.0.4-release.1 I really don't know if it is a good solution, but my WHMCS is loading again. Is the second time that my automatic update broken my WHMCS. I'm getting really scared to do a automatic update!
  5. I tried automatic update 8.0.2-release.1 to 8.0.4-release.1. But i'm getting this error, I don't have a clue how to fix. Any help will be nice! WHMCS\Exception\Application\InstallationVersionMisMatch: Database version '8.0.2-release.1' does not match file version '8.0.4-release.1' in /home/linknac/cliente.user.com.br/vendor/whmcs/whmcs-foundation/lib/Application/ApplicationServiceProvider.php:0 Stack trace: #0 /home/user/cliente.user.com.br/init.php(0): WHMCS\Application\ApplicationServiceProvider::checkVersion() #1 /home/user/cliente.user.com.br/extra/clientssummary.php(0): unknown() #2 {main} thanks
  6. Thanks to post the solution!!! This works here for me too!!!
  7. Some of my users is getting error on SSL icon.. Is any body get it also? SSL is syncing on cron, but the SSL is not found.
  8. Here is the translation for new variables for portuguese language; ///// WHMCS 8.0 $_LANG['navContacts'] = "Contatos"; $_LANG['navUserManagement'] = "Gerenciar Usuário"; $_LANG['navSwitchAccount'] = "Trocar Conta"; $_LANG['navAccountSecurity'] = "Segurança da conta"; $_LANG['never'] = "Nunca"; $_LANG['yourProfile'] = "Meu Perfil"; $_LANG['userManagement']['title'] = "Gerenciar Usuário"; $_LANG['userManagement']['managePermissions'] = "Gerenciar Permissões"; $_LANG['userManagement']['permissions'] = "Permissões"; $_LANG['userManagement']['usersFound'] = ":count Usuários Encontrado"; $_LANG['userManagement']['userDescriptor'] = "Endereço de E-mail / Último Login"; $_LANG['userManagement']['lastLogin'] = "Último Login"; $_LANG['userManagement']['actions'] = "Ações"; $_LANG['userManagement']['emailAddress'] = "Endereço de e-mail"; $_LANG['userManagement']['removeAccess'] = "Remover acesso"; $_LANG['userManagement']['pendingInvites'] = "Convite pendente"; $_LANG['userManagement']['inviteSent'] = "Convite enviado"; $_LANG['userManagement']['resendInvite'] = "Reenviar convite"; $_LANG['userManagement']['cancelInvite'] = "Cancelar convite"; $_LANG['userManagement']['accountOwnerPermissionsInfo'] = "Proprietários da conta sempre terão permissão total para a conta."; $_LANG['userManagement']['inviteNewUser'] = "Convidar novo usuário"; $_LANG['userManagement']['inviteEmail'] = "E-mail para convidar"; $_LANG['userManagement']['inviteNewUserDescription'] = "Convidar um novo usuário para sua conta. Se o convidado tiver uma conta, ele estará apto a acessar a conta com as credenciais dele. Se o usuário não tiver uma conta, ele será convidado para criar uma nova."; $_LANG['userManagement']['allPermissions'] = "Todas Permissões"; $_LANG['userManagement']['choosePermissions'] = "Selecionar permissões"; $_LANG['userManagement']['sendInvite'] = "Enviar convite"; $_LANG['userManagement']['removeAccessSure'] = "Você realmente deseja remover esse usuário da conta?"; $_LANG['userManagement']['removeAccessInfo'] = "Ele não terá mais acesso a essa conta."; $_LANG['userManagement']['cancelInviteSure'] = "Você tem certeza que deseja cancelar esse convite?"; $_LANG['userManagement']['cancelInviteInfo'] = "O usuário não será notificado desse cancelamento."; $_LANG['userManagement']['permissionsUpdateSuccess'] = "Permissão atualizada com sucesso!"; $_LANG['userManagement']['userRemoveSuccess'] = "Usuário removido com sucesso!"; $_LANG['userManagement']['inviteSentSuccess'] = "Convite enviado com sucesso!"; $_LANG['userManagement']['alreadyLinked'] = "O endereço de e-mail informado já esta cadastrado nessa conta"; $_LANG['userManagement']['alreadyInvited'] = "O endereço de e-mail informado já tem um convite ativo."; $_LANG['userManagement']['inviteResendSuccess'] = "Convite reenviado com sucesso!"; $_LANG['userManagement']['inviteCancelled'] = "Convite cancelado com sucesso!"; $_LANG['userManagement']['settings'] = "Configurações de segurança do usuário da conta."; $_LANG['userProfile']['profile'] = "Perfil"; $_LANG['userProfile']['changeEmail'] = "Alterar endereço de e-mail"; $_LANG['userProfile']['notVerified'] = "E-mail não verificado"; $_LANG['userProfile']['verified'] = "E-mail Verificado";
  9. Hello guys, @SubZeroFX there is no error. But this is the second Hook I need to disable because not working in this new version.... @brian! this is the tawkto addon, this solution would works, but i would like to use the addon. Thanks for all.
  10. The addon tawkto is creating a error o WHMCS 8.0. Below is the code. If you know how to fix please let me know. Thanks <?php use Illuminate\Database\Capsule\Manager as Capsule; function tawkto_check($vars) { $uid = $_SESSION['uid']; //get the code $widgetScript = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-script')->pluck('value'); if (is_array($widgetScript)) { $widgetScript = current($widgetScript); } if ($widgetScript) { // $widgetScript = addslashes($widgetScript); // this breaks the widget script when displayed on client side // $widgetScript = htmlentities($widgetScript); // this displays the script as html text and prevents proper rendering of the script $widgetScript = trim($widgetScript); } else { return; } // get the API key, if set $apikey = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-key')->pluck('value'); if (is_array($apikey)) { $apikey = current($apikey); } if ($apikey) { $apikey = trim($apikey); } //no tawk-y (for now) $isenabled = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-enable')->WHERE('value' , 'on')->count(); if (empty($isenabled)) { return; } //clients only $clientsonly = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-clientsonly')->WHERE('value' , 'on')->count(); if (!empty($clientsonly)) { if (empty($uid)) { return; } } //maybe we just wanna chat with guests? $guestonly = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-unregonly')->WHERE('value' , 'on')->count(); if (!empty($guestonly)) { if (!empty($uid)) { return; } } // no name is show by default $tawkname = ""; if (isset($uid)) { //to name, or not to name, that is the question $showname = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-name')->WHERE('value' , 'on')->count(); if ($showname) { //now we get what we get! foreach (Capsule::table('tblclients') ->WHERE('id', $uid)->get() as $tawkclients) { $fname = html_entity_decode($tawkclients->firstname, ENT_QUOTES); $tlname = html_entity_decode($tawkclients->lastname, ENT_QUOTES); $fname = addslashes($fname); $lname = addslashes($tlname); $company = $tawkclients->companyname; $emailaddress = $tawkclients->email; } // show in secure mode if api key is set. else, show basic name/email info if (($fname || $lname) && $emailaddress) { if ($apikey && strlen($apikey) > 10) { $hash = hash_hmac("sha256", $emailaddress, $apikey); $tawkname = "Tawk_API.visitor = { name : '{$fname} {$lname}', email : '{$emailaddress}', hash : '{$hash}' };"; } else { $tawkname = "Tawk_API.visitor = { name : '{$fname} {$lname}', email : '{$emailaddress}' };"; } } } } //get the key $tawkreturn = "$widgetScript"; $tawkreturn = str_ireplace('</script>', $tawkname.'</script>', $tawkreturn); return($tawkreturn); } function tawkto_check_invoice($vars) { $uid = $_SESSION['uid']; //get the code $widgetScript = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-script')->pluck('value'); if (is_array($widgetScript)) { $widgetScript = current($widgetScript); } if ($widgetScript) { // $widgetScript = addslashes($widgetScript); // this breaks the widget script when displayed on client side // $widgetScript = htmlentities($widgetScript); // this displays the script as html text and prevents proper rendering of the script $widgetScript = trim($widgetScript); } else { return; } // get the API key, if set $apikey = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-key')->pluck('value'); if (is_array($apikey)) { $apikey = current($apikey); } if ($apikey) { $apikey = trim($apikey); } //no tawk-y (for now) $isenabled = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-enable')->WHERE('value' , 'on')->count(); if (empty($isenabled)) { return; } //clients only $clientsonly = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-clientsonly')->WHERE('value' , 'on')->count(); if (!empty($clientsonly)) { if (empty($uid)) { return; } } //maybe we just wanna chat with guests? $guestonly = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-unregonly')->WHERE('value' , 'on')->count(); if (!empty($guestonly)) { if (!empty($uid)) { return; } } // no name is show by default $tawkname = ""; if (isset($uid)) { //to name, or not to name, that is the question $showname = Capsule::table('tbladdonmodules')->select('value')-> WHERE('module', '=' , 'tawkto')->WHERE('setting' , '=', 'tawkto-name')->WHERE('value' , 'on')->count(); if ($showname) { //now we get what we get! foreach (Capsule::table('tblclients') ->WHERE('id', $uid)->get() as $tawkclients) { $fname = html_entity_decode($tawkclients->firstname, ENT_QUOTES); $tlname = html_entity_decode($tawkclients->lastname, ENT_QUOTES); $fname = addslashes($fname); $lname = addslashes($tlname); $company = $tawkclients->companyname; $emailaddress = $tawkclients->email; } // show in secure mode if api key is set. else, show basic name/email info if (($fname || $lname) && $emailaddress) { if ($apikey && strlen($apikey) > 10) { $hash = hash_hmac("sha256", $emailaddress, $apikey); $tawkname = "Tawk_API.visitor = { name : '{$fname} {$lname}', email : '{$emailaddress}', hash : '{$hash}' };"; } else { $tawkname = "Tawk_API.visitor = { name : '{$fname} {$lname}', email : '{$emailaddress}' };"; } } } } //get the key $tawkreturn = "$widgetScript"; $tawkreturn = str_ireplace('</script>', $tawkname.'</script>', $tawkreturn); echo $tawkreturn; } // JUST COMMENT LINES BELOW TO FIX THE ERROR //add_hook("ClientAreaFooterOutput",1,"tawkto_check"); //add_hook("ClientAreaPageViewInvoice",1,"tawkto_check_invoice");
  11. Check your php timezone, whmcs and server time zone. It's look like there isn't time zone defined. They are the same?
  12. WHMCS 8.0 now is encrypting the passwords input custom fields on database. This is very bad because before this version, it wasn't.. So If you have password custom fields on products or customers you will be in trouble. WHMCS should automatic crypt this information on database automatic, but they didn't. So to fix it quickly just change the passwords custom fields to TEXT. I Hope the WHMCS team see it and do something before many people get crazy.....
  13. I always feel so bad when new versions came and a simple feature is not add. The Accepted Credit Card Types isn't add new brands... For Brazilian customers we lost so many sells because of this. Please add this new brands on credit card types selection: Aura, JCB, Diners, Discover, Elo, Hipercard and Hiper Thanks
  14. Fixed, I just removed the files from: /cpanelExtended/
  15. I did the automatic update version 7.9 to 8. Any help will be appreciated. Thanks I getting this error: Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. Whoops\Exception\ErrorException: Declaration of Monolog\Handler\StreamHandler::write(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(array $record): void in /home/linknac/cliente.domain.com.br/modules/servers/cpanelExtended/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:0 Stack trace: #0 /home/linknac/cliente.domain.com.br/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(64, 'Declaration of ...', '/home/linknac/c...', 0) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} UPDATE LOG INFOS: text/plain installer.log ( ASCII text ) [2020-10-19T20:22:34.650054-03:00][WHMCS Installer] DEBUG: Installer bootstrapped [] [2020-10-19T20:23:12.728645-03:00][WHMCS Installer] DEBUG: Installer bootstrapped [] [2020-10-19T20:23:30.243933-03:00][WHMCS Installer] DEBUG: Installer bootstrapped [] [2020-10-19T20:23:39.488087-03:00][WHMCS Installer] DEBUG: Installer bootstrapped [] [2020-10-19T20:23:39.529288-03:00][WHMCS Installer] INFO: Previous install detected [] [2020-10-19T20:23:39.529904-03:00][WHMCS Installer] DEBUG: An upgrade from 7.9.0-release.1 to 8.0.2-release.1 will be attempted. [] [2020-10-19T20:24:36.921418-03:00][WHMCS Installer] DEBUG: Installer bootstrapped [] [2020-10-19T20:24:36.961089-03:00][WHMCS Installer] INFO: Applying incremental updates to existing installation [] [2020-10-19T20:24:36.966284-03:00][WHMCS Installer] INFO: Applying Updates for 7.9.1-release.1 [] [2020-10-19T20:24:36.969878-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:36.970058-03:00][WHMCS Installer] INFO: Applying Updates for 7.9.2-release.1 [] [2020-10-19T20:24:36.973693-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:36.974515-03:00][WHMCS Installer] INFO: Applying Updates for 7.10.0-alpha.1 [] [2020-10-19T20:24:38.202874-03:00][WHMCS Installer] INFO: Performing Update Action: removeUnusedLegacyModules [] [2020-10-19T20:24:38.213523-03:00][WHMCS Installer] INFO: Performing Update Action: createKbImageTable [] [2020-10-19T20:24:38.218607-03:00][WHMCS Installer] INFO: Performing Update Action: createKbFileAssetSetting [] [2020-10-19T20:24:38.224582-03:00][WHMCS Installer] INFO: Performing Update Action: createSuggestedTldsSetting [] [2020-10-19T20:24:38.229874-03:00][WHMCS Installer] INFO: Performing Update Action: convertEmailMarketerData [] [2020-10-19T20:24:38.233363-03:00][WHMCS Installer] INFO: Performing Update Action: addWeeblyFreeProductAndAddon [] [2020-10-19T20:24:38.239404-03:00][WHMCS Installer] INFO: Performing Update Action: updateWeeblySettingsWithIncludeFree [] [2020-10-19T20:24:38.239878-03:00][WHMCS Installer] INFO: Performing Update Action: addMarketgooWelcomeEmail [] [2020-10-19T20:24:38.242319-03:00][WHMCS Installer] INFO: Performing Update Action: updateCreditCardExpiringSoon [] [2020-10-19T20:24:38.246015-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:38.246723-03:00][WHMCS Installer] INFO: Applying Updates for 7.10.0-beta.1 [] [2020-10-19T20:24:38.246805-03:00][WHMCS Installer] INFO: Performing Update Action: updateProductIdsInMarketConnectServices [] [2020-10-19T20:24:38.247152-03:00][WHMCS Installer] INFO: Performing Update Action: renameSymantecProductsAndDisable2YearCycles [] [2020-10-19T20:24:38.247842-03:00][WHMCS Installer] INFO: Performing Update Action: renameSymantecAddonsAndDisable2YearCycles [] [2020-10-19T20:24:38.248284-03:00][WHMCS Installer] INFO: Performing Update Action: updateSellingPriceOfDigiCertCertificates [] [2020-10-19T20:24:39.246755-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:39.247737-03:00][WHMCS Installer] INFO: Applying Updates for 7.10.0-rc.1 [] [2020-10-19T20:24:39.247822-03:00][WHMCS Installer] INFO: Performing Update Action: setWeeblyFreeDescription [] [2020-10-19T20:24:39.248955-03:00][WHMCS Installer] INFO: Performing Update Action: addSsoCustomRedirectScope [] [2020-10-19T20:24:39.251311-03:00][WHMCS Installer] INFO: Performing Update Action: enableAutoAuthIfKeyed [] [2020-10-19T20:24:39.253741-03:00][WHMCS Installer] INFO: Performing Update Action: createEmailImageTable [] [2020-10-19T20:24:39.255688-03:00][WHMCS Installer] INFO: Performing Update Action: createEmailFileAssetSetting [] [2020-10-19T20:24:39.258372-03:00][WHMCS Installer] INFO: Performing Update Action: removeTldPivotTables [] [2020-10-19T20:24:39.270688-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:39.270880-03:00][WHMCS Installer] INFO: Applying Updates for 7.10.0-rc.2 [] [2020-10-19T20:24:39.272138-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:39.272629-03:00][WHMCS Installer] INFO: Applying Updates for 7.10.0-release.1 [] [2020-10-19T20:24:39.272704-03:00][WHMCS Installer] INFO: Performing Update Action: updateEmailImagesAssetSetting [] [2020-10-19T20:24:39.273041-03:00][WHMCS Installer] INFO: Performing Update Action: updateMarketGooWelcomeEmail [] [2020-10-19T20:24:39.275010-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:39.275553-03:00][WHMCS Installer] INFO: Applying Updates for 7.10.1-release.1 [] [2020-10-19T20:24:39.377012-03:00][WHMCS Installer] INFO: Performing Update Action: addWeeblyFreeProductId [] [2020-10-19T20:24:39.377546-03:00][WHMCS Installer] INFO: Performing Update Action: fixWeeblyFreeAddonMissingModuleConfig [] [2020-10-19T20:24:39.379000-03:00][WHMCS Installer] INFO: Performing Update Action: fixWeeblySettingIncludeFreeLocation [] [2020-10-19T20:24:39.379374-03:00][WHMCS Installer] INFO: Performing Update Action: fixWeeblyProductSortOrder [] [2020-10-19T20:24:39.381514-03:00][WHMCS Installer] INFO: Performing Update Action: fixWeeblyFreeStockControl [] [2020-10-19T20:24:39.383019-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:39.383562-03:00][WHMCS Installer] INFO: Applying Updates for 7.10.2-release.1 [] [2020-10-19T20:24:39.383671-03:00][WHMCS Installer] INFO: Performing Update Action: checkForInvalidFileStorageLocation [] [2020-10-19T20:24:39.385500-03:00][WHMCS Installer] INFO: Performing Update Action: ensure2CheckOutDisabled [] [2020-10-19T20:24:39.387168-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:39.387647-03:00][WHMCS Installer] INFO: Applying Updates for 7.10.3-release.1 [] [2020-10-19T20:24:39.387719-03:00][WHMCS Installer] INFO: Performing Update Action: createStripeWebhook [] [2020-10-19T20:24:50.152077-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:24:50.154636-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.0-alpha.1 [] [2020-10-19T20:24:58.014048-03:00][WHMCS Installer] INFO: Performing Update Action: removeUnusedLegacyModules [] [2020-10-19T20:24:58.020330-03:00][WHMCS Installer] INFO: Performing Update Action: toggleAutoAuthOffForDeprecation [] [2020-10-19T20:24:58.022076-03:00][WHMCS Installer] INFO: Performing Update Action: createEncryptPasswordsJob [] [2020-10-19T20:24:58.026357-03:00][WHMCS Installer] INFO: Performing Update Action: mergeIndianStates [] [2020-10-19T20:24:58.044836-03:00][WHMCS Installer] INFO: Performing Update Action: enableCreateAddFundsInvoicePermission [] [2020-10-19T20:24:58.046047-03:00][WHMCS Installer] INFO: Performing Update Action: encryptGatewaySettings [] [2020-10-19T20:24:58.083478-03:00][WHMCS Installer] INFO: Performing Update Action: createUserAuthTables [] [2020-10-19T20:24:58.098942-03:00][WHMCS Installer] INFO: Performing Update Action: createNewUserTemplates [] [2020-10-19T20:24:58.102422-03:00][WHMCS Installer] INFO: Performing Update Action: createNewInviteTemplates [] [2020-10-19T20:24:58.103518-03:00][WHMCS Installer] INFO: Performing Update Action: dropSslProvisionDate [] [2020-10-19T20:24:58.105215-03:00][WHMCS Installer] INFO: Performing Update Action: migrateLastCronInvocationTime [] [2020-10-19T20:24:58.106877-03:00][WHMCS Installer] INFO: Performing Update Action: convertMailSettings [] [2020-10-19T20:24:58.112246-03:00][WHMCS Installer] INFO: Performing Update Action: autoSetProductGroupSlugs [] [2020-10-19T20:24:58.145265-03:00][WHMCS Installer] INFO: Performing Update Action: implementUniqueConstraintForConfiguration [] [2020-10-19T20:24:58.192701-03:00][WHMCS Installer] INFO: Performing Update Action: removeUnusedOrderForms [] [2020-10-19T20:24:58.195104-03:00][WHMCS Installer] INFO: Performing Update Action: convertPPCOTokens [] [2020-10-19T20:24:58.195532-03:00][WHMCS Installer] INFO: Performing Update Action: migrateV4AdminUsersToBlend [] [2020-10-19T20:24:58.195863-03:00][WHMCS Installer] INFO: Performing Update Action: createCampaignsTable [] [2020-10-19T20:24:58.206718-03:00][WHMCS Installer] INFO: Performing Update Action: registerNewEmailCronTasks [] [2020-10-19T20:24:58.217549-03:00][WHMCS Installer] INFO: Performing Update Action: migrateClientsToUsers [] [2020-10-19T20:24:58.332228-03:00][WHMCS Installer] INFO: Performing Update Action: migrateSubaccountsToUsers [] [2020-10-19T20:25:01.435103-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:01.435494-03:00][WHMCS Installer] INFO: Removed file /home/linknac/cliente.domain.com.br/vendor/whmcs/whmcs-foundation/lib/Mail.php [] [2020-10-19T20:25:01.438816-03:00][WHMCS Installer] INFO: Recursively removed directory /home/linknac/cliente.domain.com.br/vendor/php-imap [] [2020-10-19T20:25:01.439796-03:00][WHMCS Installer] INFO: Recursively removed directory /home/linknac/cliente.domain.com.br/pipe [] [2020-10-19T20:25:01.441541-03:00][WHMCS Installer] INFO: Recursively removed directory /home/linknac/cliente.domain.com.br/vendor/phlylabs [] [2020-10-19T20:25:01.442606-03:00][WHMCS Installer] INFO: Recursively removed directory /home/linknac/cliente.domain.com.br/modules/social/twitter [] [2020-10-19T20:25:01.442715-03:00][WHMCS Installer] INFO: Removed file /home/linknac/cliente.domain.com.br/vendor/whmcs/whmcs-foundation/lib/Cron/Task/DomainExpirySync.php [] [2020-10-19T20:25:01.447518-03:00][WHMCS Installer] INFO: Recursively removed directory /home/linknac/cliente.domain.com.br/extra/templates/v4 [] [2020-10-19T20:25:01.447589-03:00][WHMCS Installer] INFO: Removed file /home/linknac/cliente.domain.com.br/extra/templates/blend/menu.tpl [] [2020-10-19T20:25:01.447654-03:00][WHMCS Installer] INFO: Removed file /home/linknac/cliente.domain.com.br/vendor/symfony/translation/TranslatorInterface.php [] [2020-10-19T20:25:01.449043-03:00][WHMCS Installer] INFO: Recursively removed directory /home/linknac/cliente.domain.com.br/templates/orderforms/boxes [] [2020-10-19T20:25:01.450720-03:00][WHMCS Installer] INFO: Recursively removed directory /home/linknac/cliente.domain.com.br/templates/orderforms/modern [] [2020-10-19T20:25:01.450881-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.0-beta.1 [] [2020-10-19T20:25:01.452204-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:01.452377-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.0-beta.2 [] [2020-10-19T20:25:01.453562-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:01.453728-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.0-beta.3 [] [2020-10-19T20:25:01.454734-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:01.455278-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.0-rc.1 [] [2020-10-19T20:25:02.183736-03:00][WHMCS Installer] INFO: Performing Update Action: fixCronTaskNaming [] [2020-10-19T20:25:02.196330-03:00][WHMCS Installer] INFO: Performing Update Action: removeTwoYearMarketConnectSslTerms [] [2020-10-19T20:25:02.208159-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:02.220571-03:00][WHMCS Installer] INFO: Removed file /home/linknac/cliente.domain.com.br/includes/hookfunctions.php [] [2020-10-19T20:25:02.221403-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.0-rc.2 [] [2020-10-19T20:25:02.351094-03:00][WHMCS Installer] INFO: Performing Update Action: addOpenXchangeEmailTemplate [] [2020-10-19T20:25:02.354372-03:00][WHMCS Installer] INFO: Performing Update Action: setMarketConnectProductGroupSlugs [] [2020-10-19T20:25:02.393841-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:02.394058-03:00][WHMCS Installer] INFO: Removed file /home/linknac/cliente.domain.com.br/vendor/whmcs/whmcs-foundation/lib/Utility/Environment/CurrentUser.php [] [2020-10-19T20:25:02.394762-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.0-rc.3 [] [2020-10-19T20:25:02.396272-03:00][WHMCS Installer] INFO: Performing Update Action: updateOXEmailTemplate [] [2020-10-19T20:25:02.398580-03:00][WHMCS Installer] INFO: Performing Update Action: removeUnusedLegacyModules [] [2020-10-19T20:25:02.416254-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:02.416553-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.0-release.1 [] [2020-10-19T20:25:02.418795-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:02.419078-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.1-release.1 [] [2020-10-19T20:25:02.424930-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:02.425217-03:00][WHMCS Installer] INFO: Applying Updates for 8.0.2-release.1 [] [2020-10-19T20:25:02.432173-03:00][WHMCS Installer] INFO: Removing any obsolete file and directories [] [2020-10-19T20:25:03.192988-03:00][WHMCS Installer] INFO: Upgrade process completed. []
  16. @Patty unfortunately it's not possible to add new brands. Is really bad! Other talk about it at: From credit card whmcs I didn't find a way to use other credit card brands...On database the WHMCS do not save right the credit card brand. There is some similar request for WHMCS since 2016, https://requests.whmcs.com/topic/new-credit-card-brand-and-bins WHMCS develop team is never available to talk.... I developed other CIELO API 3.0 gateway module from invoice... So there it's possible to use other credit card brands... I will send the link in PM...
  17. I get it done with the resource: https://www.softaculous.com/docs/api/api/#import-an-installation-from-remote-server If somebody need the script i can send it, let me know.. PS.: the whmcs oficial ticket support team never help is really bad!
  18. @Kian I didn't find a way to call a php file safely from ajax. On the button I tried to use the function runModuleCommand but it doesn't find the softaculous function. onclick="runModuleCommand('custom','softaculousclone')"I I think because the function isnt on cpanel server modules. So do you know how can I call a ajax php function from that button "Bath Time" safe? thanks
  19. I'using another hook, my script is like that: add_hook('AdminClientServicesTabFields', 1, function($vars) { $id = $vars['id']; $output .= <<<HTML <script src='/assets/js/softaculous_clone.js'></script> <script type="text/javascript"> $(document).ready(function(){ $("#modcmdbtns").append(' <button type="button" class="btn btn-danger" onclick="softaculous_clone($id);" id="btnCloneSoftaculous"><i class="fa fa-wordpress" aria-hidden="true"></i> Clone WP</button>'); }); </script> HTML; echo $output; }); My guess is about the .js file, how could it does to be safe. I`m trying to use customs function, to call the php function, but i'm not sure if is the right way. function softaculous_clone(idService){ var data = { id: idService, modop: "custom", a: "softaculous_clone", } var request = new XMLHttpRequest(); request.open('POST', '/clientarea.php?action=productdetails', true); request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); request.onload = function() { if (request.status >= 200 && request.status < 400) cb(request.responseText); else console.log(1, 'Houve um erro :('); }; request.onerror = function() { console.log(2, 'Houve um erro :('); }; request.send(data); } thanks, any information will be very appreciated.
  20. Thanks very much to replied... I would like to set a button to install automatic WordPress site from Softaculous clone process. https://www.softaculous.com/docs/api/api/#clone-an-installed-script The PHP function to create the button action should I call from jquery also? Or there is another better way to do? thanks.
  21. Hello guys, I would like to developed a new module command button inside of cPanel server module. I attached under here a image to see where I would like to have a new button. I didn't figured out how to create it, please any one know could get it done? I would like only some directions to get it done... thanks
  22. Hello guys please could you add a class at link on footer of viewinvoicetemplate.tpl to default template? SEARCH FOR: <a href="clientarea.php"> REPLACE FOR: <a href="clientarea.php" class="btn btn-success"> RESULT: Thanks
  23. Hello, I'm trying to use the addon: https://docs.whmcs.com/Licensing_Addon looks easy but I'm getting so many errors. I using the examplo code file. But i'm getting the follows errors: - Domain Invalid - License Suspended - License Suspended for Duplicate Trials Use (7,11) My CODE in under here: /**************** INICIO LICENCA ***************/ function meuCartaoPagamento_check_license($licensekey, $localkey='') { $whmcsurl = 'https://whmcs.meudominio.com.br/'; $licensing_secret_key = 'secretKey'; $localkeydays = 90; $allowcheckfaildays = 5; $check_token = time() . md5(mt_rand(100000000, mt_getrandmax()) . $licensekey); $checkdate = date("Ymd"); $domain = $_SERVER['SERVER_NAME']; $usersip = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR']; $dirpath = dirname(__FILE__); $verifyfilepath = 'modules/servers/licensing/verify.php'; $localkeyvalid = false; if ($localkey) { $localkey = str_replace("\n", '', $localkey); # Remove the line breaks $localdata = substr($localkey, 0, strlen($localkey) - 32); # Extract License Data $md5hash = substr($localkey, strlen($localkey) - 32); # Extract MD5 Hash if ($md5hash == md5($localdata . $licensing_secret_key)) { $localdata = strrev($localdata); # Reverse the string $md5hash = substr($localdata, 0, 32); # Extract MD5 Hash $localdata = substr($localdata, 32); # Extract License Data $localdata = base64_decode($localdata); $localkeyresults = json_decode($localdata, true); $originalcheckdate = $localkeyresults['checkdate']; if ($md5hash == md5($originalcheckdate . $licensing_secret_key)) { $localexpiry = date("Ymd", mktime(0, 0, 0, date("m"), date("d") - $localkeydays, date("Y"))); if ($originalcheckdate > $localexpiry) { $localkeyvalid = true; $results = $localkeyresults; $validdomains = explode(',', $results['validdomain']); if (!in_array($_SERVER['SERVER_NAME'], $validdomains)) { $localkeyvalid = false; $localkeyresults['status'] = "Invalid"; $results = array(); } $validips = explode(',', $results['validip']); if (!in_array($usersip, $validips)) { $localkeyvalid = false; $localkeyresults['status'] = "Invalid"; $results = array(); } $validdirs = explode(',', $results['validdirectory']); if (!in_array($dirpath, $validdirs)) { $localkeyvalid = false; $localkeyresults['status'] = "Invalid"; $results = array(); } } } } } if (!$localkeyvalid) { $responseCode = 0; $postfields = array( 'licensekey' => $licensekey, 'domain' => $domain, 'ip' => $usersip, 'dir' => $dirpath, ); if ($check_token) $postfields['check_token'] = $check_token; $query_string = ''; foreach ($postfields AS $k=>$v) { $query_string .= $k.'='.urlencode($v).'&'; } if (function_exists('curl_exec')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $whmcsurl . $verifyfilepath); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $query_string); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); $responseCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); } else { $responseCodePattern = '/^HTTP\/\d+\.\d+\s+(\d+)/'; $fp = @fsockopen($whmcsurl, 80, $errno, $errstr, 5); if ($fp) { $newlinefeed = "\r\n"; $header = "POST ".$whmcsurl . $verifyfilepath . " HTTP/1.0" . $newlinefeed; $header .= "Host: ".$whmcsurl . $newlinefeed; $header .= "Content-type: application/x-www-form-urlencoded" . $newlinefeed; $header .= "Content-length: ".@strlen($query_string) . $newlinefeed; $header .= "Connection: close" . $newlinefeed . $newlinefeed; $header .= $query_string; $data = $line = ''; @stream_set_timeout($fp, 20); @fputs($fp, $header); $status = @socket_get_status($fp); while (!@feof($fp)&&$status) { $line = @fgets($fp, 1024); $patternMatches = array(); if (!$responseCode && preg_match($responseCodePattern, trim($line), $patternMatches) ) { $responseCode = (empty($patternMatches[1])) ? 0 : $patternMatches[1]; } $data .= $line; $status = @socket_get_status($fp); } @fclose ($fp); } } if ($responseCode != 200) { $localexpiry = date("Ymd", mktime(0, 0, 0, date("m"), date("d") - ($localkeydays + $allowcheckfaildays), date("Y"))); if ($originalcheckdate > $localexpiry) { $results = $localkeyresults; } else { $results = array(); $results['status'] = "Invalid"; $results['description'] = "Remote Check Failed"; return $results; } } else { preg_match_all('/<(.*?)>([^<]+)<\/\\1>/i', $data, $matches); $results = array(); foreach ($matches[1] AS $k=>$v) { $results[$v] = $matches[2][$k]; } } if (!is_array($results)) { die("Invalid License Server Response"); } if ($results['md5hash']) { if ($results['md5hash'] != md5($licensing_secret_key . $check_token)) { $results['status'] = "Invalid"; $results['description'] = "MD5 Checksum Verification Failed"; return $results; } } if ($results['status'] == "Active") { $results['checkdate'] = $checkdate; $data_encoded = json_encode($results); $data_encoded = base64_encode($data_encoded); $data_encoded = md5($checkdate . $licensing_secret_key) . $data_encoded; $data_encoded = strrev($data_encoded); $data_encoded = $data_encoded . md5($data_encoded . $licensing_secret_key); $data_encoded = wordwrap($data_encoded, 80, "\n", true); $results['localkey'] = $data_encoded; } $results['remotecheck'] = true; } unset($postfields,$data,$matches,$whmcsurl,$licensing_secret_key,$checkdate,$usersip,$localkeydays,$allowcheckfaildays,$md5hash); return $results; } function meuCartaoPagamento_licenca($licensekey){ $localkey = ""; $base = __DIR__."/meuCartaoPagamento-licenca.txt"; if (!file_exists($base)) { ///first check $results = meuCartaoPagamento_check_license($licensekey); $localkey = $results['localkey']; }else{ /// LER O ARQUIVO $handle = fopen($base, "r"); if ($handle) { $txt = explode("::", trim(fgets($handle))); fclose($handle); if($txt == false){ }else{ $licensekey = $txt[0]; $localkey = $txt[1]; $results = meuCartaoPagamento_check_license($licensekey, $localkey); } } } if(isset($results['localkey']) && $results['status'] == "Active"){ $textfile = fopen($base, "w") or die("Não foi possível abrir o arquivo."); $contents = $licensekey."::".$results['localkey']."::".date('Y h:i:s A'); fwrite($textfile, $contents); fclose($textfile); } // Interpret response switch ($results['status']) { case "Active": return "Active"; case "Invalid": return "Invalid". print_r($results, true)."TxtFile:".$licensekey."::".$localkey; //break; case "Expired": //die("Chave de Licença Expirada"); return "Expired". print_r($results, true); //break; case "Suspended": //die("Chave de Licença Suspensa"); return "Suspended". print_r($results, true); //break; default: //die("Resposta Inválida"); return "Erro". print_r($results, true); //break; } } /**************** FIM LICENCA ***************/ To stop the errors i disabled the domain check. So my products details is: But I still getting error, any help will be appreciated. My Check code is right? Thanks.
×
×
  • 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