brendanheywood / moodle-local_cleanurls

Lets drag Moodle's url structure into this century...
37 stars 24 forks source link

[development] Could not find flex section or activity for [] at []. #76

Closed roperto closed 7 years ago

roperto commented 7 years ago

This probably happens because we are at course level, there is no section or activity to parse.

URL: /course/shortname

Could not find flex section or activity for [] at [].

line 139 of /local/cleanurls/classes/local/courseformat/flexsections.php: call to debugging()
line 172 of /local/cleanurls/classes/local/uncleaner/uncleaner.php: call to local_cleanurls\local\courseformat\flexsections->prepare_path()
line 57 of /local/cleanurls/classes/local/uncleaner/courseformat_uncleaner.php: call to local_cleanurls\local\uncleaner\uncleaner->__construct()
line 174 of /local/cleanurls/classes/local/uncleaner/uncleaner.php: call to local_cleanurls\local\uncleaner\courseformat_uncleaner->prepare_child()
line 94 of /local/cleanurls/classes/local/uncleaner/course_uncleaner.php: call to local_cleanurls\local\uncleaner\uncleaner->__construct()
line 174 of /local/cleanurls/classes/local/uncleaner/uncleaner.php: call to local_cleanurls\local\uncleaner\course_uncleaner->prepare_child()
line 230 of /local/cleanurls/classes/local/uncleaner/uncleaner.php: call to local_cleanurls\local\uncleaner\uncleaner->__construct()
line 174 of /local/cleanurls/classes/local/uncleaner/uncleaner.php: call to local_cleanurls\local\uncleaner\uncleaner->prepare_child()
line 93 of /local/cleanurls/classes/local/uncleaner/root_uncleaner.php: call to local_cleanurls\local\uncleaner\uncleaner->__construct()
line 64 of /local/cleanurls/classes/local/uncleaner/uncleaner.php: call to local_cleanurls\local\uncleaner\root_uncleaner->__construct()
line 52 of /local/cleanurls/classes/local/uncleaner/uncleaner.php: call to local_cleanurls\local\uncleaner\uncleaner::perform_uncleaning()
line 43 of /local/cleanurls/router.php: call to local_cleanurls\local\uncleaner\uncleaner::unclean()
roperto commented 7 years ago

Fixed in development branch.