Page 1 of 1

WHMCS Module Bug

Posted: Thu Oct 09, 2014 7:16 am
by armyboylegend
I am trying to intergrate WHMCS since many days but couldn't do it.

When I process order, it says

Code: Select all

Order Accept Encountered Problems
Error: argument extentions is not valid (empty)
in Vesta Control panel. Account is created and domain is added but without Nginx Support

when i checked vestacp logs from /var/log/error.log

it says

Code: Select all

2014-10-09 08:51:47 v-add-web-domain-proxy testuser testdomain   no     [Error 2]
command should be like this

Code: Select all

v-add-web-domain-proxy testuser testdomain default jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,exe,pdf,doc,xls,ppt,txt,odt,ods,odp,odf,tar,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm no
when i checked vesta.php module for WHMCS but i can't find any function which call this command
v-add-web-domain-proxy
while i manually add
v-add-domain
in machine ssh console it gives same error

Code: Select all

Error: argument extentions is not valid (empty)
===EDIT===

I modified the /usr/local/vesta/bin/v-add-domain file

from

Code: Select all

# Proxy support
# Do Not restart at this point, will loose connection from API calls
if [ ! -z "$PROXY_SYSTEM" ] && [ "$return_code" -eq 0 ]; then
    $BIN/v-add-web-domain-proxy $user $domain '' '' no
to

Code: Select all

# Proxy support
# Do Not restart at this point, will loose connection from API calls
if [ ! -z "$PROXY_SYSTEM" ] && [ "$return_code" -eq 0 ]; then
    $BIN/v-add-web-domain-proxy $user $domain
and v-add-domain command worked like charm. I think there's some bug in v-add-domain file.

But after modifiying this v-add-domain file. WHMCS adds all information but gives user name already exists issue. That means it loops the same creation commands.

Added same details in bug tracker: https://bugs.vestacp.com/responses/v-add-domain

Re: WHMCS Module Bug

Posted: Sat Oct 11, 2014 7:30 am
by armyboylegend
well after so many tries i found out that it was vesta cp bug. i have fixed it for current version by editing v-add-domain file

from

Code: Select all

# Proxy support
# Do Not restart at this point, will loose connection from API calls
if [ ! -z "$PROXY_SYSTEM" ] && [ "$return_code" -eq 0 ]; then
    $BIN/v-add-web-domain-proxy $user $domain '' '' no
to

Code: Select all

if [ ! -z "$PROXY_SYSTEM" ] && [ "$return_code" -eq 0 ]; then
    extentions="jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls"
    extentions="$extentions,exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav"
    extentions="$extentions,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm"
    $BIN/v-add-web-domain-proxy $user $domain 'default' "$extentions" 'no'
i found it from the github: https://github.com/serghey-rodin/vesta/ ... add-domain

i have applied this fix on Version:0.9.8 (i386) and it is working perfect with whmcs.

Re: WHMCS Module Bug

Posted: Mon Oct 20, 2014 1:20 pm
by imperio
Hi, armyboylegend
you problem is solved ?

Re: WHMCS Module Bug

Posted: Mon Oct 20, 2014 2:05 pm
by armyboylegend
Yes I have solved my problem. Thanks for asking.

Re: WHMCS Module Bug

Posted: Mon Dec 19, 2016 9:06 pm
by hostingpr
Where is the v-add-domain file located?

Im having the same problem but i can't find that file.

Re: WHMCS Module Bug

Posted: Wed Dec 21, 2016 10:36 am
by n0rton
Can modificated that Module for Fix? or need manually fix?

Re: WHMCS Module Bug

Posted: Wed Dec 21, 2016 1:39 pm
by hostingpr
I found the file and modified but no change in the outcome.

Re: WHMCS Module Bug

Posted: Fri Dec 23, 2016 2:54 pm
by n0rton
hostingpr wrote:I found the file and modified but no change in the outcome.

So need config manually no?