Jump to content

m107

Member
  • Posts

    62
  • Joined

  • Last visited

Everything posted by m107

  1. I am trying to remove the Client Email Header Content for specific email template. The following hook code did not work: <?php add_hook('EmailPreSend', 1, function($vars) { // Check if the email being sent is the one with ID 12 if ($vars['messagename'] == '12') { // Remove client header content $vars['body'] = preg_replace('/<!-- Client Header Start -->(.*?)<!-- Client Header End -->/s', '', $vars['body']); } return $vars; });
  2. Is this correct? <input type="hidden" name="rootpw" class="form-control" id="inputRootpw" value={"@#$*123456789abcdefghkmnpqrstwxyzABCDEFGHKMNPQRSTUVWXYZ"|str_shuffle|truncate:16:""} >
  3. @Remitur I know and I want to disable it, but my question is what to do now? How can I generate random password and hostname from now on?
  4. Exactly. WHMCS support gave me this page: https://docs.whmcs.com/Smarty_Security_Policy#Allow_Smarty_PHP_Tags But I could not understand it.
  5. No no, you can see I was using "{php}", now I cant use it.
  6. In my website order form, I adjusted the code to generate a random hostname and password instead of asking the client. <input type="hidden" name="hostname" class="form-control" id="inputHostname" value="{php}$rdmpww = substr(str_shuffle("abcdefghkmnpqrstwxyzABCDEFGHKMNPQRSTUVWXYZ"), 0, 5); echo $rdmpww;{/php}" > <input type="hidden" name="rootpw" class="form-control" id="inputRootpw" value="{php}$rdmpw = substr(str_shuffle("@#$*123456789abcdefghkmnpqrstwxyzABCDEFGHKMNPQRSTUVWXYZ"), 0, 16); echo $rdmpw;{/php}"> Now in the latest WHMCS, it is recommended to disable the php smarty tag, so I cant use the above lines in my template anymore. The only work around should hook, I suppose. any idea how this can be converted to a hook? thanks
  7. am using WHMCS stable the latest with PHP 7.3 . In my admin folder, there is an error log file which contains about 20 lines of this error: [05-Dec-2020 07:19:24 UTC] [WHMCS Application] ERROR: TypeError: Argument 1 passed to WHMCS\Database\MysqlCompat::setLastStatement() must be an instance of PDOStatement or null, bool given, called in /home/XXXXXX/public_html/vendor/whmcs/whmcs-foundation/lib/Database/MysqlCompat.php on line 0 and defined in /home/XXXXXX/public_html/vendor/whmcs/whmcs-foundation/lib/Database/MysqlCompat.php:0 Stack trace: #0 /home/XXXXXX/public_html/vendor/whmcs/whmcs-foundation/lib/Database/MysqlCompat.php(0): WHMCS\Database\MysqlCompat->setLastStatement(false) #1 /home/XXXXXX/public_html/includes/dbfunctions.php(0): WHMCS\Database\MysqlCompat->mysqlQuery('SELECT tblhosti...', Object(PDO)) #2 /home/XXXXXX/public_html/includes/dbfunctions.php(0): full_query('SELECT tblhosti...', NULL) #3 /home/XXXXXX/public_html/vendor/whmcs/whmcs-foundation/lib/Service.php(0): select_query('tblhosting', 'tblhosting.*,tb...', Array, '', '', '', 'tblproducts ON ...') #4 /home/XXXXXX/public_html/vendor/whmcs/whmcs-foundation/lib/Service.php(0): WHMCS\Service->getServicesData() #5 /home/XXXXXX/public_html/vendor/whmcs/whmcs-foundation/lib/Service.php(0): WHMCS\Service->setServiceID(60132, NULL) #6 /home/XXXXXX/public_html/dm/clientsservices.php(0): WHMCS\Service->__construct(60132) #7 {main} {"exception":"[object] (TypeError(code: 0): Argument 1 passed to WHMCS\\Database\\MysqlCompat::setLastStatement() must be an instance of PDOStatement or null, bool given, called in /home/XXXXXX/public_html/vendor/whmcs/whmcs-foundation/lib/Database/MysqlCompat.php on line 0 at /home/XXXXXX/public_html/vendor/whmcs/whmcs-foundation/lib/Database/MysqlCompat.php:0)"} []
  8. Hmm, anyway to change the number to paid pending orders?
  9. @brian! yeah, actually got more complicated :))
  10. @brian! I used this version. now number of tickets is correct, only the pending order is wrong 😂
  11. Now I used this post's version and date is displayed. Can you share the last version? It still showing wrong number. Current situation: https://puu.sh/GQyBG/98e22e8a8b.png
  12. Yes, showing correctly: No, I used the code you mentioned.
  13. @brian! thank you,, working 🙂 Anyway to fix this problem?
  14. This ticket got a bit confusing, can someone please share the latest working hook for WHMCS 8.0.4?
  15. Your website is down and caused my module not loading, I suppose due to licensing. Please fix this asap, causing problems for us.
  16. Hey guys, My WHMCS stopped sending email, this is the error when I try to send any email: I tested it using the WHMCS smpt test file (received from support) and it gives this error: I even re-uploaded all files, still the same. 'PHPVersion' => '7.2.21', 'WHMCSVersion' => '7.8.0-release.1',
  17. Did you consider anyway for filtering or reports? For example what if a server received abuse, is there any way to find the user(s) connected at that time? How to block that ip/website/protocol? Or blocking torrents for example, anyway?
  18. Are you sure DKIM records are working this way? No offence, but can you please check with external tools like mxtoolbox?
  19. Hi, Where in WHMCS client area the client can set the DKIM record? Here is the screenshot:, There is no "txt" record:
×
×
  • 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