Jump to content


WHMCS Technical Analyst
  • Content count

  • Joined

  • Last visited

  • Days Won


WHMCS Peter last won the day on March 31

WHMCS Peter had the most liked content!

Community Reputation

8 Neutral


About WHMCS Peter

  • Rank
    WHMCS Technical Analyst

Recent Profile Visitors

1,286 profile views
  1. WHMCS Peter

    Hook stopped working

    This is near-definitely the issue here. As a hook, PHPMailer (and that file) is already included (or should be!) You should also use the SendEmail API, rather than PHPMailer directly. # that out and let us know if the issue persists.
  2. WHMCS Peter

    Hook stopped working

    Hi @erwin123, Typically, this error indicates that a customisation in your WHMCS installation (A custom hook or addon) is including a copy of PHPMailer, causing it to try and "declare" an exception twice. I'd recommend reviewing all customisations to ensure that none are either including their own copy of PHPMailer or including a PHPMailer specific file as WHMCS autoloads PHPMailer already.
  3. WHMCS Peter

    API problem

    Hi @amirreza mousavi, Without providing your sensitive details, such as API Identifiers or Usernames/Passwords, could you provide me with a copy of the code you're using? I can advise if this is the best way to interact with the WHMCS API.
  4. WHMCS Peter

    Hello Everyone!

    Hi Jared! Welcome to the WHMCS.Community! 🙂
  5. Hi there! Based on what you've written it sounds like you've tested this using your own affiliate link, is that right? WHMCS has in-built security against affiliates ordering products using their own link. If this is occurring when another client uses someone else's affiliate link, please do open a Support Ticket with us and we'd be happy to investigate.
  6. WHMCS Peter

    Remove Google+

    Hi @cyberhostpro, Case #CORE-13155 is open with our developers in order to have this reviewed for future releases. Whilst I cannot provide an estimated time for completion for this, once we resolve cases and push features they are available at our change log, here: http://changelog.whmcs.com/ I've also noted internally on this case that as of today, Google+ is finished.
  7. WHMCS Peter

    MySQL 1970-01-01

    Hi! When a domain is transferred in, WHMCS does not yet know the expiry date for the domain and for that reason, is not applied. 1970-01-01 is the first date in "Epoch Time" and due to that, is the date that PHP will default to. When a Domain is transferred in, WHMCS will usually retrieve the correct Expiry Date via the Domain Sync however, as this is not possible, it is expected that the Administrator will enter the Expiry Date and Next Due Date for the domain manually at the time of activation. With the Domain Syncronisation feature WHMCS is able to identify when a domain transfer has been completed or failed. It will ensure that the Next Due Date, Expiry Date, and Status values are updated for domains on the installation. As mentioned, because your module does not support this, these values must be manually set. I hope this helps.
  8. WHMCS Peter

    MySQL 1970-01-01

    Hi @web2008! Could you provide a little more information here? How are you "moving" the domain? Where are you moving it from and to? If moving these in a custom way, please provide any SQL queries/code samples. Once I have this additional information, I'd be pleased to try and assist you.
  9. WHMCS Peter

    Custom additional language file for server modules?

    Hi @bendrop, Although not officially supported at this time, perhaps you could create your own lang/ directory and include it? Example: Lang file: <?php $_MODULELANG['helloworld'] = 'Hello World!'; Module: function provisioningmodule_ClientArea() { require_once(__DIR__ . '/lang/myCustomLangFile.php'); return $_MODULELANG['helloworld']; } Naturally, this advice is being provided personally by me and is provided as a courtesy. This example is provided "as-is" with no guarantee or warranty. The code has not been tested and may need slightly tweaking. Hopefully, this helps you achieve your requirements!
  10. WHMCS Peter

    Custom Hostnsname URL cPanel

    Hi @lims, The reason this currently works in the way it does is because WHMCS sends a request via the cPanel API to the "create_user_session" endpoint. At current, the "url" which is returned defaults to the server hostname. This is what is used to redirect the user to cPanel Here's an example of what we receive back from cPanel: { "data": { "cp_security_token": "/cpsess1234567890", "expires":1401993893, "session": "username:GHehYZ1GCxzmDATMmT1xT4rN0tiPGMWnKErPJdU3t6AGBx2LjQ3qB6Xih5naUh_4:create_user_session, 5dc619831bac4aa2e014e062d762645e8447949eaef14fc53a8ce2b1e0e2592a", "url": "https://example.com:2083/cpsess1234567890/login/? goto_uri=frontend%2fx3%2fstats%2fawstats_landing.html&locale=fr&session=username:%3aGHehYZ1GCxzmDATMmT1xT4rN0tiPGMWnKErPJdU3t6AGBx2LjQ3qB6Xih5naUh_4%3acreate_user_session%2c5dc619831bac4aa2e014e062d762645e8447949eaef14fc53a8ce2b1e0e2592a", "locale":"fr", "service": "cpaneld" }, "metadata": { "version": 1, "reason": "Created session", "result": 1, "command": "create_user_session" } } As you can see, the "url" element is absolute. We simply redirect to this link. I do note in the cPanel documentation that it is now possible to set a "preferred_domain" variable when contacting this endpoint, making it possible to redirect to a users own domain. Therefore I would encourage you to please submit a request to our feature requests tracker where other users can contribute to and vote on your idea. Ideas with the most votes and activity do get reviewed by our team. http://requests.whmcs.com
  11. Hi there! If you have the know-how, we provide documentation on creating your own Payment Gateway, here: https://developers.whmcs.com/payment-gateways/ We also offer a Sample Gateway Module which you can base your custom module off. This is available from: https://github.com/WHMCS/sample-merchant-gateway https://github.com/WHMCS/sample-gateway-module It depends on what time of gateway you are developing for as to which you'd need to use. Merchant Gateways are ones where Credit Card details are stored in WHMCS' database whereas standard "gateway" modules tend to lean more towards storing the card data on the providers server in exchange for a usable token. I hope this helps!
  12. Hi @SamS1, Typically, on a transfer, I would expect a domain names nameservers to remain at their current setting to ensure no downtime as a change like this can cause domains to not resolve for up to 24-48 hours. I'd recommend reaching out to NameSilo who can confirm if they do indeed update the nameservers during transfer. If they do not, you may wish to use a hook to perform the change once WHMCS marks the domain as "Active" from "Pending Transfer".
  13. WHMCS Peter

    Support Tickets & Client Contacts

    Hi @thisismatt, Thanks for taking the time to submit that! Our Feature Team will moderate the listing soon! 🙂
  14. WHMCS Peter

    whmcsBaseUrl is empty

    Hi @Dimitra To note a 500 Internal Server Error is a generic error message produced by the server due to a misconfiguration. There are potentially a wider number of causes for such a problem, here is a brief overview of them and potential fixes: * File Permissions are incorrectly set. Should be (depending on server but general rule of thumb) 644 for files and 755 for folders/directories. * An error in one of the PHP Files - Try enabling the display errors * PHP Memory & Process limitations - Try increasing to 128MB * PHP Process Limitations - Check with server admin/hosting provider * Corrupt PHP Modules, Extensions, Builds - Check with server admin/hosting provider * The obscure - If points 1-5 don't produce a fix typically the best course of action is to check the Apache Error Logs You can find more detailed information about troubleshooting such an error message in our documentation at http://docs.whmcs.com/Common_Troubleshooting_Tips#Internal_500_Server_Error If the error still persists, we'd likely then start looking at customisations and custom templates however, we'd welcome you to open a Support Ticket, including access credentials so that we can get straight to it and assist you in resolving this.
  15. WHMCS Peter

    Remove dynamically injected fontawesome CSS for custom theme

    Hi @WeaveHosting, Thanks for your feedback. I've opened a case with our Documentation team to have this feature documented properly with an example of how to bypass our automatic injection feature. I have recommended we add this to the CSS Styling page of our Developers Documentation for easy future reference. Thanks again for taking the time to reach out.

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated