L3gacy Posted August 15, 2010 Share Posted August 15, 2010 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 More sharing options...
Admin-Nation-Servers Posted August 15, 2010 Share Posted August 15, 2010 That's because your not using the default setup. To get it to work how you want would require you to edit a bunch of files that redirect visitors to the default tcadmin URL Link to comment Share on other sites More sharing options...
L3gacy Posted August 17, 2010 Author Share Posted August 17, 2010 Thank you for your response. Would it be possible to get a list of files that need edited? I will continue to try to figure it out myself but I'm pressed for time. Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted August 17, 2010 Share Posted August 17, 2010 On whmcs it's: tcadmin_advanced.php Tcadmin side: md5login.aspx And I would open a ticket for other possible files Link to comment Share on other sites More sharing options...
L3gacy Posted August 18, 2010 Author Share Posted August 18, 2010 Thank you. I will start with these and see how it goes. Link to comment Share on other sites More sharing options...
L3gacy Posted August 18, 2010 Author Share Posted August 18, 2010 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 More sharing options...
L3gacy Posted August 18, 2010 Author Share Posted August 18, 2010 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 More sharing options...
L3gacy Posted August 20, 2010 Author Share Posted August 20, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.