Jump to content

willk

Member
  • Posts

    17
  • Joined

  • Last visited

  • Days Won

    1

willk last won the day on May 25 2017

willk had the most liked content!

About willk

willk's Achievements

Junior Member

Junior Member (1/3)

2

Reputation

  1. Hi All, We are working on upgrading from 7.10 to 8.6 and implementing SSO, but have found that the link with the token takes ages to load. Generating the token link is quick and isn't an issue. However, loading that singlesignon link takes 15-16 seconds in nearly all cases. Our database is pretty large (about 1.6GB), but most of those are in the tblemails. Watching the mysql database shows no long queries and most connections sleeping while we wait for 15 seconds for the SSO to complete and redirect to the users profile page. It works 100%, but it's the call to redirect URL provided by CreateSsoToken (e.g. oauth\singlesignon.php?access_token=xxx) that takes 15 seconds. We have done all the normal things, the connection to the DB is set to 127.0.0.1 rather than localhost, and works fine for normal logins (usually about 2 seconds), skip-name-resolve is turned on in MySQL, and performance of MySQL for both WHMCS on all other calls, and GFI Helpdesk work 100% without issue. It's just the SSO that is unusable. With the deprecation and removal of AutoAuth (which took about 3 seconds) we aren't sure how to go about upgrading and that's a major issue given WHMCS list 7.10 as EOL even though they still release urgent security patches if necessary. Is there anyone else having this kind of issue? Is anyone else using SSO? Noting we are using CURL (not local API) to call SSO using the CreateSsoToken (https://developers.whmcs.com/api-reference/createssotoken/). Thanks, Will
  2. Hi Brian, Fantastic, thanks for your reply. I took your advice and checked to see if the Addons was menu item was null or not before adding it again. However, the Uri when it is added seems to reload the entire page and then lose the product ID. I have commented out the check for Addons in the template file so the class with ID 'tabAddons' definitely exists on the page. See: http://prntscr.com/n6n1v4 The menu item renders okay, see: http://prntscr.com/n6n207 However, it doesn't have the data-toggle="tab" field so it does a postback of the entire page and loses the productID etc. so if you click back on 'Information' it no longer shows anything. I couldn't find any set commands when adding the child to fix this. Thanks, Will
  3. Hi All, For some reason the tabAddons nav option is not displaying on random products, even though there are addons definitely available for them. To get around this I wanted to add a custom nav item using the ClientAreaPrimarySidebar hook. <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) { $client = Menu::context("client"); $pid = (int) $client->id; if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') ->addChild('Order Addons') ->setOrder(100) ->setUri('../clientarea.php?action=productdetails&id='.$pid.'#tabAddons'); } }); Although I can get the client ID using the Menu::context option I cannot work out how get the current productID. Any suggestions would be appreciated. Thanks, Will
  4. WHMCS Staff: How on earth do I even find out who was suspended!!! My modules are written correctly, so the suspensions occur properly, but I don't know who was actually suspended without searching through 1000 entries in the activity log!!! Your CRON job email is absolutely useless, the web page it links to is 100% useless. Unlike WHMCS I value my clients and if they are suspended, my staff are instructed to review the CRON job email and call suspended clients and let them know. How can I do that if I have no idea who is suspended?? I need an immediate patch or file update to return to the old CRON job email as it's not possible to downgrade WHMCS. Thank you in advance, Will Kruss
  5. Hi, Thanks but I cannot figure out which hook to use. This isn't for a domain registration, it's for a product under the Dedicated/VPS Server category. We have a custom server module, but it doesn't have any of those hooks in it, yet the domain is still validated against all products (including terminated ones) and if it has been setup previously an error occurs. None of those hooks appear to handle this as it appears inbuilt, they all seem to handle the actual entry / format of the domain itself. Can you point me in the right direction? Thanks, Will
  6. Hi All, Is there a flag or something whereby users can order a service with the same hostname as an existing service that has already been terminated? At the moment the system checks against all services for a duplicate hostname and won't setup if it exists, I only want it to check active or suspended services, even better would be a rule system which you could specify which services to check for duplicate hostnames. Cheers, Will
  7. We've seen this issue happening randomly for some clients usually using Chrome or FireFox. Where clicking the paypal button does nothing. Holding left shift and clicking the button will work in that case and open PayPal in a new window/tab. However, we haven't figured out exactly what causes it, whether it's a plugin or security setting.
  8. Hi, Yes I'm aware of that, however I need to change the from details based on which brand they are ordering for, different invoicing requirements etc. At the moment I have it so that it filters to a different template and ceases sending the current email. However, with things like SSL configuration that ends up with blank parameters. There must be some way to modify WHMCS so that a hook can change the email from and name. Thanks, Will
  9. Hi All, Is there a way to prevent a single order running the ChangePackage server module twice? So in modules\servers\myserver\myserver.php I have the ChangePackage function. When a user places an order to modify resources associated with a product (in this case a server and the resources are CPU and RAM) the ChangePackage function is called and works fine. However, if they change both CPU and RAM in the same order the ChangePackage function is called twice. Given that there is no way to pass only what the order actually changed, only to grab the current values, calling it twice it pointless. Thanks, Will
  10. Hi All, In the hook hook_system_emailpresend is it possible to change the From email and From name. Thanks, Will
  11. Hi All, In the invoicing hooks InvoiceCreationPreEmail and InvoicePaidPreEmail is it possible to cancel the emails from going out, so I can specify separate templates to send emails depending on the product. I can't use the invoice items array within the emails as I want to change the 'from' email and email subjects in all invoicing related emails on a per product basis. Alternatively any other way this could be achieved? Thanks, Will
  12. The same issue here and I cannot get past the language folder not found error. Did you find a resolution to at least get access while this is broken? Thanks, Will Kruss - - - Updated - - - Just a note I'm running this on a Windows server
  13. I'm running WHMCS on a Windows machine with PHP 5.4 and do NOT use two factor authentication. Ever since the upgrade to 5.3.9 I cannot login unless I check 'Remember me until I logout.'. When I check that I can login and search works. However, after leaving the page open for a few minutes if I try to search I get token invalid. To fix this I just refresh the admin/index.php page and then I can use search again. Nothing has changed in my php settings. I've tried: session.cookie_httponly = 0 session.use_only_cookies = 0 But this has not made any difference. Can someone from WHMCS help please. Thanks, Will Kruss
×
×
  • 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