Jump to content

Eduardo G.

Member
  • Posts

    197
  • Joined

  • Last visited

  • Days Won

    3

Eduardo G. last won the day on July 29 2023

Eduardo G. had the most liked content!

About Eduardo G.

Recent Profile Visitors

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

Eduardo G.'s Achievements

Senior Member

Senior Member (3/3)

6

Reputation

  1. I'm having problems too with AdminAreaHeadOutput hooks since last update, using whmcs 8.13.1 Even a simple hook is not working: <?php add_hook('AdminAreaHeadOutput', 1, function($vars) { return <<<HTML <script type="text/javascript"> console.log("hooked!"); </script> HTML; });
  2. Support team just said our WHMCS was making way to much request to theis license servers and thus my ip was restricted. But that doesnt tell me what was wrong. Maybe a directory change 2 or 3 weeks before had something to do with it...
  3. Hi! I'm having problems with license checking. It looks like Cloudflare is rate limiting my requests to license servers, that's crazy! Any similar experience ? Testing Connection to 'https://a.licensing.whmcs.com/1.0/test'... URL resolves to 172.67.4.33 ... Response Code: 429 Connection Failed! Raw Output: error code: 1015 Testing Connection to 'https://b.licensing.whmcs.com/1.0/test'... URL resolves to 104.22.2.53 ... Response Code: 429 Connection Failed! Raw Output: error code: 1015
  4. Same error here! It happens on daily cron since I moved from phph 74 to php 8.1 PHP Fatal error: Invalid opcode 187/0/0. in public/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php on line 0 Fatal error: Invalid opcode 187/0/0. in public/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php on line 0 [WHMCS Application] ERROR: Whoops\Exception\ErrorException: Invalid opcode 187/0/0. in public/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php:0 Stack trace: #0 public/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError() #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} {"exception":"[object] (Whoops\\Exception\\ErrorException(code: 1): Invalid opcode 187/0/0. at public/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php:0)"} [] Whoops\Exception\ErrorException: Invalid opcode 187/0/0. in public/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php:0 #0 public/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError() #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main}
  5. Hi all. I want my custom module to access some attachment directories, but I don't know how to read that information from "Storage Settings" In that section I see variables like asset_setting[client_files] or asset_setting[downloads] How do I get those asset_setting variables from my module? Thanks Edit: I'm currently getting value from a joined SQL query (tblstorageconfigurations and tblfileassetsettings) but I wonder if this value is available in some other way
  6. Thanks, Kian I've been working on that approach too, just didn't want to reinvent the wheel 😕 But it seems there's no other way. Well, I could fill a feature request xD xD
  7. Hi all. I have created several multi-language addons using "lang" folder inside the addon folder: https://developers.whmcs.com/addon-modules/multi-language/ And it's ok as long I use those translations from _output and _sidebar. But then my hooks cannot take that advantage. They just can't see _LANG variables Also method Lang::trans() is not valid because it doesnt take into account those custom addon's language files. Of course I cannot ask the customers to edit their global lang overrides, also that wouldn't be correct. So question is: how could I use custom addon own lang files and translation from inside this adddon's hook file? TIA.
  8. As I read: ->useCurrent() Set TIMESTAMP columns to use CURRENT_TIMESTAMP as default value Thats not what I'm trying, just want the first timestamp field's defaults works just like the second one
  9. Hi all I have a strange problem. When creating a table from my addon's activate() method I get a default value for the first timestamp field. For example: Capsule::schema()->create('sample_table', function($table) { $table->increments('table_id'); $table->integer('age'); $table->string('name', 100); $table->timestamp('created'); $table->timestamp('updated'); $table->float('amount', 8, 2); $table->text('description'); }); This creates a table like this: CREATE TABLE `sample_table` ( `table_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `age` int(11) NOT NULL, `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `amount` double(8,2) NOT NULL, `description` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`table_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci See default value for "created" and "updated"? Can someone explain why? Or how should I get it filled by zeros like the other timestamp field? Thank you
  10. Hi all! I have created an addon module, with two language files. It's working fine with _ADDONLANG vars. But then I create a hook that displays a message in client area home, and I need to access _ADDONLANG from that hook I tried LANG, _ADDONLANG, Lang::trans... and can't get it working. Can somebody tell me if addon's _ADDONLANG variables are accessible from hook?
  11. Check https://github.com/mdpuma/whmcs-notification-telegram
  12. That sounds like a web application firewall like modsec. It's triggering an alert because of the POSTed data
  13. Glad to see it's fixed in version 8 😄
  14. Thanks, @string I think I've see the problem: when I look at ticket list from the admin panel I see the Submitter column shows the client name, which is not the submitter. But then when I open that ticket from client area I see the sender is a Staff member. So I think it was warking before but admin panel was showing wrong submitter.
×
×
  • 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