Jump to content

erwin123

Member
  • Posts

    49
  • Joined

  • Last visited

Everything posted by erwin123

  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!
  16. Dear Brian, It is, but we're testing on index2.html So please manually change index.html to index2.html
  17. I see I changed the code on the homepage but its not taking the entered domain to the shoppingcart, instead it presents the empty searchbox of the shoppingcart. Any ideas? Thanks
  18. We use the standard WHMCS shoppingcart of 7.1
  19. We just had a customer trying to register a domain with a space in it. Also often customers enter a domain domain.com in the searchbox ignoring the dropdownmenu for the extention resulting in domain.com.com which then generates an error after it is added to the shoppingcart. How do we get the form to calidate the syntax before it send it to the shoppingcart?
  20. Dear Brian, Thank you. That is the main configuration.php file in the root of the installation with the database pw etc? There's no mention at all in this configurationfile. Can I just add it on the bottom? thanks, Erwin - - - Updated - - - Dear Brian, I've tried this but it does not seem to have any effect. I'm using v7.1.2 Thanks
  21. How can I make sure that the whois/shoppingcart only allows a search for domains with at least three letters? People now enter a domain with one letter and the whois shows it as available and allows it to be ordered... Thanks!
  22. I have like many the problem thar sometimes domains are marked as expired although they are really active. This happens when a domain is expired and you get it out of quarantaine manually. If you forget to move the domain in WHMCS to 'Active' the customer might lose his domain because it is never invoiced again. I thought to be clever and run a Mysql query to move all 'Expired' domains to active and let the domainsync of my registrar sort it out. Unfortunatly for domains that are long expired it reports back 'This domain is not in your account, please transfer it". The status remains active. Now I have 3500 domains with due/renewal date 00/00/0000 or something like 15/03/2014. I fear that for all these domains a invoice will be created tonight wich would cause mayhem. What mysql query could I run that sets all domains with say a renewal date < then 01/01/2016 to expired? Any other suggestions for this mess? I do have a backup but I have a very busy site and there are lots of domains registred in the time I tried to solve this manually....
  23. Hi Brian, Thank you for your reply. v6.1.2 is absolutely stable for us so I think we'll hold off then for a while until the bugs in v7 are ironed out.
  24. We hold off updating WHMCS seeing version 7 becoming the main version. But seeing howmany problems version 7 have we want to first upgrade from 6.1.2 to version 6.3.2 Is this advisable or is it better to wait until we upgrade to version 7? If its advisable to upgrade to 6.2.3 how do we do this? I don't see any patch versions below 6.2.3. Thanks, Erwin - - - Updated - - - (fixed title)
  25. Can someone help us with the syntax for a Mysql query that changes the status from all 'Expired' domains to 'Active'? There's a discrepancy between the number of domains that our ristrar holds and the active domains in our system. This can be caused by transfers being set to 'Expired' by WHMCS before the domain actaully transferred. After it is set to Expired the system won't try to sync the domain with the registrar anymore and a invoice won't be generated for the renewal of the domain. So clients risk loosing a domain this way. If we can set all 'Expired' domains to 'Active' the sync process will automaticly set all domains that are no longer active back to Expired and leave the domains that are now labelled 'Expired' set as active (because they are). Hope this makes sense
×
×
  • 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