Jump to content

Game Switching


mseidel

Recommended Posts

Hello, i tried to configure gameswitching with whmcs and found this:

http://help.tcadmin.com/TCAdmin2_advanced_module_for_WHMCS#Custom_Config_File

 

so i added to default_values.php:

$billing_api_values["game_id_switch_1"]=138

$billing_api_values["game_id_switch_2"]=141

$billing_api_values["game_id_switch_3"]=132

 

where id 132 is the game from the field Game_ID in tcadmin2_advanced,

i tried it without the last line too, and i tried it with a custom config.php.

 

I always get the error "Oops!

Something went wrong and we couldn't process your request.

Please go back to the previous page and try again." in whmcs.

 

It works with the default_values.php if i delete these three lines.

 

Where can i find more informations about this error, or can somebody help me?

Link to comment
Share on other sites

Check tcadmin and see if whmcs is talking with tcadmin.

Also make a new file for you custom default_values.php aka gamename.php. you will need to upload the file to the same place default_values.php is.

 

<?php

include('default_values.php');

$billing_api_values["game_id_switch_1"]=10

$billing_api_values["game_id_switch_2"]=20

$billing_api_values["game_id_switch_3"]=30

?>

 

also update the TCAdmin2 advanced module for WHMCS

Link to comment
Share on other sites

Ok i tried it, this is my arma3.php:

 

<?php

include('default_values.php');

$billing_api_values["game_id_switch_1"]=138

$billing_api_values["game_id_switch_2"]=141

$billing_api_values["game_id_switch_3"]=132

$billing_api_values["game_start"] = 0;

?>

 

and this is what the error log said:

 

[Wed Aug 30 11:47:39.894903 2017] [proxy_fcgi:error] [pid 14147] [client xx.xx.xx.xx:50054] AH01071: Got error 'PHP message: [WHMCS Application] ERROR: ParseError: syntax error, unexpected '$billing_api_values' (T_VARIABLE) in /var/www/vhosts/xxx.com/httpdocs/shop/modules/servers/tcadmin2_advanced/arma3.php:4 Stack trace: #0 /var/www/vhosts/xxx.com/httpdocs/shop/modules/servers/tcadmin2_advanced/tcadmin2_advanced.php(76): tcadmin2_advanced_ExecuteTCAdminCommand(Array, 'AddPendingSetup') #1 /var/www/vhosts/xxx.com/httpdocs/shop/vendor/whmcs/whmcs-foundation/lib/Module/AbstractModule.php(0): tcadmin2_advanced_CreateAccount(Array) #2 /var/www/vhosts/xxx.com/httpdocs/shop/vendor/whmcs/whmcs-foundation/lib/Module/Server.php(0): WHMCS\\Module\\AbstractModule->call('CreateAccount', Array) #3 /var/www/vhosts/xxx.com/httpdocs/shop/includes/modulefunctions.php(0): WHMCS\\Module\\Server->call('CreateAccount', Array) #4 /var/www/vhosts/xxx.com/httpdocs/shop/includes/modulefunctions.php(0): ModuleCallFunction('Create', 15, Array, 0) #5 /var/www/vhosts/xxx.com/httpdocs/s...\n', referer: https://www.xxx.com/shop/cart.php?a=checkout

 

And the website only said Ooops...

Link to comment
Share on other sites

  • 5 months later...

Alright i know this is an old thread.. But you're missing the ; at the end of each line. Use

 

include('default_values.php');

$billing_api_values["game_id_switch_1"]=138;

$billing_api_values["game_id_switch_2"]=141;

$billing_api_values["game_id_switch_3"]=132;

$billing_api_values["game_start"] = 0;

?>

 

Instead

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 10 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use