Jump to content

earthgirlllc

Member
  • Posts

    54
  • Joined

  • Last visited

About earthgirlllc

Recent Profile Visitors

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

earthgirlllc's Achievements

Member

Member (2/3)

0

Reputation

  1. I have thousands of carding attempts in Stripe this week that are originating from the WHMCS webhook, similar to those shown above. While I've been able to mitigate with Stripe fraud protect rules, each attempt still creates a new customer in Stripe, and it's only a matter of time before they find a way around those rules. I'm on WHMCS v8.4.1 . Anyone else find a fix?
  2. I have a Zap at Zapier I use to close these tickets: https://zapier.com/shared/83b885be9efa744ae0f00f89a92b2c09ce346e61
  3. This was resolved by replacing the /modules/ folder with a clean copy and adding back modules one by one to find the culprit, which I'm still doing.
  4. I just had my WHMCS upgraded to v8.4 and I'm having some issues with phpMail at the least. First, /admin/configgeneral.php isn't fully loading. There's no styling to the page, and it stops loading just after the Mail Provider label. Then, I see this: Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. Error: Unable to load mail module: PhpMail The only console error I see is: configgeneral.php:123 Uncaught ReferenceError: jQuery is not defined at configgeneral.php:123:17 (anonymous) @ configgeneral.php:123 Of course, all outgoing emails are failing but I'm unable to change the mail method because general settings page won't load. I attempted to do it through the database but wasn't 100% sure where to do that. I'm in `tblconfiguration` in the 'MailType' setting. Currently it says "mail". If that's the correct row, what do I change it to? Any help with the email portion would be greatly appreciated. I have a ticket in to the WHMCS upgrade team but it could be a while. :) Thanks!
  5. Hi, I'm new to WHMCS dev and trying to piece a hook together. I can't figure out how to pass values from the parameter array to my query. This is what I have so far, any help appreciated. 🙂 There are no errors in the activity log and no PHP errors. Hook debug is on and these are the only pertinent entries (not in this order): Hooks Debug: Hook Point AfterModuleSuspend - Calling Hook Function (anonymous function) Hooks Debug: Hook File Loaded: /home/*****/public_html/modules/addons/callfire/hooks.php Hooks Debug: Attempting to load hook file: /home/*****/public_html/modules/addons/callfire/hooks.php Hooks Debug: Hook Defined for Point: AfterModuleSuspend - Priority: 1 - Function Name: (anonymous function) Thank you! <?php use Illuminate\Database\Capsule\Manager as Capsule; add_hook('AfterModuleSuspend', 1, function($vars) { $userid=$vars['params']['userid']; $domain=$vars['params']['domain']; try { Capsule::connection()->transaction( function ($connectionManager2) { $connectionManager2->table('mod_callfire')->insert( [ 'userid'=>$userid, 'message'=>$domain, 'status'=>'Pending', ] ); } ); } catch (\Exception $e) { } });
  6. I'm learning to create addon modules and not able to find documentation on using an addon to modify, or replace, a tpl file. I know how to use hooks to add fields, but there are fields I want to hide entirely (without using CSS/Javascript) when a module is enabled. What's protocol for this? Thanks!
  7. I figured it out use Illuminate\Database\Capsule\Manager as Capsule; add_hook('AdminClientDomainsTabFields', 2, function(array $params) { $domainId = $_GET['id']; try { $results = Capsule::table('mod_domain_restriction') ->where('dr_domainid', $domainId) ->where('dr_restrict', 1) ->first(); if ($results >= 1) { // DO THIS }
  8. Hi all - I'm trying to learn how to create add-on modules & hooks. The documentation is good but I could use some more examples or pointers. I've created a form field within the Admin Domain Details tab that inserts data to mod_ table on save. That part works fine. But now I need the Admin Domain Details tab to populate those values on load. I'm muddling through Laravel docs too (eek) and can't seem to figure this out. Table: mod_domain_restriction Field 1: (unique/int) dr_domainid (the domain_id) Field 2: (boolean) dr_restrict_domain The formfield is a radio input and I just need to tell it, essentially, if `mod_domain_restriction`.`dr_domainid` exists and matches $vars['id'] (right?), then: return ['Restrict Domain' => '<input type="radio" name="restrict_domain" value="0" id="off"> <label for="off">Off</label> <input type="radio" name="restrict_domain" value="1" id="on" checked> <label for="on">On</label>', ]; else return [ 'Restrict Domain' => '<input type="radio" name="restrict_domain" value="0" id="off" checked> <label for="off">Off</label> <input type="radio" name="restrict_domain" value="1" id="on"> <label for="on">On</label>', ]; I'm not sure how to do that initial query with Laravel. This is what I've pieced together - I know it's way wrong but I'm trying. 🙂 (Note: I'm working with domain_id 1 so I just hard coded it in for testing. I need that to be dynamic too, but one thing at a time!) EDIT: Solution-> this worked -- use Illuminate\Database\Capsule\Manager as Capsule; add_hook('AdminClientDomainsTabFields', 1, function(array $params) { try { $results = Capsule::table('mod_domain_restriction') ->where('dr_domainid', '1') ->get(); if ($results == 0) { -- The hook logs aren't giving me much. Even when I'm able to get the syntax worked out, I don't get any results. So, I'm on the wrong path and would love input? Once I get this first part figured, I can try to figure out the "if exists - update, otherwise insert". Thanks!! Date Description Username IP Address 09/07/2020 06:25 Hooks Debug: Hook File Loaded: /home/***/public_html/modules/addons/domain_restriction/hooks.php admin 09/07/2020 06:25 Hooks Debug: Could not include file: /home/***/public_html/modules/addons/domain_restriction/hooks.php. Error: syntax error, unexpected 'else' (T_ELSE), expecting ',' or ')' admin
  9. Thanks for the follow-up - it was, indeed, a third party theme extension.
  10. Hi there, I've come across an error I can't seem to find a solution for. From this page: https://**WHMCS INSTALL** /admin/configaddonmods.php?activated=true when I save an addon configuration, I get the following error: Error Updating Value On the page: https://**WHMCS INSTALL**/billing/admin/configaddonmods.php I've turned on error reporting and I don't get anything more verbose - just this. I upgraded to the most recent release to see if I could resolve it. The update went smoothly but the error is still present. Any ideas on how to troubleshoot this would be appreciated. Thanks! Amber
  11. Hi all I have one client that has over 1000 domains and over 60 hosting accounts, then some other services (SSL, etc). When they try to log in, or when I try to login as them (from the admin area or client area) it hangs until it times out. I increased the memory_limit to 640M and it finally loaded after about 45 seconds. Before that, it gave me a 500 error. What can I adjust for clients of this size that makes logging in a bit easier? I tested other templates and that's not the issue. Other clients with a normal amount of services are fine as well. Thank you!
×
×
  • 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