Giter VIP home page Giter VIP logo

prve's Issues

WHMCS/Prve debug connection issue

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

Can not add IP block into IP pool, page loose CSS style

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 into mod_prve_ip_addresses (pool_id, ipaddress, mask) values (, 184.maskingmyiphere, 255.255.255.224)) (SQL: insert into mod_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. :-)

Support for Latest Versions

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.

Fix for 7.x ?

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

Order Accept Encountered Problems; Undefined variable & Undefined index

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.