Jump to content

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


Jono

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...