Thanks for sending the details over by email. My steps to solve this problem for my account in your system were:
Set myself as staff under Admin > User Admin > Manage Staff
Add myself to the class (Civ.1) under Admin > Timetable Admin > Manage Enrolment by Person
After doing this, I can see the list of classes, with Civ.1 in it. However, I realise that there is a logic flaw here, as you should be able to see (given the correct role) all classes, even if you don't have any classes yourself. This has now been fixed in the following v12 commits, and it is backwards compatible to v11, so if you want to try the changed files, it should solve the problem for you:
Additionally I found out in teacher settings I can access and write
internal assessments but I cannot as administrator. I also found that I
didn't have permission setting for admin for this particular feature. But
upon allow permission in the permission settings it kicks me out of
the admin role upon pressing the submit button in the permission module.
I have to restore backup to get my priviliges back.
This issue was, in the past, caused because the permissions form is rather large, and newer PHP versions restrict the number of form elements that can be submitted (to avoid overloading the server). Since (from memory), v9, if your PHP is set with a value of max_input_vars that is too low, then you get an error, instead of a submit button, making this impossible. Except, on your server, this mechanism is not kicking in for some reason. Looking at your form, it has 1185 check boxes, each of which requires 2 variables to be submitted. So, your max_input_vars should be set to at least 2,370, but lets say 2,400 to be safe. Can you check in your php.ini to see what value you have? I am interested to see what is going on here, as I thought this problem was well and truly solved
Just tweaked the maths a little on the max_input_vars front, which might stop the issue happening for you, if you were in a tiny edge case (which seems unlikely). The change is at this commit, and is v11 compatible:
5000? Hmmm, that is weird. Did you try the new script for permissions to see if it made a difference? Presumably, there is some other cause to the issue. If you want to share a backup of your database via email, I can try and recreate in my environment.
Yes, I installed the permission script but i am having the same experience. If I make any change in permission module (only tried the formal assessment module) it kicks me out of my admin role.
Thanks for following up on this. What you have emailed seems to be your whole Gibbon code base, but I can’t find the database? To send that, you need to use a program like phpmyadmin or the mysql CLI to export your database to a .sql file. Can you send me just that file?