Jump to content

blank login pages


homepageonline

Recommended Posts

I have just installed our version of WHMCS and I am getting blank pages after login.

 

I will try to be as detailed as I can so that it may help anybody else with this same issue and there is a complete fix to this problem.

 

After the installation, as suggested I have done the following for security:

 

Moved the following files above the www public directory to;

 

/home/user_name/whmcs/attachments

/home/user_name/whmcs/downloads

/home/user_name/whmcs/templates_c

 

All 3 folders have chomod 777 permissions and only have the index.php file inside.

 

I have added php code to the configuration.php found under the main whmcs directory file accordingly; (user_name = account user name)

 

$attachments_dir = "/home/user_name/whmcs/attachments/";
$downloads_dir = "/home/user_name/whmcs/downloads/";

//$templates_compiledir = "templates_c/"; (commented out this line and replaced it)
$templates_compiledir = "/home/user_name/whmcs/templates_c/";

 

I have also renamed the whmcs/admin directory and have added the php line in the configuration.php file accordingly;

 

$customadminpath = "/new_admin";

 

I have checked all posts regarding this issue and most of them point to adding the error code on the configuration.php file to "see the actual php error" like so;

 

$display_errors = true;

 

Not only do I continue to see blank pages but I do not see any error codes as well. As soon as I log in I am taken to; /dologin.php

 

If I log in with the WRONG credentials I also get the same blank page but I do receive the email stating there was a recent login attempt which failed. On the email it shows the default path to the whmcs install (http://yourdomain.com/whmcs/my_new_admin/) Which I presume is because I have not been able to log in as shown on the tutorial video and correct this.

 

If I visit the client page I do see the client portal.

If I click on Forgot your Password? link on the main login.php page the system DOES send a new password.

 

If I check the template_c folder it does appear to have new files added to it.

 

It all seems to be working "in the background" but I am unable to view anything BUT a white page. :mad:

 

I went as far as to log in to the WHMCS demo to "see" the actual links on the main menu available so I could test those links on my install but I keep getting a blank page.

 

At this point I am at a loss and hope I can get help.

Link to comment
Share on other sites

Via support ticket I was able to correct this issue; here is how it was corrected, hope this helps anyone with the same problem;

 

First I SSH'd into the server and reset the permissions once again for the /whmcs and everything inside it to 777 which contained the attachments, downloads and templates_c directories. If you do not have SSH access you might just be able to right mouse click on the folder using your FTP program and pick permissions. FileZilla as well as Dreamweaver will allow you to do this, I am sure others do too.

 

Matt also changed my template_c file path in the configuration.php file to;

 

$templates_compiledir = "templates_c/";

 

Not the complete path( from /home/user/whmcs/templates_c ) because according to Matt the folder is relative to the whmcs folder already.

 

and one last thing; the $customadminpath does NOT include the slash at the beginning;

 

$customadminpath = "hpoadmin";

 

That did it for me.

 

So to recap; in the configuration.php file add the following: (CHANGE TEXT IN CAPS ACCORDINGLY)

 

/* Security Settings : Moved Files */

$attachments_dir = "/home/USER_NAME/whmcs/attachments/";

$downloads_dir = "/home/USER_NAME/whmcs/downloads/";

$customadminpath = "DIRECTORY_NAME";

 

Give the moved files 777 permission from the 'top' directory, ie

/home/USER_NAME/YOUR_WHMCS_DIRECTORY

 

*** Make sure your whmcs moved files are ABOVE your root folder ( /www or /public_www directory) as this will put them out of harms way for someone to hack your installation ***

 

Hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated