Jump to content

Issues with Integration


L3gacy

Recommended Posts

After auto creating the user account when you click the link in WHMCS's Client area > products details > Login to Control panel you get an invalid link. My TCAdmin is installed at http://localhost:81/tcadmin and WHMCS is trying to login the client at http://localhost:81/ but also getting an invalid login. After manually typing the login details it takes me to the following link:

http://localhost:81/Templates/Default/user_home.aspx?GoToServiceBillingID=5

instead of:

http://localhost:81/tcadmin/Templates/Default/user_home.aspx?GoToServiceBillingID=5

 

What is causing the invalid login and the invalid URL? I have the proper virtual directory set in the WHMCS when I added the server.

 

Also, after terminating an account the TCAdmin site was broken until I logged out and back in. If any of this is on WHMCS's side please let me know and I'll try to post where appropriate. I need to have this server fully ready and ready to ship soon so any help would be greatly appreciated.

Link to comment
Share on other sites

I have looked everywhere and searched the entire hard disk and cannot find the md5login.aspx mentioned. Is this a necessary file and is its absence the reason for my errors? I'm not very proficient with php code but the tcadmin_advanced.php is coded:

$code = '<form action="'.($params["serversecure"]=='on' ? 'https':'http').'://'.$params["serverhostname"].'/Templates/Default/Login.aspx" method="post" target="_blank">

 

The important part here is $params["serverhostname"]

 

In the server setup on WHMCS I correctly have the server hostname set to include the virtual directory path. I will try hardcoding the path directory in the plugin file but shouldn't this already be working?

Link to comment
Share on other sites

Anyone have any ideas? I'm getting ready to try hardcoding the information instead of using a variable. From what I can tell though this should be working and from all the forum posts I've read this has never come up before.

 

Edit: There doesn't seem to be an issue with the plugin settings at all. The source code of the button is:

<form action="http://hivegaming.net:81/tcadmin//Templates/Default/Login.aspx?returnto=%2fTemplates%2fDefault%2fuser_home.aspx%3fGoToServiceBillingID%3d6" method="post" target="_blank">

 

However, after clicking the button it takes you to http://hivegaming.net:81/Templates/Default/user_home.aspx?GoToServiceBillingID=6 instead. As you can see in the source code the URL is correct with the exception of an additional slash (/). Why does it redirect to the root directory if the source code has the correct path? I don't know how to fix this. Is it a bug with WHMCS or TCAdmin? I'm going to try posting on their forums as well.

Link to comment
Share on other sites

If anyone else has this same issue after installing TCAdmin to a virtual directory here's the fix:

In tcadmin_advanced.php change this line:

$code = '<form action="'.($params["serversecure"]=='on' ? 'https':'http').'://'.$params["serverhostname"].'/Templates/Default/Login.aspx?returnto=%2fTemplates%2fDefault%2fuser_home.aspx%3fGoToServiceBillingID%3d'.$params["accountid"].'" method="post" target="_blank">

 

To this:

$code = '<form action="'.($params["serversecure"]=='on' ? 'https':'http').'://'.$params["serverhostname"].'/Templates/Default/Login.aspx?returnto=%2ftcadmin%2fTemplates%2fDefault%2fuser_home.aspx%3fGoToServiceBillingID%3d'.$params["accountid"].'" method="post" target="_blank">

Note the change is to add %2ftcadmin, change tcadmin to whatever your virtual directory is.

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, 34 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