Jump to content

Qhiliqq

Member
  • Content Count

    21
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Qhiliqq

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. The hook itself nulls the array in clientarea pages thats right. But even here the hook is called after loading the array, so the loading of the page needs exactly the same time as if I didn't null the array.
  2. I don't know how to tell you... I replying to the right thread. Also I know a few other guy using whmcs having the same problem, they just upgraded their servers to run smoothly. If you set up a dev system and joining it via the domain itself, right there the problem occours (directly on the landing page of your installation). No switching to other subpages or sth. like that.
  3. Unfortunately that doesn't help anything cause you can't use a hook there. Afaik there is no hook which could be called in this position. If you join a whmcs startpage, no clientarea will be loaded, just a simple html page, but exactly here is the problem.
  4. I tried it in the head.tpl but it seems to be set before loading the head.tpl which doesn't even make sense for me. If I delete the domainpricing table for testing all works as expected and loads in a few milliseconds.
  5. Hi, how to disable PayPal subscriptions for my customers, I don't want that? The standard module seems to have no option for that. Best regards and keep healthy Philipp
  6. Hi, I have two questions and maybe someone got an answer 😉 First: I have round about 2000 tlds in my domainpricing table and all of them are listed in the var $tldPricing on the client startpage (home not clientarea home). I don't know why the tlds and prices are listed but this is a heavy db request so my website loads about 16 seconds. This problem havn't been in V7. The only option to speed this up is changing my webhosting package, what couldn't be the best solution... Second: If you create a support ticket as admin for a customer a mail will be sent (if selected) but not shown in the customer email history. The mail sent log is only shown in the activity log?! Problem with my whmcs or global? Best regards Philipp
  7. Fixed it with the help from WHMCS support. The problem was, after a Plesk update, the session path was set back to default. I changed it and all works as before.
  8. Exactly the same problem here. Is there any solution?
  9. Get it running with https://docs.whmcs.com/Admin_Password_Hashing ##Could be Closed
  10. Hi, I try to save a invoice to secure pdf folder, automatically to send them directly to my accounting system and my tax consultant. I found the AutoAuth, which works good, but not from a script. How I can generate pdfs of existing invoices from a script and save them to my secure folder? The path of dl.php is clear, but without a user... Regards
  11. Hi,, if I use the modifier uploaded by @brian! I get the following error: Error: Cannot use object of type stdClass as array in /vendor/smarty/smarty/libs/plugins/modifier.sortby.php(35) : runtime-created function:1 Stack trace: #0 [internal function]: __lambda_func(Object(stdClass), Object(stdClass)) #1 /vendor/smarty/smarty/libs/plugins/modifier.sortby.php(41): uasort(Array, '\x00lambda_1') #2 /vendor/smarty/smarty/libs/plugins/modifier.sortby.php(49): array_sort_by_fields(Array, 'nick') #3 /var/www/private/data/whmcssecuredata/templates_c/76750c4c25944b213fc954a97e99c8ceddc44f0a_0.file.clientarea.tpl.php(175): smarty_modifier_sortby(Array, 'nick') #4 /vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(122): content_5b8ea1678af145_17819975(Object(Smarty_Internal_Template)) #5 /vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(199): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #6 /vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(159): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #7 /vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(191): Smarty_Internal_Template->render(false, 0) #8 /vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(94): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #9 /vendor/whmcs/whmcs-foundation/lib/Smarty.php(0): Smarty_Internal_TemplateBase->fetch('/var/www/privat...', NULL, NULL, NULL, false, true, false) #10 /vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\Smarty->fetch('/var/www/privat...') #11 /clientarea.php(0): WHMCS\ClientArea->getSingleTPLOutput('/modules/server...', Array) #12 {main} My foreach: {foreach $instances|@sortby:nick as $instance} The value of $instances: Array (2) 0 => stdClass Object (11) ->nick = "nick1" ->privileges = stdClass Object (0) 1 => stdClass Object (11) ->nick = "nick2" ->privileges = stdClass Object (0) Why I get this error? Regards, Philipp
  12. Hello everyone, I created a module for a service. So far so good. The question I have is the following: I get a response via json_decode and want this in a customfield named uuid. This customfield is admin only. $result = curl_exec($ch); $uuid = json_decode($result); echo $uuid->{'uuid'}; <--- I want this output to be saved in $params["customfields"]["uuid"] [/Code] How could I make this working? Only via SQL? Regards.
  13. Hi, I created a new hook, which should add the username of the user to Client Details sidebar. Yes usernames, I got an extra module for that. My php look like this: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { $specialTXT = <<<EOT Test EOT; $primarySidebar->getChild("Client Details")->setBodyHtml($specialTXT); }); But now my whole "nonuser" Website stops working... Error in logs: [Sun Feb 25 17:12:30.531758 2018] [:error] [pid 29143] [client xxx.xxx.249.xxx:62288] [WHMCS Application] ERROR: exception 'Whoops\\Exception\\ErrorException' with message 'Call to a member function setBodyHtml() on null' in /xxx/includes/hooks/ClientAreaSidebar.php:8 Stack trace: #0 /xxx/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\\Utility\\Error\\Run->handleError(1, 'Call to a membe...', '/xxx...', 8) #1 [internal function]: WHMCS\\Utility\\Error\\Run->handleShutdown() #2 {main} {"exception":"[object] (Whoops\\\\Exception\\\\ErrorException(code: 1): Call to a member function setBodyHtml() on null at /xxx/includes/hooks/ClientAreaSidebar.php:8)"} [] Also I just want to add something and not change the whole field... Regards
×
×
  • 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