Jump to content

erwin123

Member
  • Posts

    49
  • Joined

  • Last visited

About erwin123

erwin123's Achievements

Member

Member (2/3)

0

Reputation

  1. @Kian Thank you, there's no include() or require() in the code, only require_once. @WHMCS Peter Thank you, I tried it and unfortunatly it won't work. The testscript with 'AdminLogin' stops with sending email if I # it out. So I guess the script needs it after all...
  2. Thank you Kian, Its a bit shooting in the dark as I'm no coder but could this be the culprit? $mail = new PHPMailer(); $mail->From = $CONFIG["SystemEmailsFromEmail"]; $mail->FromName = $CONFIG["SystemEmailsFromName"]; $mail->Subject = $subject; Other mail related entries: $date_m = date("Y-m",strtotime("-2 week")); $sub = "CRM System"; $accountant_email = "accountant@company-x.net"; $mail->MsgHTML($message); $mail->AddAddress($accountant_email); $mail->AddAddress("myown@email.com"); #testing purposes
  3. Thanks both, I did not write the script and am not a coder, but how does that makes sense if the script works fine when I change 'DailyCronJob' to 'AdminLogin'? The mail in that case is being send without problems. In the script I do find: require_once($base."/../class.phpmailer.php"); Should I # this entry out?
  4. Thank you Kian, It indeed says this, but then immediatly after that: Error: Whoops\Exception\ErrorException: Cannot declare class phpmailerException, because the name is already in use in /home/sitename/public_html/clients/includes/class.phpmailer.php:2317 Stack trace: #0 /home/sitename/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(64, 'Cannot declare ...', '/home/sitename/p...', 2317) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} I tried and google it but that did not return much, hope someone has an idea?
  5. We use a hook to send a list of all invoices to our accountant each month. It should run on the DailyCronJob and only run the script on the 30th of each month. This no longer works. When I change 'DailyCronJob' to 'AdminLogin' and I login to WHMCS it works like a charm. What can be wrong? The daily cron runs fine. The cron runs from outside the webdirectory, but it always have done that, could that be of influence? <?php add_hook('DailyCronJob', 1, function ($vars) {
  6. Dear support, This morning I suddenly had a case of a custom mailtemplate not loading for a particular customer. Other templates loadd fine an it loads for other customers. I select the customer, click 'new message' and then select from the dropdown menu th template. Nothing happens. As said other templates work and the same template works for other customers. Any idea what could cause this? Thanks
  7. Thanks Brian, I will make the adjustment.
  8. I've had several times now that when I try to open een todo list item from the mainpage and I click slightly in the wrong spot and the item disappears. This is really dangerous as these items are important (like a domain that failed to renew). I would love to see that the option of removing these items (its some sort of checkbox but they disappear immediatly) is lost from the mainpage or at the very least that there is a dialog confirming the delete.
  9. Hi Brian, You are totally right. I thought copying the files to a alternative directory was the way to go. It prevents the files to be overwritten with the next update, guess I'll have to make a extra copy of the file. Anyway it works like a charm now, thank you very much!
  10. You could'nt see the code because I copied the orderform to a alternative directory and switched to it for experimenting. After I tried I switched back. I thought it worked but it didn't. If you only order a domain its fine but add hosting and it hangs. I tried the second option, but it does exactly the same, it hangs after adding hosting.
  11. Unfortunatly its worse:) The form won't finish the domain availability check but keeps waiting. <label for="phonenumber" class="control-label">{$LANG.clientareaphonenumber}</label> <input type="text" name="phonenumber" id="phonenumber" pattern="[0-9]{literal}{10}{/literal}" placeholder="Let op! voer telefoonnummer in als 0201234567 dus zonder +31 of -" oninvalid="set$ {/if} I've searched for a typo or missing bracket etc. but if there is any I don't see it. I could take the setCustomValidity out but the problem is once they entered a wrong format phonenumber they can't see anymore what the right format should be because the hint is gone.
  12. Sorry to bother but there seems to be something wrong with the string. I get the warning about filling in the number in the right syntax no matter how many numbers I fill in. Is there perhaps something missing in the code? <input type="text" name="phonenumber" id="phonenumber" {literal}pattern="[0-9]{10}"{/literal} placeholder="Let op! voer telefoonnummer in als 0201234567 dus zonder +31 of -" value="{$clientsdetails.phonenumber}" oninvalid="setCustomValidity('Voer uw tien cijferig telefoonnummer in ')" class="form-control"{if !in_array('phonenumber', $clientsProfileOptionalFields)} required{/if} />
  13. Ah I should have seen that, thank you!
  14. This is very helpful. Thank you very much for the excellent support!
  15. We switched today to the Modern orderform. It is crucial for our domainregistrar that the telephonenumber is given in a specific format of 10 digits without - or countrycodes. We tried to enforce this by changing: <label for="phonenumber" class="control-label">{$LANG.clientareaphonenumber}</label> <input type="text" name="phonenumber" id="phonenumber" value="{$clientsdetails.phonenumber}" class="form-control"{if !in_array('phonenumber', $clientsProfileOptionalFields)} required{/if} /> to <label for="phonenumber" class="control-label">{$LANG.clientareaphonenumber}</label> <tr><td><font color="#FF0000"><b>Let op!</b></font></td><td> voer telefoonnummer in als<br>0201234567 <b>dus zonder +31 of -</b></td></tr> <input type="text" value="0687654321" maxlength="10" name="phonenumber" id="phonenumber" value="{$clientsdetails.phonenumber}" class="form-control"{if !in_array('phonenumber', $clientsProfileOptionalFields)} required{/if} /> For some unknown reason this breaks the cart for any other extention then .nl I hope someone can show me how to do this properly. Thank you in advance!
×
×
  • 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