login problems in 1.4.5 and 1.4.4

login problems in 1.4.5 and 1.4.4

ved Pam Atkins -
Antal besvarelser: 16
hi folks,
I recently installed 1.4.4 for a small college, showed them how to do and then let them loose on it. they mucked around with it and set it for manual enrolment. they rang back that night saying they were unable to login under any of the usernames they had . I tried it as admin and the login page just lead to servername/moodle/login/index.html
which appeared as a totally blank page.
So I did a fresh install of 1.4.5 and within 12 hours exactly same result. We are using an Apache server and MySQL as a db. My own moodle that I use for teaching has never done anything like this and I am fishing around in the db for what is causing this new installation to foul up.
Any clues?
thanks,
dedide
Gennemsnitsbedømmelse: -
I svar til Pam Atkins

Re: login problems in 1.4.5 and 1.4.4

ved Howard Miller -
Billede af Core developers Billede af Documentation writers Billede af Particularly helpful Moodlers Billede af Peer reviewers Billede af Plugin developers
The blank page generally indicates that an error has occurred - the best course of action is to track down the error. Check your apache error log immediately after the blank page has occurred - hopefully it will be at the end of the log. If that doesn't work, it's worth checking that error logging is actually enabled in your php.ini file (look for line starting log_errors and check it is 'On' - restart apache if you change it and try again).
I svar til Howard Miller

Re: login problems in 1.4.5 and 1.4.4

ved Pam Atkins -

thanks for the feedback Howard.

the error log didn't say anything except that users couldn't login

I did a new install somewhere else and then I uploaded the old database to the new site which had been working just fine. As soon as I ran the sql script, the site went down again, so I am assuming that it is something in the database rather than the scripts. It is proving very frustrating to try to track this one down.

Any suggestions would be very very welcome. Any further info needed?

thanks

I svar til Pam Atkins

Re: login problems in 1.4.5 and 1.4.4

ved Howard Miller -
Billede af Core developers Billede af Documentation writers Billede af Particularly helpful Moodlers Billede af Peer reviewers Billede af Plugin developers
Still pushing for that error message smiler Did you check in php.ini that error logging was on - having the error that caused the problem should nail it straight away.
I svar til Howard Miller

Re: login problems in 1.4.5 and 1.4.4

ved Pam Atkins -

thanks for the persistance Howard

here is the log

[09-May-2005 22:27:35] [client xxx.xxx.x.252] http://onlinebha.com/moodle Failed Login: madmin Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; MSN 6.1; MSNbMSFT; MSNmen-au; MSNc00; v5m)
[09-May-2005 23:13:25] [client xxx.xxx.x.252] http://onlinebha.com/moodle Failed Login: cto Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; MSN 6.1; MSNbMSFT; MSNmen-au; MSNc00; MSNc00)

I did the xxx in the above for the client's privacy

thanks

I svar til Pam Atkins

Re: login problems in 1.4.5 and 1.4.4

ved Martin Dougiamas -
Billede af Core developers Billede af Documentation writers Billede af Moodle HQ Billede af Particularly helpful Moodlers Billede af Plugin developers Billede af Testers
Read the installation documentation about DirectoryIndex ... you need to add index.php in there.
I svar til Martin Dougiamas

Re: login problems in 1.4.5 and 1.4.4

ved Pam Atkins -

 Hi Martin and Howard,
the blank page is http://onlinebha.com/moodle/login/index.php

I put in a few echo statements into this file to see how far it parsed as shown below

if ($frm) {
        $frm->username = trim(moodle_strtolower($frm->username));
echo ("jelloa");
        if (($frm->username == 'guest') and empty($CFG->guestloginbutton)) {
            $user = false;    /// Can't log in as guest if guest button is disabled
            $frm = false;
            echo ("jellob");
        } else {
            $user = authenticate_user_login($frm->username, $frm->password);
            echo ("jelloc");
        }


and it never gets to jelloc

I put the DirectoryIndex line in a .htaccess file in the main moodle directory but that didn't change the situation

once again thanks for any light that can be shed on this.

PS I am promoting Moodle in an RTo forum next week (against commercial offerings)

I svar til Pam Atkins

Re: login problems in 1.4.5 and 1.4.4

ved Alan Kessler -
take a look at http://moodle.org/mod/forum/discuss.php?d=23762, maybe it can help...

and take a look at your apache error_log
I svar til Alan Kessler

Re: login problems in 1.4.5 and 1.4.4

ved Pam Atkins -

thanks for weighing in on this Alan.

I looked at the thread you referred to but with my embryonic php knowledge, I couldn't really follow the argument.

Also I located my Apache error log and it is empty. The login page is not throwing an external error, it is aborting at a certain point and not passing through to the "next" page.

I svar til Pam Atkins

Re: login problems in 1.4.5 and 1.4.4

ved Robert Alessi -
FIXED:
You need to add an extra '}' that is missing at the end of the file enrol/enrol.class.php on line 352 so that it looks like this:

} /// end of class

}

?>

I svar til Robert Alessi

Re: login problems in 1.4.5 and 1.4.4

ved Robert Alessi -
hi,
I just updated from cvs and all is working fine smile. Many thanks, Penny! Attached the right
enrol/enrol.class.php file.
Robert
I svar til Robert Alessi

Re: login problems in 1.4.5 and 1.4.4

ved Pam Atkins -

thanks folks

Unfortunately it didn't fix the problem I am having. As noted above, my login.php is aborting. I don't think it even gets to enrol.

this is driving me insane