Grid Format sections not appearing for admins/teacher

Grid Format sections not appearing for admins/teacher

by Marcel Roe -
Number of replies: 2

Grid Format Version: 2017111802

Moodle version: 3.4.4

Theme: custom


We are finding that sections do not pop up when selected when a user has a role other than student. This only occurs in one course. When clicking on a section, #section-? will appear in the URL instead of the section popping up. With editing on, the contents of the sections do not appear either.

Running debugging shows the following: 

Notice

: Undefined offset: 55 in

/var/www/moodle/docroot/course/format/grid/renderer.php

on line

742

Notice

: Trying to get property of non-object in

/var/www/moodle/docroot/course/format/grid/renderer.php

on line

745

Notice

: Trying to get property of non-object in

/var/www/moodle/docroot/course/format/grid/renderer.php

on line

746


Has this happened for anyone else?

Average of ratings: -
In reply to Marcel Roe

Re: Grid Format sections not appearing for admins/teacher

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

The course probably was from a format that allowed out of section sequence section numbers or had an orphaned section etc.  I can't remember exactly how but others have stated such.  The grid format currently expects sections to be sequential, something I need to address at some point.

I suggest making a backup of the course, switching to another format, tidy up the sections then switch back.  You may have to re-upload the grid images.

Also please update to version 3.4.0.4.

Average of ratings: Useful (1)
In reply to Gareth J Barnard

Re: Grid Format sections not appearing for admins/teacher

by Marcel Roe -

Thanks Gareth, this has fixed the issue.