I upgraded from Moodle 3.3.5 to 3.3.7, then 3.4.4, then the latest 3.5.1, everything worked well, no error.
Now in Moodle 3.5.1 there are courses that link to legacy course files. Clicking on these files it goes to the user main page.
If I manually go and edit the link and locate the file in the Legacy course files folder and Create an alias/shortcut to the file, the link starts to work (I can open the pdf file). The new saved URL is:
When I look in the database it it saved as %%PLUGINFILE%%/BL13.pdf
So I did replacements in the database for links like site-url/moodle/file.php/courseid/file.pdf with %%PLUGINFILE%%/file.pdf . But the new links do not work, unless I manually go to edit the page as above.
I have Legacy files activated in Site Administration and in the courses, as specified here:
Anyone experienced this and what the solution was? Thank you!