Jump to content

cluster

Members
  • Posts

    45
  • Joined

  • Last visited

  • Days Won

    2

cluster last won the day on August 6 2024

cluster had the most liked content!

Recent Profile Visitors

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

cluster's Achievements

  1. I'm working on a provisioning module that uses a Rest API, connection already works... I would like to pass all client details (address, zip, city, phone etc.) to the panel via API, is it sufficient as listed below or do all client variables have to be declared again separately? as an example: "first_name"=> $client->first_name, public function addService( $package, array $vars = null, $parent_package = null, $parent_service = null, $status = 'pending' ) { $row = $this->getModuleRow(); if (!$row) { $this->Input->setErrors( ['module_row' => ['missing' => Language::_('kh.!error.module_row.missing', true)]] ); return; } // ... // my question refers to this $data = array( "username"=> $username, "email"=> $client->email, "password"=> $this->generatePassword(), "id_hosting_plan"=> $package->meta->template, "is_suspended"=> false, "suspend_on"=> null, "delete_on"=> null, "send_login_credentials"=> false, "create_system_domain"=> false, 'contact_data'=>[ "first_name"=> $client->first_name, "last_name"=> $client->last_name, "company"=> $client->company, "telephone"=> $client->phone, "address"=> $client->address1, "city"=> $client->city, "zip"=> $client->zip, "state"=> $client->state, "country"=> $client->country, "client_id"=> $client->client_id ] ); // ... public function getClientAddFields($package, $vars = null) { Loader::loadHelpers($this, ['Html']); $fields = new ModuleFields(); // Create domain label $domain = $fields->label(Language::_('kh.service_field.domain', true), 'kh_domain'); // Create domain field and attach to domain label $domain->attach( $fields->fieldText( 'kh_domain', (isset($vars->kh_domain) ? $vars->kh_domain : ($vars->domain ?? null)), ['id' => 'kh_domain'] ) ); // Set the label as a field $fields->setField($domain); return $fields; }
  2. --- bump --- I can confirm this, smart search does not show any results when searching for service domain or domain name. It would be nice if this little thing could be fixed quickly.
  3. OK ... I have renewed my Support and Updates services today. There is currently no productive installation in use and I am only testing w/ the dev license. If I remember correctly this is probably caused due to the dev license (I hope so), so that's not a problem 😉
  4. Sorry guys, the problem does not seem to be caused by changing the admin folder name, I changed it again to admin for testing and the info page still looks broken ... mytestdomain.tld/admin/settings/system/staff/edit/1/ Blesta debugging is enabled, but no errors are shown ... not even in the apache error.log I am currently testing a few custom modules & plugins using a DEV license installation ... could that be the reason?
  5. Blesta 5.10.1 PHP 7.4 FPM Debain 11 error details when declaring a custom admin folder name, a UI error occurs under "My Info" The variable for the custom admin folder name (Route.admin) may be missing in "My Info" page ... steps to reproduce change Route.admin in /config/routes.php e.g. Configure::set("Route.admin", "bltestadmin"); Clear cache: Settings > System > Staff > Staff Groups > Save with no changes Logout > Login and click "My Info"
  6. Would it work with the States and Countries plugin or will I break something in Blesta if I delete countries and states? https://marketplace.blesta.com/#/extensions/1-States&Countries
  7. Is there a way to display the number of current past due (overdue) in the widget system overdue (admin area) and link it to Invoices > Past Due? Where can I find this widget and how could it be implemented?
  8. Is there any way (CSS or JS, adjustment in the code) to filter the country list (checkout registration)? I only want to allow a few countries without using maxmind or other external provider.
  9. Debian 11 PHP 7.4 Blesta 5.70 ISPConfig 3.2.10p1 1. On package activation - > Error message: web_php_options_notempty<br /> ssh_chroot_notempty<br /> I have no idea why this error occurs, selected in package a template (package) of the ISPConfig server which was shown in Blesta package setup 2. I have allowed to use a domain name as username in ISPConfig, but this is blocked (regex check) in Blesta (domain.tld) contains a dot. Can this problem be solved by a extended regex? need some help to solve these problems
  10. is it possible to add an extra email template to modules in order to send it manually from the admin area? f.ex. a special abuse message in a hosting module or a final notice in the domain module that the domain name is about to expire today. These messages should then be displayed in the admin area under the respective service - domain names or hostings etc.
  11. I would like to place a product in the shopping cart via a direct link and from there an option for registering or transferring a domain name or using an existing domain name. Can I create my own additional order template for this and does that work w/ Blesta? add product > my order form > add domain name option (register new, transfer, use existig) > checkout
  12. is there also a possibility for domain transfer checks to be integrated into an external html or php script? External Domain Availability Check
  13. Thanks that helped, the timeouts were too low ... I have adjusted: wait_timeout = 3600 connect_timeout = 1200 interactive_timeout = 1200 I don't know why but the whmcs date format for all affiliate tables is different from the whmcs date format - so the affiliate page in blesta now shows an error message about wrong date format ... whmcs date format is set to d/m/Y but the affiliate tables use e.g. 2015-11-12 Is there any sql query which can convert the date format in the affliate tables from Y-m-d to d/m/Y?
  14. I searched all the whmcs tables and emptied the following which did not have a valid userid tbloauthserver_access_tokens tbloauthserver_clients the same error message is still displayed, only customers and invoices are imported. I am a little disappointed that there is no feedback here ... I was able to import everything from whmcs in a wisecp installation (except for cancellations & domains price list). When will these problems be fixed in the blesta import script?
  15. Debian Buster / PHP 7.4 (fpm) / MariaDB 10.3 WHMCS 7.10.3 Blesta 5.2.1 I have tested an import from whmcs with a few errors ... not imported: Packages, Services, Affiliates, SupportTickets, Servers, Domain price list Cients are imported but many inactive are shown as activ, only clients from whmcs with status closed are set to inactive, but both (closed & inactive) needs to be set as inactive in Blesta. The import completed but the following errors ocurred: importTransactions: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away on line 196 importPackages: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 importPackageOptions: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 importServices: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 importSupportDepartments: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 importSupportTickets: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 importAffiliates: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 importMisc: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 another try w/ debug mode enabled: importCurrencies took: 0.0036 seconds ----------------- importInvoices ----------------- importInvoices took: 185.6431 seconds ----------------- importTransactions ----------------- importPackages ----------------- importPackageOptions ----------------- importServices ----------------- importSupportDepartments ----------------- importSupportTickets ----------------- importAffiliates ----------------- importMisc ----------------- decrypted 0 values using WHMCS' custom algorithm decrypt took: 0 seconds total time took: 1026.206 seconds Array ( [error] => Array ( [0] => The import completed but the following errors ocurred: [1] => importTransactions: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away on line 196 [2] => importPackages: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 [3] => importPackageOptions: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 [4] => importServices: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 [5] => importSupportDepartments: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 [6] => importSupportTickets: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 [7] => importAffiliates: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196 [8] => importMisc: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 196
×
×
  • Create New...