Posts: 3
Threads: 1
Joined: Jan 2016
Reputation:
0
Sex: Male
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: [MODULE] WHMCS
01-10-2016, 06:29 AM
(This post was last modified: 01-10-2016, 06:30 AM by cybercoder.)
I just installed latest version of sentora & lates version of WHMCS module, But there's just blank page when try to manage WHMCS module.
The log file: /var/sentora/logs/sentora-error.log
Code: PHP Parse error: syntax error, unexpected '[' in /etc/sentora/panel/modules/whmcs/code/controller.ext.php on line 201, referer: x.x.x.x/?module=moduleadmin&action=EditModule
and it refers to this static function:
Code: static function getCurrentUserID()
{
return ctrl_users::GetUserDetail()["userid"];
}
But i can't see any unexpected '[' !!!!!!!!!
How can fix this?
Posts: 3
Threads: 1
Joined: Jan 2016
Reputation:
0
Sex: Male
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: [MODULE] WHMCS
01-10-2016, 06:37 AM
I did change the function to simpler type:
Code: static function getCurrentUserID()
{
$current_user=ctrl_users::GetUserDetail() ;
return $current_user["userid"];
}
and it works!
Posts: 114
Threads: 1
Joined: Apr 2015
Reputation:
11
Sex: Male
Thanks: 19
Given 31 thank(s) in 24 post(s)
RE: [MODULE] WHMCS
01-10-2016, 07:14 AM
(01-10-2016, 06:37 AM)cybercoder Wrote: I did change the function to simpler type:
Code: static function getCurrentUserID()
{
$current_user=ctrl_users::GetUserDetail() ;
return $current_user["userid"];
}
and it works!
cybercoder Awesome, I'll include that in the next update
Posts: 2
Threads: 0
Joined: Feb 2016
Reputation:
0
Sex: Male
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: [MODULE] WHMCS
02-01-2016, 05:27 AM
Hello, I have the following error when I try to install the module .
root@clientes:~# zppy repo add zppy.grid-servers.net
The repository 'zppy.grid-servers.net' already exists.
root@clientes:~# zppy update
Updating package list..
Connecting to store.sentora.org/repo
Getting list from store.sentora.org/repo
Connecting to zppy.grid-servers.net
Getting list from zppy.grid-servers.net
Local package cache is now up-to-date!
root@clientes:~# zppy install whmcs
Module to be installed whmcs
No package match, check you have added the correct repo!
root@clientes:~#
Posts: 114
Threads: 1
Joined: Apr 2015
Reputation:
11
Sex: Male
Thanks: 19
Given 31 thank(s) in 24 post(s)
RE: [MODULE] WHMCS
02-01-2016, 05:39 AM
(02-01-2016, 05:27 AM)KyKarHosting Wrote: Hello, I have the following error when I try to install the module .
root@clientes:~# zppy repo add zppy.grid-servers.net
The repository 'zppy.grid-servers.net' already exists.
root@clientes:~# zppy update
Updating package list..
Connecting to store.sentora.org/repo
Getting list from store.sentora.org/repo
Connecting to zppy.grid-servers.net
Getting list from zppy.grid-servers.net
Local package cache is now up-to-date!
root@clientes:~# zppy install whmcs
Module to be installed whmcs
No package match, check you have added the correct repo!
root@clientes:~#
Hi KyKarHosting, I'll check that out, I'll see real quick if I can resolve that, if not I'll check it first thing tomorrow when I get to my office
Posts: 2
Threads: 0
Joined: Feb 2016
Reputation:
0
Sex: Male
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: [MODULE] WHMCS
02-01-2016, 06:07 AM
(02-01-2016, 05:39 AM)Rynoxx Wrote: (02-01-2016, 05:27 AM)KyKarHosting Wrote: Hello, I have the following error when I try to install the module .
root@clientes:~# zppy repo add zppy.grid-servers.net
The repository 'zppy.grid-servers.net' already exists.
root@clientes:~# zppy update
Updating package list..
Connecting to store.sentora.org/repo
Getting list from store.sentora.org/repo
Connecting to zppy.grid-servers.net
Getting list from zppy.grid-servers.net
Local package cache is now up-to-date!
root@clientes:~# zppy install whmcs
Module to be installed whmcs
No package match, check you have added the correct repo!
root@clientes:~#
Hi @[KyKarHosting], I'll check that out, I'll see real quick if I can resolve that, if not I'll check it first thing tomorrow when I get to my office
Ok, I'II wait the solution.
Posts: 114
Threads: 1
Joined: Apr 2015
Reputation:
11
Sex: Male
Thanks: 19
Given 31 thank(s) in 24 post(s)
RE: [MODULE] WHMCS
02-01-2016, 06:31 AM
(02-01-2016, 06:07 AM)KyKarHosting Wrote: (02-01-2016, 05:39 AM)Rynoxx Wrote: (02-01-2016, 05:27 AM)KyKarHosting Wrote: Hello, I have the following error when I try to install the module .
root@clientes:~# zppy repo add zppy.grid-servers.net
The repository 'zppy.grid-servers.net' already exists.
root@clientes:~# zppy update
Updating package list..
Connecting to store.sentora.org/repo
Getting list from store.sentora.org/repo
Connecting to zppy.grid-servers.net
Getting list from zppy.grid-servers.net
Local package cache is now up-to-date!
root@clientes:~# zppy install whmcs
Module to be installed whmcs
No package match, check you have added the correct repo!
root@clientes:~#
Hi KyKarHosting, I'll check that out, I'll see real quick if I can resolve that, if not I'll check it first thing tomorrow when I get to my office
Ok, I'II wait the solution.
Hi KyKarHosting, I did some tweaks which might've solved your issue, give it another try, and if the problem remains I'll get back to you tomorrow
Posts: 114
Threads: 1
Joined: Apr 2015
Reputation:
11
Sex: Male
Thanks: 19
Given 31 thank(s) in 24 post(s)
RE: [MODULE] WHMCS
02-01-2016, 06:26 PM
(02-01-2016, 06:07 AM)KyKarHosting Wrote: (02-01-2016, 05:39 AM)Rynoxx Wrote: (02-01-2016, 05:27 AM)KyKarHosting Wrote: - Snip -
Hi KyKarHosting, I'll check that out, I'll see real quick if I can resolve that, if not I'll check it first thing tomorrow when I get to my office
Ok, I'II wait the solution. KyKarHosting The problem should now be solved, sorry for the delay!
Code: root@dashboard:~# zppy update
Updating package list..
Connecting to store.sentora.org/repo
Getting list from store.sentora.org/repo
Connecting to zppy.grid-servers.net
Getting list from zppy.grid-servers.net
Connecting to auxio.github.io
Getting list from auxio.github.io
Connecting to zppy-repo.mach-hosting.com
Getting list from zppy-repo.mach-hosting.com
Connecting to zppy.lupoinfo.com.br
Getting list from zppy.lupoinfo.com.br
Failed to contact the URL 'zppy.lupoinfo.com.br'
Connecting to repo.jkmods.tk
Getting list from repo.jkmods.tk
Connecting to zppy.grid-servers.net/test
Getting list from zppy.grid-servers.net/test
Connecting to rustus.txt-clan.com
Getting list from rustus.txt-clan.com
Connecting to repo.alio.dk
Getting list from repo.alio.dk
Local package cache is now up-to-date!
root@dashboard:~# zppy install whmcs
Module to be installed whmcs
converted 'http://zppy.grid-servers.net/whmcs.zpp' (ANSI_X3.4-1968) -> 'http://zppy.grid-servers.net/whmcs.zpp' (UTF-8)
--2016-02-01 08:23:15-- http://zppy.grid-servers.net/whmcs.zpp
Resolving zppy.grid-servers.net (zppy.grid-servers.net)... 178.33.170.24
Connecting to zppy.grid-servers.net (zppy.grid-servers.net)|178.33.170.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 236610 (231K)
Saving to: 'whmcs.zpp'
whmcs.zpp 100%[=====================================================================================================================================================================>] 231.06K --.-KB/s in 0s
2016-02-01 08:23:15 (1.26 GB/s) - 'whmcs.zpp' saved [236610/236610]
Posts: 23
Threads: 8
Joined: Dec 2014
Reputation:
0
Sex: Male
Thanks: 4
Given 2 thank(s) in 2 post(s)
RE: [MODULE] WHMCS
04-06-2016, 08:49 PM
Hello;
I'm running WHMCS and Sentora on the same server, and getting 'Account couldn't be created, the API Request failed.'
I've double and triple checked my settings, all seem right
All thats in my /var/sentora/logs/sentora-error.log is:
[Wed Apr 06 22:47:02.478197 2016] [access_compat:error] [pid 8790] [client my-ip:43688] AH01797: client denied by server configuration: /etc/sentora/panel/server-status
Posts: 114
Threads: 1
Joined: Apr 2015
Reputation:
11
Sex: Male
Thanks: 19
Given 31 thank(s) in 24 post(s)
RE: [MODULE] WHMCS
04-06-2016, 08:58 PM
(This post was last modified: 04-06-2016, 08:58 PM by Rynoxx.)
(04-06-2016, 08:49 PM)modcar Wrote: Hello;
I'm running WHMCS and Sentora on the same server, and getting 'Account couldn't be created, the API Request failed.'
I've double and triple checked my settings, all seem right
All thats in my /var/sentora/logs/sentora-error.log is:
[Wed Apr 06 22:47:02.478197 2016] [access_compat:error] [pid 8790] [client my-ip:43688] AH01797: client denied by server configuration: /etc/sentora/panel/server-status
Hi modcar, could you post the output of the WHMCS module log? (After enabling it and trying again)
|