Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2480

Services::appendServices throws fatal error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.2, 4.2.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Undefined property: Invoices::$ServiceInvoices on line 1116 in C:\wamp64\www\blesta\public_html\app\models\invoices.php

      Printing Stack Trace:
      #0 [internal function]: UnknownException::setErrorHandler(8, 'Undefined prope...', 'C:\\wamp64\\www
      b...', 1116, Array)
      #1 C:\wamp64\www\blesta\public_html\vendors\monolog\monolog\src\Monolog\ErrorHandler.php(164): call_user_func(Array, 8, 'Undefined prope...', 'C:\\wamp64\\www
      b...', 1116, Array)
      #2 C:\wamp64\www\blesta\public_html\app\models\invoices.php(1116): Monolog\ErrorHandler->handleError(8, 'Undefined prope...', 'C:\\wamp64\\www
      b...', 1116, Array)
      #3 C:\wamp64\www\blesta\public_html\app\controllers\admin_clients.php(5701): Invoices->appendServices('6929', Array)
      #4 C:\wamp64\www\blesta\public_html\app\controllers\admin_clients.php(5580): AdminClients->createService(Array, Array)
      #5 C:\wamp64\www\blesta\public_html\app\controllers\admin_clients.php(4573): AdminClients->processServiceStep('confirm', Object(stdClass), Object(stdClass), Object(stdClass))
      #6 C:\wamp64\www\blesta\public_html\vendors\minphp\bridge\src\Lib\Dispatcher.php(143): AdminClients->addService()
      #7 C:\wamp64\www\blesta\public_html\index.php(21): Dispatcher::dispatch('/blesta/public_...')
      #8 {main}

      This code needs to be added at the start of the method:

              if (!isset($this->ServiceInvoices)) {
                  Loader::loadModels($this, ['ServiceInvoices']);
              }
      

      This bug was introduced by CORE-2167

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              jonathan Jonathan Reissmueller
              Reporter:
              jonathan Jonathan Reissmueller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Oct/17

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m

                  Agile