catalyst / moodle-mod_subcourse

Subcourse module for Moodle
https://moodle.org/plugins/mod_subcourse
GNU General Public License v3.0
24 stars 41 forks source link

Links appear to be broken in 3.11 #44

Closed rvialls closed 3 years ago

rvialls commented 3 years ago

This plugin was working fine for me in Moodle 3.10. I've just upgraded to 3.11. Now when I click on a sub course activity (in any role), instead of being taken to the sub course, I get 403 Forbidden Access to this resource on the server is denied!

Has any testing been done yet with this plugin on 3.11?

mudrd8mz commented 3 years ago

That's really unexpected as Moodle does not use this 403 itself. Are you able to debug more? Are the URLs still correct etc?

rvialls commented 3 years ago

I've just cracked this. I tried installing a clean version of 3.11 in a sandbox and it worked fine. So I went back at checked the links in the main installation. The links were fine but any attempt to open /mod/subcourse/view.php in a browser got me the 403 error. Turns out all the files in the mod/subcourse directory were set to 666 permissions rather than 644. I've absolutely no idea how that happened as part of the upgrade though - all the other plugins I'm using were fine. Thanks for you help.

mudrd8mz commented 3 years ago

OK, great. Good to see you resolved it. I can't explain what happened with your files permissions too though. It could be that Moodle created files with these lax permissions during the upgrade, and you have some other protection present that prevents from serving / processing files with such open write access, maybe?