courses not showing up at students dashboard (external database enrolment)

courses not showing up at students dashboard (external database enrolment)

by Johan Ericka -
Number of replies: 3

hi all,

i just upgrade my moodle from 3.3 to 3.6 and find something strange with external database enrolment.

the problem is the courses not showing up at students dashboard but the students listed as a course participant.

this is screenshot from teacher account


as you can see, there a some users at the course (enrolled from external database)


but i got this screenshot from student who attend the course above.


as you can see, the student has no enrollment.

so i go to admin panel and check the student account (in case there are double account) but there only 1 account


i also checked at external database enrolment and find the right mapping



this problem also happened at teachers before (the courses not showing up at their dashboard) but after updating the role from teacher to editingteacher and re-running sync.php the problem fixed.


any clue / solution for this problem ?

thanks for your attention.


ps : i'm using fordson theme

Average of ratings: -
In reply to Johan Ericka

Re: courses not showing up at students dashboard (external database enrolment)

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hello,

In the course settings is the course visibility set to Show?

Average of ratings: Useful (1)
In reply to Helen Foster

Re: courses not showing up at students dashboard (external database enrolment)

by Johan Ericka -

Thanks for your reply,

and yes you're right, the course visibility is set to Hide black eye

and then come another problem, how can i set course visibility for more than 1000 courses at same time ?

because some corses already have content sad

In reply to Johan Ericka

Re: courses not showing up at students dashboard (external database enrolment)

by Johan Ericka -
i found the answer smile

open moodle database and run this query


update mdl_course set visible=1 where idnumber like 'courseid%'


problem solved!!