Jump to content
  • 0
sedudohost

versions 4.8 and 4.8.1 the centos webpanel module did not work

Question

Regards,
After upgrading to versions 4.8 and 4.8.1 the centos webpanel module did not work, when I created a new account there was a warning 'Something went wrong. Undefined property: stdClass :: $ port "

Screenshot_2020-02-12_07-29-47.png.a66cd3edf9c16e7bbbe4b5bfa1cfa010.png
I tried the reconnection of the module there the warning "A connection to the server could not be established. Please check to ensure that the Hostname and API Key are correct."  I've changed the port from 2082 to 2083. ip port 2087 and I have tried to delete it, still an error
Screenshot_2020-02-12_06-28-18.thumb.png.71ca3eda2602a22608e35b892d9f6a3f.png


whereas before (the lower version) there were no problems.

 

**google translate

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

You should enable debugging in Blesta and repeat the steps you performed to generate that error again. It would be useful to know what file/line number that error occurred on to help identify the issue.

Make sure you've uploaded all the files for the CentOS web panel module, and that you've upgraded it in Blesta (also that you've upgraded Blesta by running /admin/upgrade/ in your browser if you haven't already). The module should be version 2.1.0.

By default, the login port would be 2031 and the API port would be 2034. Yours are different, so you may want to double-check that yours are correct.

FYI, the CentOS Web Panel module was updated to use their new API in v4.8.0.

Share this post


Link to post
Share on other sites
  • 0

Thank's

I have already upgraded to the latest version. and error log there are comments
"[2020-02-14 00:27:30] general.NOTICE: E_NOTICE: Undefined property: stdClass :: $ port {" code ": 8," message ":" Undefined property: stdClass :: $ port "," file ":" / home / usercwp / public_html / billing / components / modules / centoswebpanel / centoswebpanel.php "," line ": 914}
[2020-02-14 00:30:51] general.NOTICE: E_NOTICE: Undefined property: stdClass :: $ port {"code": 8, "message": "Undefined property: stdClass :: $ port", "file ":" / home / usercwp / public_html / billing / components / modules / centoswebpanel / centoswebpanel.php "," line ": 914}
[2020-02-14 02:03:07] general.NOTICE: E_NOTICE: Undefined property: stdClass :: $ port {"code": 8, "message": "Undefined property: stdClass :: $ port", "file ":" / home / usercwp / public_html / billing / components / modules / centoswebpanel / centoswebpanel.php "," line ": 1134}"
and
"/ home / usercwp / ... ', 914, Array) # 2 /home/usercwp/public_html/billing/components/modules/centoswebpanel/centoswebpanel.php(914): Monologue \ ErrorHandler-> handleError (8,' Undefined prope ... ',' / home / usercwp / ... ', 914, Array) # 3 /home/usercwp/public_html/billing/app/models/services.php(1348): Centoswebpanel-> editService (Object (Object ( stdClass), Object (stdClass), Array, NULL, NULL) "

Share this post


Link to post
Share on other sites
  • 0

The error indicates it is missing the port field on the module row object. This port field should be set on the module row when you save it. From your screenshot, that is the "API Port" field.

However, you get an error about the connection failing to be established. Can you check your module logs to see if there is an entry that begins with "<yourdomain>|validate_connection/packages_get"? That log should contain some information on the API request that failed to validate the connection. This is the reason for the port error as well. The port is not being set on the module row because you cannot successfully save the updated module row information. Once the connection issue is resolved the port error will go away.

Share this post


Link to post
Share on other sites
  • 0

thank you,
the activation / settings in the cwp module have already been solved.
unfortunately when creating / activating packages it can't. there is a comment "An internal error occurred, or the server did not respond to the request"
Screenshot_2020-02-19_09-30-00.thumb.png.f71c6e1db548318caa0c0ce716d17357.png


and in tools / logs / module /
Input

myhost.domain.com|account_new
a:9:{s:6:"domain";s:18:"mynewdoamin.com";s:4:"user";s:6:"usercwp";s:4:"pass";s:3:"***";s:5:"email";s:24:"email@gmail.com";s:7:"package";s:3:"1Gb";s:5:"inode";s:1:"0";s:12:"limit_nofile";s:3:"100";s:11:"limit_nproc";s:2:"40";s:10:"server_ips";s:20:"myhost.domain.com";}

output Error
myhost.domain.com|account_new
<html><head><title>Slim Application Error</title><style>body{margin:0;padding:30px;font:12px/1.5 Helvetica,Arial,Verdana,sans-serif;}h1{margin:0;font-size:48px;font-weight:normal;line-height:48px;}strong{display:inline-block;width:65px;}</style></head><body><h1>Slim Application Error</h1><p>The application could not run because of the following error:</p><h2>Details</h2><div><strong>Type:</strong> ErrorException</div><div><strong>Code:</strong> 8</div><div><strong>Message:</strong> Trying to get property of non-object</div><div><strong>File:</strong> /usr/local/cwpsrv/var/services/api/v1/index.php</div><h2>Trace</h2><pre><div>#0 /usr/local/cwpsrv/var/services/api/v1/index.php(0): Slim\Slim::handleErrors(8, 'Trying to get p...', '/usr/local/cwps...', 0, Array)
<div>#1 [internal function]: {closure}()
<div>#2 /usr/local/cwpsrv/var/services/api/v1/Slim/Route.php(0): call_user_func_array(Object(Closure), Array)
<div>#3 /usr/local/cwpsrv/var/services/api/v1/Slim/Slim.php(0): Slim\Route->dispatch()
<div>#4 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/Flash.php(0): Slim\Slim->call()
<div>#5 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/MethodOverride.php(0): Slim\Middleware\Flash->call()
<div>#6 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/PrettyExceptions.php(0): Slim\Middleware\MethodOverride->call()
<div>#7 /usr/local/cwpsrv/var/services/api/v1/Slim/Slim.php(0): Slim\Middleware\PrettyExceptions->call()
<div>#8 /usr/local/cwpsrv/var/services/api/v1/index.php(0): Slim\Slim->run()
<div>#9 {main}</pre></body></html>

Share this post


Link to post
Share on other sites
  • 0

It looks like the API for your module is not responding appropriately. First, it's returning HTML, and second, it's sharing an error and stacktrace because something is wrong with the CWP server. This issue isn't caused by Blesta, but by the server it's attempting to connect to. You should look into that CWP server and resolve the error that's mentioned because it's not running correctly.

Type: ErrorException
Code: 8
Message: Trying to get property of non-object
File: /usr/local/cwpsrv/var/services/api/v1/index.php
Trace
#0 /usr/local/cwpsrv/var/services/api/v1/index.php(0): Slim\Slim::handleErrors(8, 'Trying to get p...', '/usr/local/cwps...', 0, Array)
...

 

Share this post


Link to post
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
Answer this question...

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