Jump to content

WebhostingNZ.com

Members
  • Posts

    113
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by WebhostingNZ.com

  1. Found my error, a simple one at that. It should be: $data = array( 'vars' => array( 'first_name' => 'Daniel',..... I missed putting in the 'vars' => bit
  2. Thanks @activa that's not the same problem as I am having though. I am trying to already use clients->create via the API to create the client but am getting an error.
  3. @Blesta Addons Thanks, updated to $response = $api->post("clients", "create", $data); but still get the same error.
  4. Hey, Hopefully, someone can help. I am having trouble adding a client via the API, I keep getting the following error: BlestaResponse Object ( [raw:BlestaResponse:private] => {"message":"An unexpected error occured.","response":"Internal error: Failed to retrieve the default value"} [response_code:BlestaResponse:private] => 500 ) My code is as follows: require_once "blesta_api.php"; $user = '***'; $key = '***'; $url = "https://***/api/"; $api = new BlestaApi($url, $user, $key); $data = array( 'username' => 'daniel***.com', 'new_password' => '****', 'confirm_password' => '****', 'client_group_id' => '16', 'status' => 'active', 'first_name' => 'Daniel', 'last_name' => '***', 'title' => 'Mr', 'company' => 'MyCompany', 'email' => 'daniel***.com', 'address1' => '1 street', 'address2' => 'somewhere', 'city' => 'mycity', 'state' => '***', 'zip' => '1111', 'country' => 'NZ', 'numbers' => array ( 'type' => 'phone', 'location' => 'home', 'number' => '****', ), 'settings' => array ( 'username_type' => 'email', 'tax_exempt' => false, 'tax_id' => '', 'default_currency' => 'NZD', 'language' => 'en_us', 'receive_email_marketing' => true, ), 'send_registration_email' => 'true', ); $response = $api->get("clients", "create", $data); print_r($response); Thanks, Daniel
  5. @od-ana I guess that would depend on what license you currently have. For example, we have a monthly license so we would just find a new provider before that month was up. What sort of license are you on? Owned? monthly?
  6. Right here, this is the answer.... You do NOT need to update - you do however, need to also NOT update your PHP version. You can't update one without updating the other. As I have already said just run PHP5.6 and you will have no problem. I won't be replying to this thread anymore as I feel it will go nowhere everything that can be has been answered already. Good luck.
  7. Please let me know how they made changes that broke it? The software was released for PHP version 5.6. It still works on the PHP version it was produced for they didn't break anything. Your choice of PHP install is what is causing the problem. FYI: Blesta 3.6.1 was released one month before PHP7 was even released, and a long time before control panel software added support for PHP7. https://www.blesta.com/tags/3.6.1/ https://en.wikipedia.org/wiki/PHP Side note but I wish Wingcommander/Privateer still worked on my current PC (without an emulator), wonder if I should message them and tell them to update for me?
  8. Yep, or transfer about a month before due date. Clearly in this instance this is now not an option.
  9. @ashevillewebhosting have you tried totally disabling your firewall for a minute and seeing if Blesta will then work with the server Blesta is installed on? Just to rule out any issue with the firewall that is. Don't forget to re-enable your firewall straight after.
  10. as activa has said this is done automatically, how are you upgrading the services? Click 'Manage', under 'Upgrade/Downgrade' change the service to the new service requested and have 'Prorate' ticked. It will show the subtotal down the bottom right of the screen, when you click save it will invoice them for that amount and depending on your settings will either upgrade on the spot or wait for the invoice to be paid then upgrade. I can't recall properly but I think it doesn't work with override price. You also need all of the packages in the same group to be able to upgrade/downgrade between them.
  11. So if you upgrade your ram from DDR3 to DDR4 it's the motherboards fault for not taking the ram? They should make it fit and work? Because we aren't talking about a minor build update here we are talking about a major version/release change. If you don't want to pay to upgrade, just run PHP 5.6. If you want to update your PHP, you need to update your Blesta as well it's as simple as that. Get a cheap VPS, put PHP5.6 on it, install blesta, or go to a webhost that provides mulit PHP. cPanel, Cloudlinux and I'm sure other panel software also provides the user with the choice on PHP version.
  12. Hi @bjacksparow, Why not just run PHP 5.6? If your host doesn't support it, find one that does. The better option as @katycomputer has pointed out would be to upgrade your blesta license and install the 'latest & greatest' aka current version.
  13. Have you setup Support Manager Department for it? You can either pipe the email to the script it mentions in the department when you set it up, or edit it or you can have Blesta check the email account via POP3 or IMAP for emails.
  14. Hi, Using the admin area we are not able to generate a Tax Liability report. I have tested this on a fresh 4.3.2 install and the same error is reported. Below is the error. This happens when you select either CSV or JSON PHP version 5.6, MySQL version 5.6 and MariaDB 10.2, both servers running cPanel (test server and live server both have this error) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'temp.id' in 'order clause' on line 196 in /home/<username>/public_html/vendors/minphp/db/src/PdoConnection.php Printing Stack Trace: #0 /home/<username>/public_html/vendors/minphp/db/src/PdoConnection.php(196): PDOStatement->execute(Array) #1 /home/<username>/public_html/vendors/minphp/record/src/Record.php(804): Minphp\Db\PdoConnection->query('SELECT temp.*, ...', Array) #2 /home/<username>/public_html/components/reports/tax_liability/tax_liability.php(206): Minphp\Record\Record->getStatement() #3 /home/<username>/public_html/app/models/report_manager.php(199): TaxLiability->fetchAll('6', Array) #4 /home/<username>/public_html/app/controllers/admin_reports.php(41): ReportManager->fetchAll('tax_liability', Array, 'csv') #5 /home/<username>/public_html/vendors/minphp/bridge/src/Lib/Dispatcher.php(143): AdminReports->index() #6 /home/<username>/public_html/index.php(21): Dispatcher::dispatch('/admin/reports/') #7 {main}
  15. Hi @od-ana On the 'orders' widget on the 'Billing' -> 'overview' page, click the cog, set your email preferences.
  16. @Mariano I see no reason that wouldn't work. It's actually a great idea and I don't think would be too hard to implement.
  17. @Blesta Addons sub is well worth it. He has many useful plugins/modules and if he wants to keep getting paid he will keep them updated, that's the bonus to the sub opposed to a one-off payment. It really is great value for what you have access to.
  18. @feezioxiii Are your invoices showing the correct due date when they are created?
  19. @Tyson It is all renewing services when the invoice is created, everything is on the invoice except the date range for the service. It's happening for all modules, Enom, cPanel, Webdrive/Metaname, all terms 1 month to 1 year and all companies. It doesn't seem to matter if the service was created a month ago or 2 years ago but it is only happening on renewals. New services/orders the invoice has the date range on it.
  20. @Tyson I use the default English, US language. For me it also didn't happen straight after I updated, was one week after I updated to 4.3. I had a PM with @Hostmaster in discord about it, sent some screenshots and was asked to look at the logs, which caused me to create the request https://requests.blesta.com/topic/system-basic-setup-health-warning (since the log I needed wasn't writeable so wasn't saving anything).
  21. @Joseph H This is also happening to me. For one day I also had the date the invoice was due, as the date the invoice was generated, not the date the service should have renewed, might want to check it hasn't happened to you too.
  22. @qba82 you don't buy, you have a subscription that allows you access to all the plugins/modules in that tier or below with @Blesta Addons . So yes you would have to pay again in one years time. Edit: @Blesta Addons your reply was on new page didn't see it sorry
  23. You could create a template for each company, then edit each template. Or add some PHP similar to the following: <?PHP $host = $_SERVER['HTTP_HOST']; if ($host == "YOURCOMPANYBLESTAURL"){ echo 'YOUR CODE'; } elseif ($host == "YOURCOMPANYBLESTAURL"){ echo 'YOUR CODE'; } ?> I'm sure there is a better way than the above but it works for us with our live chat.
  24. Your domain name needs to point to your IP so their license servers can validate your trial license. Not just at your local machine or your router but from the internet. You should be able to A record point your domain name (or a subdomain of it) to your local machine. Even if you have a dynamic address as long as it only changes on router reboot you should be ok to give blesta a test.
  25. Hey @lolgc1 I don't know why but I haven't looked into it either, you've posted on Sunday I'm sure you'll get a reply tomorrow/Monday
×
×
  • Create New...