Admin user kicked out

Admin user kicked out

by Przemyslaw Stencel -
Number of replies: 2

Being logged as an admin I go to the "assign teachers" page. If I then try to access the Administration page (using the breadcrumbs link), I get a "You need to be an admin user to access this page" error and I cannot log back in as an admin until I restart the browser. However, the problem doesn't occur if I return from "assign teachers" to the site homepage first and then access the Administration page.

Does anyone have any ideas why this could be happening?

Some things that might help (though I don't know if they are related to this problem):

With debug site variable set to yes, I get several error messages:

On the Homepage, just above "Course Categories" box:  Notice: Undefined variable: showall in /home/users/online/www/course/lib.php on line 753 and Notice: Undefined variable: mine in /home/users/online/www/course/lib.php on line 753

On the Homepage, inside the "Course Categories" box:   Notice: Undefined offset: 2 in /home/users/online/www/course/lib.php on line 556 and Notice: Undefined offset: 3 in /home/users/online/www/course/lib.php on line 556

Inside the course (topics format), in the topic area:  Notice: Undefined offset: 1 in /home/users/online/www/course/topics.php on line 150 and  Notice: Undefined property: sequence in /home/users/online/www/course/lib.php on line 512

Thanks in advance for any help.

Przemek

PS. Using Moodle 1.0.8.1 (2003011200)

Average of ratings: -
In reply to Przemyslaw Stencel

Re: Admin user kicked out

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 think you need to make sure that the URL specified in the config.php is exactly the same as the real URL of the site when you use it. If this is not the case then Moodle may log you out.

The warnings are not related (and not serious), but have been fixed in CVS.
In reply to Martin Dougiamas

Re: Admin user kicked out

by Przemyslaw Stencel -
Do you mean the $CFG->wwwroot variable? It is correct.

The fact that makes it even more confusing is that this only happens when I try to return from "Assign Teachers" to "Administration". I'm not getting logged out when I try to go from other pages back to "Administration", and I'm not getting logged out when I go from "Assign Teachers" to Homepage and then to "Administration".