PDA

View Full Version : Trouble with the Login Page-- Won't login


avt_systems359420
11-03-2009, 01:36 PM
I have looked through the threads posted here and see that others have had this same issue. I enter my username and password on the login screen but the page just refreshes. I have changed both of these in the WA_Globals file multiple times to no avail.

Here is the content of the WA_Globals.php file:
<?php
$WAGLOBAL_Root_URL = "http://www.metawd.com/cms/" ; //Absolute path to your site folder.
$WAGLOBAL_Site_Name = "MetaTask CMS" ;

$WAGLOBAL_localRoot = "/cms/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/cms/"; //relative path to your PowerCMS files on your remote server.

//iRite Images upload settings
$WAGLOBAL_Images_Folder = "images/"; //relative path to your images folder.
$WAGLOBAL_Swf_Folder = "swf/"; //relative path to your swf folder.

// Admin Settings
$WAGLOBAL_Admin_UserName = "cmsadmin" ;
$WAGLOBAL_Admin_Password = "********" ;
?>

Here is the localhost.php file:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "avtsystodd1970.startlogicmysql.com";
$database_localhost = "metacms";
$username_localhost = "metacmsadmin";
$password_localhost = "***********";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>

This is the URL I get:

http://www.metawd.com/cms/admin/users_login.php?accesscheck=%2Fcms%2Fadmin%2Findex .php

Please help!

neilo
11-03-2009, 03:35 PM
Not replying to your specific question, but advise hiding your database login and password on a public forum. Suggest you edit your post and remove them!

Eric Mittman
11-03-2009, 06:39 PM
If you are sure that you are entering the password correctly in the admin area and cannot get in there may be a problem with the session. To test this out I'm including two test pages for you. The first will set a session variable and prints it's value. The second page will just print the value, it won't set it. These pages should look identical when you test them except for the link. Please give this a try and let us know what the result is.

avt_systems359420
11-03-2009, 08:26 PM
page1.php gives this:

the value of the test_var is: testing variable
array(1) { ["test_var"]=> string(16) "testing variable" }
go to next page

page2.php gives this:

the value of the test_var is:
array(0) { }
go to first page

Still can't login.

What next?

Thanks for your help!

Eric Mittman
11-04-2009, 06:11 PM
Thanks for getting back with the results. The results that you are experiencing indicate that there is a problem with session handling on your server. There is likely some issue that would need to be resolved by your hosts admin. Unless you are able to run this test successfully you will not be able to login because the login makes use of session variables, if these variables are loosing their value between pages the login will not function correctly. You should speak to your host to see if there are any other settings that you should be adjusting to allow sessions to work properly on your site. If the host or admin sees the test pages and the code on them they should have a good idea about what the problem is.

avt_systems359420
11-05-2009, 08:56 AM
Thanks for your help. I will contact my hosting company.

avt_systems359420
11-05-2009, 09:25 AM
As it turns out, with my hosting company, I had to manually go into the php.ini file and add the session save path for PowerCMS to work. If anyone else is having the same issue (the login page refreshes when you try to login) please contact your host and ask about the session_save path in the php.ini file. It works perfectly now!

Eric Mittman
11-05-2009, 05:29 PM
That is great to hear, not all hosts allow direct access to the ini file like this but for anyone that does this should help a bit.