Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section 3rd Party Software
  • Search

WHMCS Module Bug

Section with additional software for Vesta
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
armyboylegend
Posts: 33
Joined: Sun Oct 05, 2014 7:53 am

WHMCS Module Bug
  • Quote

Post by armyboylegend » Thu Oct 09, 2014 7:16 am

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
Top

armyboylegend
Posts: 33
Joined: Sun Oct 05, 2014 7:53 am

Re: WHMCS Module Bug
  • Quote

Post by armyboylegend » Sat Oct 11, 2014 7:30 am

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.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: WHMCS Module Bug
  • Quote

Post by imperio » Mon Oct 20, 2014 1:20 pm

Hi, armyboylegend
you problem is solved ?
Top

armyboylegend
Posts: 33
Joined: Sun Oct 05, 2014 7:53 am

Re: WHMCS Module Bug
  • Quote

Post by armyboylegend » Mon Oct 20, 2014 2:05 pm

Yes I have solved my problem. Thanks for asking.
Top

hostingpr
Posts: 3
Joined: Mon Dec 19, 2016 8:08 pm

Re: WHMCS Module Bug
  • Quote

Post by hostingpr » Mon Dec 19, 2016 9:06 pm

Where is the v-add-domain file located?

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

n0rton
Posts: 29
Joined: Tue Mar 31, 2015 7:31 am

Re: WHMCS Module Bug
  • Quote

Post by n0rton » Wed Dec 21, 2016 10:36 am

Can modificated that Module for Fix? or need manually fix?
Top

hostingpr
Posts: 3
Joined: Mon Dec 19, 2016 8:08 pm

Re: WHMCS Module Bug
  • Quote

Post by hostingpr » Wed Dec 21, 2016 1:39 pm

I found the file and modified but no change in the outcome.
Top

n0rton
Posts: 29
Joined: Tue Mar 31, 2015 7:31 am

Re: WHMCS Module Bug
  • Quote

Post by n0rton » Fri Dec 23, 2016 2:54 pm

hostingpr wrote:I found the file and modified but no change in the outcome.

So need config manually no?
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “3rd Party Software”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password