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,405 profile views
  1. WHMCS Peter

    Help Needed with Whmcs error

    Hi @0843, Could you open a Support Ticket with us regarding this? We'd likely need to investigate on your server why this is occurring for you.
  2. Hi @pjcltd, In WHMCS 7.7.1, we added a feature to the Setup menu called Storage Settings. If you're not seeing this, it's likely that your admin area template is out of date. Please upload a fresh copy of the admin directory and have another look. You can retrieve a new copy from a fresh installation ZIP at https://download.whmcs.com/. Once you've found Storage Settings, you'll need to ensure the configurations are correct and update them if necessary. Documentation on how to achieve that can be found here: https://docs.whmcs.com/Moving_Storage_Locations
  3. WHMCS Peter

    Adding an ICON to Menu

    Hi @sanechoice, When using the setIcon() method, do ensure that you're including the full font awesome class. For example: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function(MenuItem $primaryNavbar) { $client = Menu::context('client'); if (is_null($client)) { $primaryNavbar->addChild('Login') ->setUri('https://www.webssiteking.com/clientarea.php/') ->setIcon('fas fa-shopping-cart'); ->setOrder(70); } }); I have not tested this, and this example was provided personally by myself to assist you in resolving the issue. Let me know if you still run in to any issue.
  4. 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.
  5. 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.
  6. 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.
  7. WHMCS Peter

    Hello Everyone!

    Hi Jared! Welcome to the WHMCS.Community! 🙂
  8. 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.
  9. 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.
  10. 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.
  11. 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.
  12. 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!
  13. 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
  14. 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!
  15. 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".

Important Information

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