Home Forums Support Apply License Manually

This topic contains 4 replies, has 2 voices, and was last updated by  johnlowsg 1 month, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23706

    johnlowsg
    Participant

    Hi,

    We just renewed our license for another year, but when we tried to apply it manually, an error occurred in…

    StartupCheck.php (line 195)
    at HandleExceptions->handleError(2, ‘Creating default object from empty value’,…

    PHP 7.3.15 (also tried on 7.2.28)
    Invoice Ninja 4.5.9

    Thanks
    John Low

    #23707

    Hillel Coren
    Keymaster

    I’m not sure, what do you see on line 195 of app/Http/Middleware/StartupCheck.php

    #23708

    johnlowsg
    Participant

    Does this helps…

    $company->plan_term = PLAN_TERM_YEARLY;

    188 if ($data == RESULT_FAILURE) {
    Session::flash(‘error’, trans(‘texts.invalid_white_label_license’));
    } elseif ($data) {
    $date = date_create($data)->modify(‘+1 year’);
    if ($date < date_create()) {
    Session::flash(‘message’, trans(‘texts.expired_white_label’));
    } else {
    195 => $company->plan_term = PLAN_TERM_YEARLY;
    $company->plan_paid = $data;
    $company->plan_expires = $date->format(‘Y-m-d’);
    $company->plan = PLAN_WHITE_LABEL;
    $company->save();

    Session::flash(‘message’, trans(‘texts.bought_white_label’));
    }
    } else {
    Session::flash(‘error’, trans(‘texts.white_label_license_error’));
    205 }

    #23709

    Hillel Coren
    Keymaster

    Thanks! If you can email [email protected] we’ll provide a solution.

    #23710

    johnlowsg
    Participant

    Thanks! Just sent an email to [email protected].

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Posted in: