Jump to content

Problem with the user function of the ispconfig module.


Micahel Yoon

Recommended Posts

There is a problem with the user function of the ispconfig module.

Blesta 5.5.3
ISPConfig 1.9.0

If you click the Statistics menu of the service, the following error appears.
https://~/client/services/manage/[ServiceNo]/tabClientStats/

Something went wrong.
Undefined property: stdClass::$type.
Undefined property: stdClass::$type on line 1192 in

1181 public function tabClientStats($package, $service, array $get = null, array $post = null, array $files = null)
1182 {
1183 $this->view = new View('tab_client_stats', 'default');
1184
1185 // Load the helpers required for this view
1186 Loader::loadHelpers($this, ['Form', 'Html']);
1187
1188 $stats = $this->getStats($package, $service);
1189
1190 $this->view->set('stats', $stats);
1191
1192 $this->view->set('user_type', $package->meta->type);
1193
1194 $this->view->setDefaultView('components' . DS . 'modules' . DS . 'ispconfig' . DS);
1195
1196 return $this->view->fetch();
1197 }

If you dump the data at that location, there is actually no type in the meta data.
./blesta/components/modules/ispconfig/ispconfig.php
1192 file_put_contents('/logs_blesta/dump.log',print_r($package, TRUE), FILE_APPEND);
1193 //$this->view->set('user_type', $package->meta->type);

>> Dump data
stdClass Object
(
    [package] => 0
    [php_options] => Array
        (
            [php-fpm] => php-fpm
        )

    [ssh_options] => Array
        (
            [no] => no
        )

)

If you comment out the code, it works normally.

Am I missing data($type) because of what I did wrong?
Or is it something else?

I have been studying and modifying for nearly a year to use Blesta. It's fun, but now is the time to use it.

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...