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

          jonathan Jonathan Reissmueller created issue -
          jonathan Jonathan Reissmueller made changes -
          Field Original Value New Value
          Link This issue relates to CORE-2167 [ CORE-2167 ]
          jonathan Jonathan Reissmueller made changes -
          Description {quote}
          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}
          {quote}

          This code needs to be added at the start of the method:
          {code}
                  if (!isset($this->ServiceInvoices)) {
                      Loader::loadModels($this, ['ServiceInvoices']);
                  }
          {code}
          {quote}
          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}
          {quote}

          This code needs to be added at the start of the method:
          {code}
                  if (!isset($this->ServiceInvoices)) {
                      Loader::loadModels($this, ['ServiceInvoices']);
                  }
          {code}

          This bug was introduced by CORE-2167
          Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
          Status Open [ 1 ] In Progress [ 3 ]
          jonathan Jonathan Reissmueller made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 10 minutes [ 600 ]
          Worklog Id 10334 [ 10334 ]
          Automated transition triggered when Jonathan Reissmueller created pull request #323 in Stash -
          Status In Progress [ 3 ] In Review [ 5 ]
          Resolution Fixed [ 1 ]
          jonathan Jonathan Reissmueller made changes -
          Sprint 4.2.0 Sprint 2 [ 47 ]
          jonathan Jonathan Reissmueller made changes -
          Rank Ranked higher
          jonathan Jonathan Reissmueller made changes -
          Fix Version/s 4.1.2 [ 11016 ]
          Fix Version/s 4.2.0-b1 [ 11014 ]
          Original Estimate 0 minutes [ 0 ]
          Automated transition triggered when Tyson Phillips (Inactive) merged pull request #323 in Stash -
          Status In Review [ 5 ] Closed [ 6 ]

            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