cybercoder / prve Goto Github PK
View Code? Open in Web Editor NEWProxmox VE module for WHMCS 6.x
Proxmox VE module for WHMCS 6.x
Hello,
when i add new Prve server in WHMCS 6.3.2 / Products / Servers, save and test connection it says "FAILED:".
How can i please debug the reason why it fails? My WHMCS is hosted on cPanel + Apache server.
In PVE v. 5.0-23 /var/log/pveproxy/access.log i can not find any related access.
I added line
error_reporting(E_ALL);
into this module files and found this error line:
PHP Notice: Undefined variable: success in /home/myusername/public_html/modules/servers/prve/prve.php on line 234
in /admin/error_log file. Here is the /modules/servers/prve/prve.php on line 234 :
function prve_TestConnection(array $params)
{
try {
// Call the service's connection test function.
$serverip = $params["serverip"];
$serverusername = $params["serverusername"];
$serverpassword = $params["serverpassword"];
$proxmox=new PVE2_API($serverip, $serverusername, "pam", $serverpassword);
if ($proxmox->login())
$success = true;
$errorMsg = '';
} catch (Exception $e) {
// Record the error in WHMCS's module log.
logModuleCall(
'provisioningmodule',
FUNCTION,
$params,
$e->getMessage(),
$e->getTraceAsString()
);
$success = false;
$errorMsg = $e->getMessage();
}
return array(
'success' => $success,
'error' => $errorMsg,
);
}
230 line is: $success = false;
Please kindly let me know if You need further information? Thank you
When i tried to add new IP (i used format: 1.2.3.136/29), from within WHMCS/Addons/ModuleLand PRVE, then this is the page lost styling and no IP was added. THe /admin/error_log output was:
https://pastebin.com/p181xWwB
some of the lines:
[13-Jul-2017 11:26:32 Europe/Prague] PHP Notice: Undefined index: tab in /home/myusername/public_html/modules/addons/prve/prve.php on line 260
[13-Jul-2017 11:27:05 Europe/Prague] PHP Notice: Undefined variable: gateways in /home/myusername/public_html/modules/addons/prve/prve.php on line 1232
[13-Jul-2017 11:27:05 Europe/Prague] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/myusername/public_html/modules/addons/prve/prve.php on line 1232
[13-Jul-2017 11:27:05 Europe/Prague] PHP Notice: Undefined index: pool_id in /home/myusername/public_html/modules/addons/prve/prve.php on line 1235
[13-Jul-2017 11:27:05 Europe/Prague] PHP Fatal error: Uncaught exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pool_id' cannot be null (SQL: insert intomod_prve_ip_addresses
(pool_id
,ipaddress
,mask
) values (, 184.maskingmyiphere, 255.255.255.224)) (SQL: insert intomod_prve_ip_addresses
(pool_id
,ipaddress
,mask
) values (, 184.maskingmyiphere, 255.255.255.224))' in /home/myusername/public_html/includes/classes/WHMCS/Terminus.php:0
Stack trace:
#0 [internal function]: WHMCS\Terminus->whmcsExceptionHandler(Object(Illuminate\Database\QueryException))
#1 {main}
I think it is OK, because it can not find an IP pool, i added IP block to no pool. So i had to first create pool WHMCS/Addons/ModuleLand PRVE/IP pools/New IP pool. And after that it worked to add IP. :-)
Hello,
I'd like to see this module updated to support WHMCS 7.x as well as Proxmox VE 5.4. I think it's great that this module was published open source, and would like to get the word out if maintained.
First your script ist nice thanks for that but
Can you Fix it for v 7.x
All working but no creat VM in Proxmox but in Console i see he connected.
Greetz
There seems to be further issues using this module on WHMCS 6.3.2 and PVE 5.0-23
When one go to the Service (PRE VPS) in WHMCS client area, the popup appear with message: no proxmox
The action log says:
13/07/2017 12:28 Module Create Failed - Service ID: 3588 - Error:
When one try to run WHMCS Module create & accept order it says "Order Accept Encountered Problems".
Module Log does snot show any related entry. The WHMCS Apache /admin/error_log shows:
[13-Jul-2017 12:57:33 Europe/Prague] PHP Notice: Undefined variable: where in /home/myusername/public_html/includes/dbfunctions.php on line 2097152
[13-Jul-2017 12:57:51 Europe/Prague] PHP Notice: Undefined variable: success in /home/myusername/public_html/modules/servers/prve/prve.php on line 234
[13-Jul-2017 13:03:15 Europe/Prague] PHP Notice: Undefined index: Template in /home/myusername/public_html/modules/servers/prve/prve.php on line 136
[13-Jul-2017 13:03:15 Europe/Prague] PHP Notice: Undefined index: Password in /home/myusername/public_html/modules/servers/prve/prve.php on line 142
[13-Jul-2017 13:03:16 Europe/Prague] PHP Notice: Undefined index: renewals in /home/myusername/public_html/includes/orderfunctions.php on line 0
[13-Jul-2017 13:04:40 Europe/Prague] PHP Notice: Undefined variable: autorecalcdefault in /home/myusername/public_html/admin/clientsservices.php on line 2097152
[13-Jul-2017 13:05:27 Europe/Prague] PHP Notice: Undefined index: Template in /home/myusername/public_html/modules/servers/prve/prve.php on line 136
[13-Jul-2017 13:05:27 Europe/Prague] PHP Notice: Undefined index: Password in /home/myusername/public_html/modules/servers/prve/prve.php on line 142
[13-Jul-2017 13:05:29 Europe/Prague] PHP Notice: Undefined variable: autorecalcdefault in /home/myusername/public_html/admin/clientsservices.php on line 2097152
[13-Jul-2017 13:05:42 Europe/Prague] PHP Notice: Undefined index: Template in /home/myusername/public_html/modules/servers/prve/prve.php on line 136
[13-Jul-2017 13:05:42 Europe/Prague] PHP Notice: Undefined index: Password in /home/myusername/public_html/modules/servers/prve/prve.php on line 142
[13-Jul-2017 13:05:43 Europe/Prague] PHP Notice: Undefined variable: autorecalcdefault in /home/myusername/public_html/admin/clientsservices.php on line 2097152
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.