Upload users by CSV

Re: Upload users by CSV

by Simon Rediss-Whitfield -
Number of replies: 5

Hi Mary, all sorted tweeked abit of code and changed the redirect from the login to the dashboard.

In reply to Simon Rediss-Whitfield

Re: Upload users by CSV

by Ankita Senapati -

Can you please tell me what changes you made to get rid of that error?

In reply to Ankita Senapati

Re: Upload users by CSV

by Simon Rediss-Whitfield -

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/';



In reply to Simon Rediss-Whitfield

Re: Upload users by CSV

by Ankita Senapati -

Hi Simon,

Thanks for the help. Which moodle version are you using?
Because I cant find that code in index.php