heapmaster
Member-
Posts
72 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by heapmaster
-
AddOrder configoptions not working.
heapmaster replied to medineshkatwal's topic in Troubleshooting Issues
This doenst work for quantity selection like a slider or text box -
This doesnt work any more, so I submitted this as an idea to whmcs, maybe we can get some votes and get this done... https://requests.whmcs.com/idea/hook-return-issues-including-more-then-one-hook-point-compatibility-and-changes-to-smarty-variables
-
return values on hook get overwritten by next hook
heapmaster replied to PixelPaul's topic in Developer Corner
I submitted this as an Idea so they can fix this, maybe we can get some more votes to make it happen! https://requests.whmcs.com/idea/hook-return-issues-including-more-then-one-hook-point-compatibility-and-changes-to-smarty-variables -
This needs to be fixed internally within the WHMCS code...
-
Thanks, now I'm having the issue after talking to the addon developer that my hook is overriding their hook. Similar to what is described here It seems variable changes made in the first hook do not get passed into the second hook and then to WHMCS. So its either one hook or the other and not both for some reason. WHMCS should pass the results of the changed variables to the second hook for processing, and then those changes of the variables from both hooks then passed to the template from WHMCS. But its not doing that.
-
Using Hooks which require additional modules
heapmaster replied to lastcoolnameleft's topic in Developer Corner
WHMCS 8, and I just excluded Guzzle from the module so that it uses Guzzle included with WHMCS instead, thus fixing my issue -
Using Hooks which require additional modules
heapmaster replied to lastcoolnameleft's topic in Developer Corner
Same problem here too -
I think I figured it out, it was a hooks file in a addon that was overriding my hook. I would change it and then it would run and change it back. I fixed it by doing add_hook("ClientAreaPage",300,"..... (changing the priority of my hook to be higher)
-
Yes, both installs are the six default html template not modified (we like to do all modifications in hooks files).
-
Hooking is working because I add exit; before the return and I get a blank page so the hook is being called. I cleared the template_c folder and we dont have litespeed or cloudflare and still it does not work....
-
Thanks, ya in my dev install this works, all three are changed in the header and footer, but my live install it does not work and they are both 8.0.4 R1, so odd..still debugging.. function client_area_companyinfo_change_it($vars) { $aryReturnArrayData = array(); $aryReturnArrayData["companyname"] = "Test Company"; $aryReturnArrayData["date_year"] = "1234"; $aryReturnArrayData["assetLogoPath"] = "/images/logo.jpg"; return $aryReturnArrayData; } add_hook("ClientAreaPage",1,"client_area_companyinfo_change_it");
-
Im trying to change the logo URL at the top from the hook and the Copyright footer of company name and date in the footer template.
-
Ya thats what I have and its not working in 8.0.4, I raised a support ticket
-
How do you do this in a hook? For example in a hook file with ClientAreaPage, how do I change the companyname smarty variable before its used in the template in WHMCS v8+ ?
-
Laminas error in custom server provisioning module
heapmaster replied to heapmaster's topic in Troubleshooting Issues
Fixed...this was caused by hidden whitespace before the starting PHP tag at the top of the file for our custom module. -
Laminas error in custom server provisioning module
heapmaster replied to heapmaster's topic in Troubleshooting Issues
Yes I am, I even switched the plan to their default Plesk module and emptied the includes/hooks folder and I still get the error. -
Laminas error in custom server provisioning module
heapmaster replied to heapmaster's topic in Troubleshooting Issues
I even use the default example (from here https://raw.githubusercontent.com/WHMCS/sample-provisioning-module/master/modules/servers/provisioningmodule/provisioningmodule.php) and it sill has the exact same error...theres got to be a better debug trace then this. -
We have a custom module that is for plesk that is based off the github (https://github.com/plesk/whmcs-plugin) one that is no longer supported. We use this since have to customize the module so that during service setup it calls our other systems to setup dns and email, which is not hosted in plesk. Since upgrading to WHMCS 8.0.x we are now getting the error in the client area when clicking on the service that uses this module. Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /var/www/vhtdocs/site/html/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /var/www/vhtdocs/site/html/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /var/www/vhtdocs/site/html/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /var/www/vhtdocs/site/html/clientarea.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(WHMCS\ClientArea)) #3 {main} How can we fix it and why is it doing this. The lib folder in our custom module folder is copied from the modules/servers/plesk folder that WHMCS provides.
-
Issue with your docs for MenuRepository::addContext()
heapmaster replied to heapmaster's topic in Developer Corner
This part was unclear: Client::find($_SESSION['uid']) ..... how to use WHMCS Classes correctly since your doc is all wrong here: https://developers.whmcs.com/advanced/creating-pages/ -
Issue with your docs for MenuRepository::addContext()
heapmaster replied to heapmaster's topic in Developer Corner
Something like this would have been helpful.. https://github.com/WHMCS/developer-docs/issues/22 I figured it out via that link.. $currentUser = Client::find($_SESSION['uid']); $currentDomain = Domain::find($_GET["id"]); Menu::addContext('client', $currentUser); Menu::addContext('domain', $currentDomain); Menu::primarySidebar('domainView'); Now to get the default WHMCS secondary Domain Action Bar to show up... Menu::secondarySidebar('domainAction'); Errors out: Backend log: [WHMCS Application] ERROR: WHMCS\\Exception: Unknown sidebar "domainAction". in /vendor/whmcs/whmcs-foundation/lib/View/Client/Menu/MenuRepository.php:0 -
Issue with your docs for MenuRepository::addContext()
heapmaster replied to heapmaster's topic in Developer Corner
Ya I saw that and it doesnt help, hence me posting on here. -
I updated to PHP 7.1 and im getting the following error: [Wed Jun 17 09:12:52 2020] [notice] [client 1.2.3.4] [host abc.com] Backend log: [WHMCS Application] ERROR: ArgumentCountError: Too few arguments to function WHMCS\View\Client\Menu\MenuRepository::addContext(), 0 passed in /var/www/vhtdocs/usersite/html/vendor/illuminate/support/Facades/Facade.php on line 215 and exactly 2 expected in /var/www/vhtdocs/usersite/html/vendor/whmcs/whmcs-foundation/lib/View/Client/Menu/MenuRepository.php:0 Stack trace: #0 /var/www/vhtdocs/usersite/html/vendor/illuminate/support/Facades/Facade.php(215): WHMCS\View\Client\Menu\MenuRepository->addContext() #1 /var/www/vhtdocs/usersite/html/domaindns.php(866): Illuminate\Support\Facades\Facade::__callStatic('addContext', Array) #2 {main} {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function WHMCS\\View\\Client\\Menu\\MenuRepository::addContext(), 0 passed in /var/www/vhtdocs/usersite/html/vendor/illuminate/support/Facades/Facade.php on line 215 and exactly 2 expected at /var/www/vhtdocs/usersite/html/vendor/whmcs/whmcs-foundation/lib/View/Client/Menu/MenuRepository.php:0)"} []\n, referer: https://www.abc.com/clientarea.php?action=domaindetails&id=1234 My code is: Menu::addContext(); Menu::primarySidebar('domainView'); And this was working but not is not. Can I get a sample of how to do this as per your docs and this page https://whmcs.community/topic/286293-error-too-few-arguments-passed-menurepositoryaddcontext/ the addContext is suppose to have two arguments passed to it, but your example here does not: https://developers.whmcs.com/advanced/creating-pages/ I realize it should be something like: Menu::addContext('client', ??????); Menu::addContext('domain', ?????); Menu::primarySidebar('domainView'); But the second arguments for addContext is what I dont know how to do and your docs dont have examples. I want to update my code so I can show the domainView sidebar page like it does within whmcs on the domains management page. Please help!
-
In Support Ticket email, how can Related Service be shown?
heapmaster replied to ScottN's topic in Using WHMCS
This is actually shown in the view ticket page, under the product service listing, the service the user selected is highlighed in a blue line for that table row. At least in the latest version of the blend template it has code for this: <tr{if $relatedservice.selected} class="rowhighlight"{/if}>- 2 replies
-
- merge fields
- notification email
-
(and 2 more)
Tagged with:
-
I would like to see the finial email template code please, our clients complain about the email not showing the auto renew status as well.
-
How can customers switch from monthly to yearly payment?
heapmaster replied to stormy's topic in Using WHMCS
Wouldnt you want to click on the Upgrade/Downgrade button instead and change the billing period through that window and not just just the billing cycle drop down?
