Cant open Admin Page

Cant open Admin Page

by Raheel Iqbal -
Number of replies: 15
Installed properly.

During installation, it doesnot prompt for top-level administration username/password.

When i visit /moodle/admin , it gives an error tht you should be the admin to use this page.

when i loggin through Admin user n Password, it doesnt loggin in the admin area but logs in students area.

Please help
Average of ratings: -
In reply to Raheel Iqbal

Re: Cant open Admin Page

by Alan Chambers -
Raheel;
Same occurred to me. Martin Dougiamas has designed an enticing site but this bug of not being able to set admin during install seems to occur infrequently and frustrates us.

I tried editing the actual database for the admin and it still did not login to the admin page. It appears to not be authenticating correctly to the database table 'user'.

I wonder if it is only those people with e-smith install that this is occurring to. Let me know of any solutions please.
In reply to Alan Chambers

Re: Cant open Admin Page

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Please check that you are using PHP 4.1.0 or later (Moodle requires this). Several other people with this problem were in fact using older versions. If you are too, please post back.

Moodle 1.0.1 will be out soon - it includes some checks for this situation and prints appropriate feedback. The recent nightlies and CVS also contain this new code.
In reply to Martin Dougiamas

Re: Cant open Admin Page

by Gerhard Hoogterp -
but what does it need from 4.1.0 or later? which modules? I use 4.2.1 and still get a serious error while creating an admin. With as well the downloaded 1.01 version as will with the cvs version (28 aug 2002)

Thanks.
In reply to Gerhard Hoogterp

Re: Cant open Admin Page

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The relevant feature of 4.1.0 in this case is the global $_SESSION variable which doesn't exist in earlier versions.

What is the 'serious error', Gerhard? Please be helpful and describe it in detail - or better still drop your database tables and email me a URL so I can go through the setup on your machine myself (only one person so far has offered to do this and the problem in that case was PHP 4.0.6).
In reply to Martin Dougiamas

Re: Cant open Admin Page

by Gerhard Hoogterp -
Hmm.. this is weird.. went to the admin page to check the url and send it and now it does give me the user-profile for the admin. Strange as url's with a ? shouldn't be cached, but that's the only reason I can think off.

Anyhow, as it seems the problem solved itself and after playing with the software for a while the only thing I can say is wow!

Thanks!


In reply to Martin Dougiamas

Re: Cant open Admin Page

by daniel torres -
I've installed last Moodle version and when I try open admin page I find: "SERIOUS ERROR: Could not create admin user record !!!". I use PHP Version 4.2.2 and installation process seems ok, but I have not seen a page to insert admin data.
In reply to daniel torres

Re: Cant open Admin Page

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Moodle creates a dummy record for the admin user, and THEN lets you edit it.

In your installation, the dummy admin user could not even be inserted into the database.

This would generally indicate something seriously wrong with your database set-up. Possibly there is some permissions problem that is preventing your database user/password writing to the user table in your database. I would check that first.

Did you get any errors at all when Moodle was setting up the tables?

If you get really stuck, please drop all tables and email me your URL.

Cheers,
Martin
In reply to Martin Dougiamas

Re: Cant open Admin Page

by daniel torres -
There's no problem yet smile I use Mozilla browser, and I drop my database and starts installation process again with Internet Explorer. I don't know what's happening, but installation worked OK, and I can set up admin user data. Perhaps it was only HTML problems? I don't know.
In reply to daniel torres

Re: Cant open Admin Page

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I doubt it could be Mozilla (it's my main browser too) unless you had cookies disabled for that site, but I'm glad the problem has resolved itself. Very strange. Perhaps it is a caching thing.
In reply to Martin Dougiamas

Re: Cant open Admin Page

by Davide Suraci -
Hi,

when I've attempt access to admin page, I've automatically redirected to page user.php. How to resolve this inconvenience?

Thanks, icarused smile
In reply to Davide Suraci

Re: Cant open Admin Page

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
That probably means you haven't defined an admin user yet - Moodle is asking you to set up an admin user.
In reply to Martin Dougiamas

Re: Cant open Admin Page

by Davide Suraci -
Hi,

I've followed your instruction: now, moodle, work excellently.

Many Thanks for your help,

Di Ji
In reply to Alan Chambers

Re: Cant open Admin Page

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
By the way, you can't edit the passwords manually in the table as they are stored encrypted.
In reply to Raheel Iqbal

Re: Cant open Admin Page

by Joar Herseth -
I got the same error when first I installed Moodle in a subdirectory under the web-root. When I created a virtual namebased server in Apache and gave it a name in DNS it all worked fine.