m107
Member-
Posts
62 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by m107
-
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; });
-
What do you mean?
-
Is this correct? <input type="hidden" name="rootpw" class="form-control" id="inputRootpw" value={"@#$*123456789abcdefghkmnpqrstwxyzABCDEFGHKMNPQRSTUVWXYZ"|str_shuffle|truncate:16:""} >
-
@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?
-
Exactly. WHMCS support gave me this page: https://docs.whmcs.com/Smarty_Security_Policy#Allow_Smarty_PHP_Tags But I could not understand it.
-
No no, you can see I was using "{php}", now I cant use it.
-
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
-
Worked! It is working man!
-
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)"} []
-
Hmm, anyway to change the number to paid pending orders?
-
@brian! yeah, actually got more complicated :))
-
@brian! I used this version. now number of tickets is correct, only the pending order is wrong 😂
-
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
-
Yes, showing correctly: No, I used the code you mentioned.
-
@brian! thank you,, working 🙂 Anyway to fix this problem?
-
This ticket got a bit confusing, can someone please share the latest working hook for WHMCS 8.0.4?
-
Hetzner Dedicated Servers Manager
m107 replied to websoftsolus's topic in Commercial Modules and Addons
Your website is down and caused my module not loading, I suppose due to licensing. Please fix this asap, causing problems for us. -
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',
-
thanks alot dude 🙂
-
Are you sure DKIM records are working this way? No offence, but can you please check with external tools like mxtoolbox?
-
Hi, Where in WHMCS client area the client can set the DKIM record? Here is the screenshot:, There is no "txt" record:
