Broken template format after updating the moodle to 4.5

Broken template format after updating the moodle to 4.5

por Lucie Landsmanová -
Número de respostas: 4

Hello all,

we've updated our moodle to the latest 4.5 version and the wierdest bug occured. On our testing page here, when you go from the main page to the last section feedback ("Zpětná vazba) in the drawer navigation and then go back to the first main page) the layout is broken. I also noticed there is a different page id in the URL

Please, does anyone know how its this possible?

Thank you!

Em resposta a 'Lucie Landsmanová'

Re: Broken template format after updating the moodle to 4.5

por Daniel Thies -
Foto de Core developers Foto de Plugin developers Foto de Testers

Hello Lucie,

Look in your web browser developer tools console there is a JavaScript error involving a third party cookie? Are you loading some outside JavaScript in your theme? This looks like a paid third party theme that may have some tracking. You may need to check with its developer about supporting Moodle 4.5.
Em resposta a 'Daniel Thies'

Re: Broken template format after updating the moodle to 4.5

por Lucie Landsmanová -
Hello! Thank you for your answer. I do not think it is connected - since it is just a testing page we do not have a valid cookiebot ID anymore, I think this error is connected with that...
Em resposta a 'Lucie Landsmanová'

Re: Broken template format after updating the moodle to 4.5

por Gareth Barnard -
Foto de Core developers Foto de Particularly helpful Moodlers Foto de Plugin developers
Dear Lucie,

It looks like you have a bespoke setup that adds the CSS class 'role-none' to the 'body' tag and that hides section zero / course format content in the main region, that contains the two modules on the course with in section 0, being id 228 in the URL of the course index. The rest of the content is within custom block regions generated by the theme. As the course index only knows about the sections and content in the course format generated output, then that is what it shows. There has been a change to this for with URL's moving to section id's instead of section numbers, I had thought this happened in M4.5, but seen that it happened in M4.4 too. As I don't know what you upgraded from then I cannot determine the nature of how your solution could have worked before with section 0 in the course index having the course URL with its id instead.

In any event, the solution would possibly be having a custom course format that altered the 'get_view_url' method in the course format lib.php or you changed the core one.

G