close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Admin Login Page Road Block

Thread began 10/04/2009 6:02 am by stevenc330599 | Last modified 10/07/2009 12:15 pm by Eric Mittman | 3195 views | 6 replies |

stevenc330599

Admin Login Page Road Block

I see others have had similar issues and I have tried their solutions without success.

I have got PowerCMS installed on a local computer for testing, but I am unable to login to the Admin page, even though I am entering the correct username ('root') and password ('Test'). All PowerCMS files have been put in the directory '/localhost/test/pCMS'.

My 'WA_Globals.php' file looks like this:

<?php
$WAGLOBAL_Root_URL = "http://test.co.nz/pCMS"; //Absolute path to your site folder.
$WAGLOBAL_Site_Name = "test";

$WAGLOBAL_localRoot = "/test/pCMS/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/pCMS/"; //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 = "root";
$WAGLOBAL_Admin_Password = "Test";
?>

and my 'localhost.php' file looks like:

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "test";
$username_localhost = "root";
$password_localhost = "Test";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);?>

Could somebody please advise as to what am I doing wrong?

Thanks,

Steven.

Sign in to reply to this post

Eric Mittman

This is usually just a path issue or not entering the details correctly. It looks like the settings you have specified here should work. The paths for the images and swf should not have the slash in front of them but they should not affect the login.

What is in the URL when you attempt to login to the Admin?

Sign in to reply to this post

stevenc330599

I type the following in as the URL:

'http://localhost/test/pCMS/admin/index.php'

then the address bar in IE (7) becomes:

'http://localhost/test/pCMS/admin/users_login.php?accesscheck=%2Ftest%2FpCMS%2Fadmin%2Findex.php'

and the Login page displays correctly with all images and css styles. When I enter the correct user name/password pair the page just refreshes.

Steven.

Sign in to reply to this post

Eric Mittman

The access check variable that is shown in the URL indicates that access was denied when you attempted to visit the index page. If you were entering the username incorrectly then the page should just refresh without anything in the URL. This tells me that you are failing the Administrator rule that is applied to the index page. The only thing this rule does is check the password you entered versus the password in the globals file. If you are failing this rule it indicates that the password you are entering is not correct.

As a quick test of the password go into the login page and go to line 50, add in two new lines and put this code in those two lines:

php:
The value of the entered password is: <?php echo isset($_SESSION["AdminLogin"])?$_SESSION["AdminLogin"]: ""?><br/>

The value of the global password is: <?php echo $WAGLOBAL_Admin_Password ?>



After putting this in place and saving the page test it out. When you attempt to login and are taken back to this page it should list the password you entered and the value from the globals file for you to compare against.

This should get you going on the rite track, keep in mind that whatever your password is in the globals file will be listed here on your admin login page so this should only be done as a test, you should not leave this in place on a live site.

Sign in to reply to this post

stevenc330599

When I enter your code I get:

The value of the entered password is:
The value of the global password is: Test

When I change your code by substituting "Password" for "AdminLogin" I got:

The value of the entered password is: Test
The value of the global password is: Test

The first time, when I re-entered the information I got:

The value of the entered password is:
The value of the global password is: Test

This leaves me completely confused!

Steven.

Sign in to reply to this post

stevenc330599

More on the code

Further testing has revealed that when I enter the correct admin user name the password is set to blank. When I make a mistake with the admin user name the password (the correct, or a wrong one) is displayed by your script.

It looks like there is something wrong with the script called by the form element. Presumably lines 7 to 10 of the same page .........

The confusion just deepens!

Sign in to reply to this post

Eric Mittman

I have submitted a ticket for you on this issue so that we can exchange files. Please login and visit your support history to update the ticket.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...