JotaDF / moodle-format_trail

Trail format was developed based on the Grid format plugin. He distributes the grids on a trail. Some features were designed to meet some aspects of gamification, being able to change the background style and transparency for grids. In addition to having the responsibility for mobile equipment.
GNU General Public License v3.0
6 stars 3 forks source link

Compatibility with Moodle 4.4 #11

Open lassnj opened 3 months ago

lassnj commented 3 months ago

Hi, thanks for this awesome course format. We recently upgraded to Moodle 4.4 and unfortunately, the format is not compatible anymore.

We get the following error message when we try to open a course in this format: Failed opening required '[dirroot]/course/format/renderer.php' (include_path='[dirroot]/lib/pear:.:/usr/share/php')

This is because the course/format/renderer.php file is required by: https://github.com/JotaDF/moodle-format_trail/blob/bf38570678d8379f160f046e070270f76807fd06/renderer.php#L34C1-L34C61

Which has run into final deprecation by moodle: https://github.com/moodle/moodle/blob/d559cde424aad74cb9a5cd864fbd4f3f6ba5da15/course/format/upgrade.txt#L20-L56

Could you fix this please? Thanks a lot!

jaimevillegas commented 2 months ago

Facing the same issue here. Is there a workaround for getting this working?

I manually created a /course/format/renderer.php file without any content, and it renders. But when I switch to editing mode, it throws a new error:

Call to a member function course_section_add_cm_control() on null