Skip to content

Merge pull request vultr#106 from whattheserver/release-v2.0.5 release for v2.0.5

Latest
Compare
Choose a tag to compare
@meramsey meramsey released this 03 Jul 14:00
· 2 commits to master since this release

Description

Updated all deprecated
//use Illuminate\Database\Capsule\Manager as Capsule;

To:
use WHMCS\Database\Capsule;

As recommended by WHMCS.
https://developers.whmcs.com/advanced/db-interaction/

Fixes Related Issues

vultr#88
vultr#91
vultr#92
vultr#105
vultr#106

Tested with latest
WHMCS Version: 8.1.3
PHP 7.3 and PHP7.4
Centos 7

Please NOTE: That i have incorporated some, but NOT all of the fixes from vultr#101
All original credit for those things should be attributed to @jazz7381 and that PR could most likely be closed as mine incorporates the working stuff from there and more.

Also included is a pretty extensive port of the VultrAPI class to V2 which is not in use yet but is pretty close to being able to be used.

The main issue appears to have been in addVMCustomFields where it was failing to add the subid to tblcustomfieldsvalues
453c76e

This in turn causes the creation to fail and allows customers to keep trying to create servers they thought failed but are detached from the client area and costing the Reseller money and time wasted going to clean those up and reattaching only one to the account manually.