Hi Mary, all sorted tweeked abit of code and changed the redirect from the login to the dashboard.
Can you please tell me what changes you made to get rid of that error?
Hi Ankita, its an easy fix, in the moodle direcotry>login>index.php
You need to edit the redirects for the login (I have done some major amendments so do not have a specific line for you but it was around line 308)
Mine now reads which redirects to site page instead of preferences
// Go to my-moodle page instead of site homepage if defaulthomepage set to homepage_my.
if ($homepage == HOMEPAGE_MY && !is_siteadmin() && !isguestuser()) {
if ($urltogo == $CFG->wwwroot or $urltogo == $CFG->wwwroot.'/' or $urltogo == $CFG->wwwroot.'/index.php') {
$urltogo = $CFG->wwwroot.'/my/';
Hi Simon,
Thanks for the help. Which moodle version are you using?
Because I cant find that code in index.php
Sorry its been a long day, I mean lib.php
I am running 2.9.1+
What changes do I have to make here?