Grid format for Moodle 3.9 to 3.11 updated

Grid format for Moodle 3.9 to 3.11 updated

by Gareth J Barnard -
Number of replies: 4
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello,

I have updated the Grid format for Moodle 3.9 to 3.11 as follows:

Version 3.11.1.0 for Moodle 3.11 version 2021051700.00 (Build: 20210517) and above within the 3.11 branch until the next release:

Version 3.10.1.5 for Moodle 3.10 version 2020110900.00 (Build: 20201109) and above within the 3.10 branch until the next release:

Version 3.9.1.5 for Moodle 3.9 version 2020061500.00 (Build: 20200615) and above within the 3.9 branch until the next release:

with:

  1. Fix 'Observer throws error on course restore format_{name}::get_contextid()' - #149.
  2. Added support information and settings for such.

I strongly suggest that you test on a test server first!  If you find this post useful, then please mark it so.  Please report any issues with these versions ONLY here.

Gareth

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

Re: Grid format for Moodle 3.9 to 3.11 updated

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Update, V3.11.1.0 has a bug, please patch / fix by adding 'use core_text;' under the 'define' at the top in /classes/output/renderer.php as shown here: https://github.com/gjb2048/moodle-format_grid/commit/a111aa6969183cd8aa46e8961a60da30834630ab.
In reply to Gareth J Barnard

Re: Grid format for Moodle 3.9 to 3.11 updated

by Noel Green -
Hi,

After update and patch as per above, receive this error:

Exception - Class 'format_grid\output\url_select' not found

Debug info:
Error code: generalexceptionmessage

Stack trace:
line 199 of /course/format/grid/classes/output/renderer.php: Error thrown
line 822 of /course/format/renderer.php: call to format_grid\output\renderer->section_nav_selection()
line 339 of /course/format/grid/classes/output/renderer.php: call to format_section_renderer_base->print_single_section_page()
line 254 of /course/format/grid/format.php: call to format_grid\output\renderer->print_single_section_page()
line 278 of /course/view.php: call to require()

Moodle version: 3.114 (20211108)
php version 7.4.6
In reply to Gareth J Barnard

Re: Grid format for Moodle 3.9 to 3.11 updated

by Daniel Hoffmann -
thanks for the fix, on my site it worked.
In reply to Daniel Hoffmann

Re: Grid format for Moodle 3.9 to 3.11 updated

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

Hello,

I have fixed the Grid format for Moodle 3.11 as follows:

Version 3.11.1.1 for Moodle 3.11 version 2021051700.00 (Build: 20210517) and above within the 3.11 branch until the next release:

with:

  1. Fix 'core_text' inclusion issue - #153.
  2. Fix more inclusion issues - #156.
  3. Fix "'format_grid\output\completion_info' not found" - #152.

I strongly suggest that you test on a test server first!  If you find this post useful, then please mark it so.  Please report any issues with this version ONLY here.

Gareth

Average of ratings: Useful (1)