Crash when switching to edit mode on moodle 4.4

Issue #198 closed
Philipp Memmel created an issue

Trying to enable edit mode in format_tiles in moodle 4.4 with latest moodle main branch on tiles branch moodle44 results in an exception:

moodle_exception thrown with message "Sorry, the requested file could not be found (core_courseformat/local/content/divider)"

Stacktrace:
#24 moodle_exception in /var/www/html/lib/classes/output/mustache_template_finder.php:123
#23 core\output\mustache_template_finder:get_template_filepath in /var/www/html/lib/classes/output/mustache_filesystem_loader.php:54
#22 core\output\mustache_filesystem_loader:getFileName in /var/www/html/lib/mustache/src/Mustache/Loader/FilesystemLoader.php:99
#21 Mustache_Loader_FilesystemLoader:loadFile in /var/www/html/lib/mustache/src/Mustache/Loader/FilesystemLoader.php:82
#20 Mustache_Loader_FilesystemLoader:load in /var/www/html/lib/classes/output/mustache_filesystem_loader.php:81
#19 core\output\mustache_filesystem_loader:load in /var/www/html/lib/mustache/src/Mustache/Engine.php:692
#18 Mustache_Engine:loadPartial in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_0d3b33f43cd06cf92b2c12b0f269e23f.php:72
#17 __Mustache_0d3b33f43cd06cf92b2c12b0f269e23f:section13d0f301786963dcb6fda2851dd97009 in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_0d3b33f43cd06cf92b2c12b0f269e23f.php:135
#16 __Mustache_0d3b33f43cd06cf92b2c12b0f269e23f:sectionAa70350587ff786f7f02dac1cd2b8fc5 in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_0d3b33f43cd06cf92b2c12b0f269e23f.php:13
#15 __Mustache_0d3b33f43cd06cf92b2c12b0f269e23f:renderInternal in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_e642308d644f8b76a6805fbb33faab75.php:316
#14 __Mustache_e642308d644f8b76a6805fbb33faab75:sectionB453d67c914875b8a286f3daf8deb19d in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_e642308d644f8b76a6805fbb33faab75.php:103
#13 __Mustache_e642308d644f8b76a6805fbb33faab75:renderInternal in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_b7a98386920ca4385cd3f811b20432df.php:162
#12 __Mustache_b7a98386920ca4385cd3f811b20432df:section516cd65c7f9902d726e6063b1a084ec4 in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_b7a98386920ca4385cd3f811b20432df.php:199
#11 __Mustache_b7a98386920ca4385cd3f811b20432df:section3043c034d70b2651a8c902ba06cbbb6e in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_b7a98386920ca4385cd3f811b20432df.php:20
#10 __Mustache_b7a98386920ca4385cd3f811b20432df:renderInternal in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_0149e07c24c435d3943d203602ecd2ba.php:514
#9 __Mustache_0149e07c24c435d3943d203602ecd2ba:section71f183f0cb39595ec1e01a313bf46509 in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_0149e07c24c435d3943d203602ecd2ba.php:85
#8 __Mustache_0149e07c24c435d3943d203602ecd2ba:renderInternal in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_aad2da939b0f59a0db810f9bd61c1b19.php:88
#7 __Mustache_aad2da939b0f59a0db810f9bd61c1b19:renderInternal in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_066781f42d23565e647123f678ca541d.php:154
#6 __Mustache_066781f42d23565e647123f678ca541d:sectionC3db03be68f7d9d3f765f65c2817694b in /var/www/moodledata/localcache/mustache/1709532004/boost/__Mustache_066781f42d23565e647123f678ca541d.php:39
#5 __Mustache_066781f42d23565e647123f678ca541d:renderInternal in /var/www/html/lib/mustache/src/Mustache/Template.php:66
#4 Mustache_Template:render in /var/www/html/lib/outputrenderers.php:208
#3 renderer_base:render_from_template in /var/www/html/course/format/tiles/classes/output/renderer.php:48
#2 format_tiles\output\renderer:render_content in /var/www/html/course/format/classes/output/section_renderer.php:66
#1 core_courseformat\output\section_renderer:render in /var/www/html/course/format/tiles/format.php:64
#0 require in /var/www/html/course/view.php:354

Comments (3)

  1. David Watson repo owner

    Thanks for the report. I don’t see this issue locally. The template it is looking for is at course/format/templates/local/content/divider.mustache Do you have that file and are the file permissions ok?

  2. Philipp Memmel reporter

    Thank you again for the quick response. I re-investigated and found out that I was not on the latest commit of moodle main branch. Issue is now gone with latest moodle main branch. Very sorry for the noise! Issue can be closed.

  3. Log in to comment