Internal Assessment

Hi Ross,


I am unable to write assessment to a class as I am not seeing a class listing on the right.See image below:

Willpro,

Have you created courses and class in Admin > Timetable Admin?

Thanks,

Ross

Yes I have>

Willpro,

And do you have any teachers and students assigned to them?

Ross

HI  Ross,


I have students and teachers assigned. I can manage and view internal assessments.
I don’t know if I am doing something wrong?

Willpro,

That is odd. Would you mind sharing your database with me via support@gibbonedu.org so I can try and recreate your setup on my side?

Thanks,

Ross

ok. Chk mail.

Willpro,

Thanks for sending the details over by email. My steps to solve this problem for my account in your system were:
  1. Set myself as staff under Admin > User Admin > Manage Staff
  2. 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:

  • https://github.com/GibbonEdu/core/commit/664347a0fbff56dc74aa02a4f9fa53648d97e9d7
  • https://github.com/GibbonEdu/core/commit/5399d761a36cca342ded88f83b19be9c78ae2ddf

In your email to me you said:

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

Thanks,

Ross





Willpro,

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:

https://github.com/GibbonEdu/core/commit/2223df86d8d4d7db1d4c421ada5584072707d379

Thanks,

Ross

Hi Ross,


I copied the scripts and I am now able to write internal assessment from the Formal Assessment Menu. 

Thanks much.

PS :My php.ini value is max_input_vars=5000
 

Willpro,

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.

Ross

Hi, Ross

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.

I have email the database to you as requested.

Willpro,

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?

Ross

Sorry about that.

New attachment sent.

No worries. I got the database, and set up a copy of your site on my machine, but could not recreate the issue. Two things you could try are:

  1. Check the Post-Install & Server Config section of our install guide (https://gibbonedu.org/support/administrators/installing-gibbon/)
  2. Check to see whether your max_input_vars setting is actually taking effect by using a phpinfo() page on your server? http://php.net/manual/en/function.phpinfo.php

Thanks,

Ross