Jump to content

Hotfix for 4.7.0 "Undefined property: Services::$Clients..." Error


Recommended Posts

Posted

It has come to our attention that under some circumstances in Blesta 4.7.0 (e.g. when a client is adding an addon service through the client interface) users can receive a fatal error "Undefined property: Services::$Clients on line 5159 in path_to_your_blesta\app\models\services.php".  This is a bug that will be resolved in 4.7.1 (CORE-3271).  You can fix this issue by changing app/models/services.php lines 5112-5114 from 

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

to

        Loader::loadModels($this, ['Packages', 'Clients', 'ClientGroups'])

Or you can override app/modelsservices.php with the attached services.php file

services.php

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...