Jump to content

WebhostingNZ.com

Members
  • Posts

    113
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by WebhostingNZ.com

  1. 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

  2. Just now, bjacksparow said:

    Why do I have to update? Am I asking to make use of the new features of the software?

     I am just asking to provide the ion cube encoded files in multiple php versions and if you are planning to not provide these, let your customers know way in advance. 

    2

    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.

  3. 3 minutes ago, bjacksparow said:

    And if you are planning to end something or make breaking changes, simply announce and provide portability until the announced date

     

    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?

  4. 11 hours ago, katycomputer said:

    Best answer: renew with OpenSRS, then transfer to NameCheap, you don't "lose" the 12 months of domain registration, it gets tacked onto your NameCheap registration.

     

    Yep, or transfer about a month before due date.  Clearly in this instance this is now not an option.

  5. 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.

  6. 5 hours ago, bjacksparow said:

    How would you like your purchased software to stop working because you upgraded your ram? I hope everyone can understand what I am trying to convey here.
     

     

    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.

     

  7. 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.

  8. 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}

     

  9. @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.

  10. @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).

  11. 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.

  12. 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.

×
×
  • Create New...