xxxxx Posted January 25, 2014 Report Posted January 25, 2014 Describe the issue you're experiencing. Blesta 3.1's cPanel Module doesn't seem to be importing packages correctly. Provide detailed steps necessary to reproduce the issue. Log in to WHM, add a new package, log in to Blesta 3.1, edit a package, under cPanel properties the package does not show up. Include the URL the error occurred on, relative to the installation path, ie "/admin/login". http://accounts.hosthallam.com/admin/packages/edit/5/ Attach screenshots. Attached. Include your configuration settings, i.e. OS, version of Blesta, version of module/gateway/plugin if applicable. Blesta 3.1, cPanel Module Quote
Michael Posted January 25, 2014 Report Posted January 25, 2014 Your a reseller erm you might need to show the setup area for the mod, server OS, and PHP / Mysql versions to help, because it's connected to the reseller side, sometimes the host can muck up the packages. I was helping a guy who had random packages and that was something on the cPanel host side and not Blesta. Quote
xxxxx Posted January 25, 2014 Author Report Posted January 25, 2014 Your a reseller erm you might need to show the setup area for the mod, server OS, and PHP / Mysql versions to help, because it's connected to the reseller side, sometimes the host can muck up the packages. I was helping a guy who had random packages and that was something on the cPanel host side and not Blesta. Hi bud, thanks for the reply. Server OS: CentOS PHP Version: 5.3.27 MySQL Version: 5.1.67-rel14.3-log Mod setup area: Attached. Quote
Michael Posted January 25, 2014 Report Posted January 25, 2014 It looks ok on this side. If you would like me to have a look with you on teamviewer to see if there is a fix, if there isn't the guys at Blesta can help, however they may need login information to debug it. Also is there any errors in the logs? tools > logs > modules > cPanel > click the row. Quote
xxxxx Posted January 25, 2014 Author Report Posted January 25, 2014 Package config on WHM looks fine too, and it's working on Blesta 2.5.1 fine (have it installed on another subdomain). No errors the the logs either. Any suggestions? Quote
Michael Posted January 25, 2014 Report Posted January 25, 2014 That's weird if it works on 2.5 but not on 3.1. Erm have you tried the cPanel Extended module? You can get it from here: http://www.blesta.com/forums/index.php?/topic/1254-cpanel-extended-module/ If that works that's even more confusing, but it would help you get up and running. Quote
xxxxx Posted January 25, 2014 Author Report Posted January 25, 2014 I don't really want to install the Extended module, much rather stick with the Blesta supported cPanel module. Could you please have a word with one of the Devs regarding this? Quote
Michael Posted January 26, 2014 Report Posted January 26, 2014 I've contacted Paul for you to check the thread. Quote
xxxxx Posted January 26, 2014 Author Report Posted January 26, 2014 Thank you. Much appreciated. Quote
Michael Posted January 26, 2014 Report Posted January 26, 2014 You're welcome, hopefully the guys can get you back on the road. Quote
xxxxx Posted February 3, 2014 Author Report Posted February 3, 2014 Any update on this please? it's really holding me back from migrating to v3.1. Quote
Michael Posted February 3, 2014 Report Posted February 3, 2014 I think they might spot it today mate, as it's a Monday Quote
Tyson Posted February 3, 2014 Report Posted February 3, 2014 If you can retrieve the packages via the API in Blesta v2.5, then I'm not sure why it's not working in v3. However, I don't think this action is logged. We would need to know what the response is from the server when attempting to fetch the packages to see what the cause may be. If you can update a file to add in logging, then please update /components/modules/cpanel/cpanel.php (line 1521) and change: return $this->ArrayHelper->numericToKey($this->Json->decode($api->listpkgs())->package, 'name', 'name'); to: $this->log($module_row->meta->host_name . "|listpkgs", null, "input", true); $result = $this->parseResponse($api->listpkgs()); if (!$result || !property_exists($result, "package")) return array(); return $this->ArrayHelper->numericToKey($result->package, "name", "name"); Then, go to add/edit a cPanel package, and then check the Module Logs. Let us know what output is shown. Michael 1 Quote
xxxxx Posted February 4, 2014 Author Report Posted February 4, 2014 Thank you for getting back to me, Tyson. I made the changes to cpanel.php as requested, then attempted to edit a cPanel Package. As expected, the list of available WHM Packages was empty, and the Module log simply shows: jin.webserversystems.com|listpkgs Please find attached a screenshot of the log. Any further help is much appreciated. Thank you, Daniel. Quote
Tyson Posted February 4, 2014 Report Posted February 4, 2014 Interesting. So, the Input is fine, but there is no Output section. Either an error occurred, or the cPanel server didn't respond to the request. I don't think it would have been an error, otherwise you likely would have seen it on the Packages page. Do you have multiple cPanel servers listed under [settings] -> [Company] -> [Modules] -> [installed] -> cPanel? Can you re-save them successfully? Do you have a server group created that your package is using, but which you forgot to assign servers to? Quote
xxxxx Posted February 4, 2014 Author Report Posted February 4, 2014 Thanks for the reply. The same issue occurs if I use a server group or try the server directly in the package. Please see the screenshot attached which should answer your questions. As we speak, I have had new clients sign up to the same cPanel packages via my Blesta 2.5 installation, which is still working fine. Thanks, Daniel. Quote
Tyson Posted February 4, 2014 Report Posted February 4, 2014 Okay, let's try one more change. If you could, update /components/modules/cpanel/cpanel.php (line 1475) and change: $this->log($row->meta->host_name, $response, "output", $success); to: $this->log(($row ? $row->meta->host_name : "unknown"), $response, "output", $success); And see if the packages load this time. Quote
xxxxx Posted February 4, 2014 Author Report Posted February 4, 2014 Thanks again. I made the given change, and retested. Still no luck I'm afraid. The field is still blank. I'm happy to give you access to my installation if you wish. Thanks, Daniel. Quote
Michael Posted February 4, 2014 Report Posted February 4, 2014 Thanks again. I made the given change, and retested. Still no luck I'm afraid. The field is still blank. I'm happy to give you access to my installation if you wish. Thanks, Daniel. Can you post the log mate Quote
xxxxx Posted February 5, 2014 Author Report Posted February 5, 2014 Which log? If you're talking about the Module Log it's the same as previously posted. No output. Quote
Michael Posted February 5, 2014 Report Posted February 5, 2014 Which log? If you're talking about the Module Log it's the same as previously posted. No output. Dammit yeah I want to follow this Quote
Tyson Posted February 5, 2014 Report Posted February 5, 2014 Thanks again. I made the given change, and retested. Still no luck I'm afraid. The field is still blank. I'm happy to give you access to my installation if you wish. Thanks, Daniel. I thought we would have had something there. It certainly worked for me at least. If you can provide a Blesta admin account and FTP access to update the cPanel module, I can take a look. Michael 1 Quote
xxxxx Posted February 6, 2014 Author Report Posted February 6, 2014 Thanks Tyson, I've sent you a PM with the credentials. You'll notice I've reverted back to the default cpanel.cfg, but the modified ones are in the same directory, just re-named if you wish to enable logging, etc, again. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.