Jump to content

carlswart

Member
  • Posts

    13
  • Joined

  • Last visited

About carlswart

carlswart's Achievements

Junior Member

Junior Member (1/3)

1

Reputation

  1. Thank you for helping us and making the internet a safer place. :) Please see ticket: ROO-695840
  2. If you have not yet been able to fix this, I think that you have configured your cron to use the system default PHP, which seems to be version 5.4, instead of the version your site makes use of. Here is an example for my crontab entry: */5 * * * * /opt/plesk/php/7.2/bin/php -c /var/www/vhosts/system/example.com/etc/php.ini /var/www/vhosts/example.com/private/crons/cron.php You will need to adjust the above to match your hosting environment.
  3. As per my previous reply, it does complete, successfully, without any errors.
  4. The daily cron entries do appear in the Activity Log and the the daily cron completes. All of this is also verified in the cron log file.
  5. When I switched to SMTP and enabled SSL/TLS I had to make sure the SMTP Host and the common name in the SSL certificate matched. When it did not match, I had errors. Perhaps test SMTP without SSL/TLS on. If that works, then you were experiencing the same problem as I had.
  6. Thank you for the suggestion. I have made sure that the emails are fully functional and are being sent from the server. That is not the cause of the problem.
  7. Hi, Add a php.ini file to the command in the cron command line. */5 * * * * /opt/phpswitcher/php7.2/bin/php -c /var/www/virtual/mydomain.tld/conf/php.ini /var/www/virtual/mydomain.tld/crons/cron.php See the added parameter in bold. I would use the same php.ini that the control panel generates for the site, which will cause the cron to execute in the exact same environment as the website. HTH
  8. Hi, Have you found a solution to this? I am sitting with the same issue after an upgrade to 7.10.2. I receive no emails but yet WHMCS reports cron is operating correctly. If I force the cron, the emails do arrive. According to WHMCS support, this indicates that I have disabled System Emails for my user but I have double check and even looked around in the DB but everything is enabled. I have read everything I can find on whmcs.com. No luck. If I add -vvv to the command in the crontab I can see it runs and completes from the cron output emails I receive, which is also confirmed by the Activity Log. I am suppose to receive my Daily Cron email once a day and my Domain and Transfer Sync emails each hour, but nothing. Any suggestions?
  9. It is so sad to have to answer yourself. The issue was caused by the Geolocation Hook For WHMCS offered by ModulesGarden. The hook prevented WHMCS to switch currencies. As per my initial assumption, I was the cause of my own problem.
  10. I'm sure that this is a configuration error on my part but I seem unable to find the problem. I hope somebody can point me in the right direction. I run WHMCS 7.4.2 at present. I have 3 currencies defined. GBP, USD, ZAR. GBP is my default currency. I have added domains for registration. Pricing on the domains have GBP and ZAR enabled. I have added some shared hosting products. At the moment all the shared hosting products only have ZAR pricing. It is my understanding that if I visit the cart WHMCS will respond that is finds no products. This is because the default currency is GBP. So far everything seems ok. If I then select the ZAR currency in the "Choose Currency" dropdown, I would expect the currency to change to ZAR and the products only priced in ZAR to be displayed. However unfortunately when selecting a different currency, the cart defaults back to GBP and only displays products with GBP pricing. What am I missing? Why is the currency not changing? I tried forcing the currency via the URL using ?currency=<currency_id_in_tblcurrencies> but this did not change the currency, it just defaulted to GBP. I even tried to force the cart template to standard_cart using ?carttpl=standard_cart and although the template changes the currency does not. Please enlighten me.
  11. I can not comment on the legality of it but I think it is doable with hooks. <?php add_hook('InvoiceChangeGateway', 1, function($vars) { // Perform hook code here... $invoiceid = $vars['invoiceid']; $get_invoice_results = localAPI('GetInvoice', ['invoiceid' => $invoiceid]); if ($get_invoice_results->result == 'success') { if ($vars['paymentmethod'] == 'CHANGE_ME_expensive_gateway_id') { // Add additional gateway fee. $invoice_itmes = $get_invoice_results->items->item; $number_items = count($invoice_itmes); $update_invoice_results = localAPI('UpdateInvoice', ['invoiceid' => $invoiceid, 'itemdescription' => [$number_items => 'Gateway Fee Description'], 'itemamount' => [$number_items => 5.00], 'itemtaxed' => [$number_items => true]]); if (!($update_invoice_results->result == 'success')) { // We should never get here so notify someone who cares. } } else { // Remove gateway fee from invoice, when client selects alternative gateway. // You will need to reverse the above code to remove the gateway fee. } } else { // We should never get here so notify someone who cares. } }); I have not tested the above code but that is my suggestion. I think, if I remember, correctly the code will also only work on PHP 5.4+ ... and should be WHMCS 6.x+ safe.
  12. https://developers.whmcs.com/hooks-reference/shopping-cart/ OrderProductPricingOverride Allows you to change the product pricing in the cart to any value you desire. Can change the setup fee too but you can leave that alone.
  13. Hi, Try the following. WHMCS-Plesk-Fixes-Module https://github.com/jas8522/WHMCS-Plesk-Fixes-Module It works for me. -- Regards, -Carl
×
×
  • 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