do_login does not submit

Permalink
Hey folks,

Setting up a test environment for my organization's website. I've copied the public_html so it shows up at localhost/test and imported the database to a new one, and adjusted the site.php accordingly. The site works as expected, except the login.

When I go to localhost/test/index.php/login, I come to the same login screen as usual. Enter my credentials (which, I've checked, are correct) and hit submit, and it brings me to localhost/test/index.php/login/do_login, which looks identical to the previous screen. Enter and submit credentials again, and it brings me back to a do_login screen. Do this a few more times until I admit there's a problem and come, humbled, asking for help. Anyone know what's going on here?

View Replies:
hutman replied on at Permalink Reply
hutman
What version of C5 are you using? This almost sounds like there is a login error that isn't displaying on the login page.
sisterelly replied on at Permalink Reply
I'm on 5.5.2.1.
hutman replied on at Permalink Reply
hutman
What it sounds like is happening is that your Login page is using your Custom Theme and that custom theme doesn't have the error messaging code in the header.

If you add this code to your theme's view.php do you get errors?

<?php  if (isset($error)) { ?>
      <?php  
      if ($error instanceof Exception) {
         $_error[] = $error->getMessage();
      } else if ($error instanceof ValidationErrorHelper) {
         $_error = array();
         if ($error->has()) {
            $_error = $error->getList();
         }
      } else {
         $_error = $error;
      }
      if (count($_error) > 0) {
         ?>
         <div class="ccm-ui"  id="ccm-dashboard-result-message">
sisterelly replied on at Permalink Reply
Yes, that's it! Thanks so much, I should be able to work with it from here.
GrizzlyAdams replied on at Permalink Reply
I am having a similar issue.http://od4hire.com/login/do_login/... . It keeps just dropping here after trying to log in. I added the code above to see if I could get more errors but, nothing. Just get a 500.
hutman replied on at Permalink Reply
hutman
This site is VERY old, the code above will probably cause the Server 500 error that you describe because it's not meant for 5.4.1.1
GrizzlyAdams replied on at Permalink Reply
I get a 500 error when trying to login even without that code in place. My best guess is that a PHP version upgrade on the Server caused this. This site is very old and has not been logged into since the upgrade.