can not access my moodle site any more: You don't have permission to view this list of courses

can not access my moodle site any more: You don't have permission to view this list of courses

by Mohamed Salah Eldin -
Number of replies: 4

Hello guys,

I faced a vital issue, can not access my moodle site any more and got the below error message every time im trying to access it:

You don't have permission to view this list of courses.

I also have one hidden category, and inside it one course but not hided, may be this is the reasone.

the question is how to solve it while am not able to access the moodle site or reach to any page.

Please any body help me to solve this issue ASAP.

Thank you so much in advance.


Attachment download.png
Average of ratings: -
In reply to Mohamed Salah Eldin

Re: can not access my moodle site any more: You don't have permission to view this list of courses

by Mohamed Salah Eldin -
Hello gusy.
I have solved my issue.

The issue reason was that i have a hidden course category contains 1 course visible (not hidden). seems that you should not have a hidden course category and visible course inside it .

I have fixed it easly, THANKS TO GOOD.

Because im not able to open my moodle site or even adminstration section, so followed the below steps:
1- Went to host control panel => then PHP admin => then opnned my moodle database.
2- Search for course_categories table, then knew that there is a hidden category, contains 1 course.
3- Then went to course table, and knew that the course of the hidden category is visible, so i changed it to invisible by
updating the values of two column from 1 to 0 , like below:
(UPDATE `course` SET `visible` = '0', `visibleold` = '0' WHERE `course`.`id` = 17;)
4- went to my moodle website and refreshed the page, it worked fine.

Average of ratings: Useful (1)
In reply to Mohamed Salah Eldin

Re: can not access my moodle site any more: You don't have permission to view this list of courses

by Juan Pablo Paredes Muñoz -
Amazing. Thanks a lot man. You saved my day. I had the same issue and your solution was great.

Kind Regards
In reply to Mohamed Salah Eldin

Re: can not access my moodle site any more: You don't have permission to view this list of courses

by Miira Didi -

I just counter this problem. I edit something in the security at the site administrator. After I close the site and can't open it again afterward. Please help if anyone knows how to solve this problem. Thank You so much. 

error login to site owner

Attachment Moodle Error.PNG
In reply to Miira Didi

Re: can not access my moodle site any more: You don't have permission to view this list of courses

by Miira Didi -
PS. I'm using moodle 3.11 and it is connected with my web host in hpanel.