![]() |
|
xbilling - error in frontend - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: 3rd Party Module Support v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=41) +---- Thread: xbilling - error in frontend (/showthread.php?tid=3028) Pages:
1
2
|
xbilling - error in frontend - chelofarias - 08-16-2016 I can not run the xbilling module. The frontend message: PHP Code: array(4) { ["type"]=> int(2) ["message"]=> string(122) "fopen(http://artegraf.com.ar/registrar/api/xbilling): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found " ["file"]=> string(95) "/var/sentora/hostdata/zadmin/public_html/artegraf_com_ar/registrar/classes/xmwsclient.class.php" ["line"]=> int(112) } Problem reading data from http://artegraf.com.ar/registrar/api/xbilling Ubuntu 14.04 LTS Server 32-Bit Sentora 1.o.3 RE: xbilling - error in frontend - TGates - 08-16-2016 That's because your config file is wrong. You should have entered your panel URL, NOT your billing URL: PHP Code: <?phpRE: xbilling - error in frontend - chelofarias - 08-18-2016 Panel URL is http://artegraf.com.ar This is my config.ph file content: <?php /** * API connection settings for xBilling * Version : 1.2.0 * @author Aderemi Adewale (modpluz @ Sentora Forums) * Email : goremmy@gmail.com * @desc This allows front-end billing package interact with the backend module */ // Config; $cfg = array(); $cfg['api_key'] = 'MI_API_KEY'; $cfg['panel_url'] = 'http://artegraf.com.ar'; $cfg['zpx_uid'] = 1; if(strpos($cfg['panel_url'], 'http') === false){ $cfg['panel_url'] = 'http://'.$cfg['panel_url']; } ?> The new error message: array(4) { ["type"]=> int(2) ["message"]=> string(112) "fopen(http://artegraf.com.ar/api/xbilling): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found " ["file"]=> string(95) "/var/sentora/hostdata/zadmin/public_html/artegraf_com_ar/registrar/classes/xmwsclient.class.php" ["line"]=> int(112) } Problem reading data from http://artegraf.com.ar/api/xbilling RE: xbilling - error in frontend - TGates - 08-18-2016 Make sure api.php is located in /etc/sentora/panel/bin/api.php and permissions are correct. RE: xbilling - error in frontend - chelofarias - 08-18-2016 Solved! The correct url for panel is http://server.artegraf.com.ar Thank you! RE: xbilling - error in frontend - hackkill CraftHosting - 10-24-2016 I have got this error Code: array(4) { ["type"]=> int(2) ["message"]=> string(90) "fopen(https://web01.crafthosting.fr/api/xbilling
): failed to open stream: operation failed" ["file"]=> string(57) "/home/crafthosrw/www/manager/classes/xmwsclient.class.php" ["line"]=> int(112) } Problem reading data from https://web01.crafthosting.fr/api/xbillingAnd the file config.php in the front-end contain this : PHP Code: <?phpPlease help me ? Sorry my english is very bad.... RE: xbilling - error in frontend - modpluz - 10-26-2016 @[hackkill CraftHosting], There could be several reasons why your request failed. Try debugging from inside Code: xmwsclient.class.phpRE: xbilling - error in frontend - hackkill CraftHosting - 10-26-2016 (10-26-2016, 02:57 AM)modpluz Wrote: @[hackkill CraftHosting], What do I debug that part ? @[Tgates] Can you help me ? Code: function BuildRequest() {
$request_template = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" .
"<xmws>" .
"\t<apikey>" . $this->serverkey . "</apikey>\n" .
"\t<request>" . $this->method . "</request>\n" .
"\t<authuser>" . $this->username . "</authuser>\n" .
"\t<authpass>" . $this->password . "</authpass>\n" .
"\t<content>" . $this->data . "</content>" .
"</xmws>";
return $request_template;
}RE: xbilling - error in frontend - modpluz - 10-26-2016 You are looking for the method with the header. Code: PostRequest($url, $data, $optional_headers = null)RE: xbilling - error in frontend - TGates - 10-27-2016 I did not write the module, modpluz did so he is your best bet in helping you sort out the xbilling isuue
|