Berichten gepost door Howard Miller

Foto van Core developers Foto van Documentation writers Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van Plugin developers
TBH... I've just gone with Petr's solution. I up the debugging level at the start of each WS's execute() call. Not pretty but does the job. I (obviously?) indirect through a function so I can turn it off in one place - I have 55 web services and counting.

I did think about writing a new exception but I'm very lazy glimlach
Gemiddelde van de beoordelingen:  -
Foto van Core developers Foto van Documentation writers Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van Plugin developers

I enjoy learning new stuff. But new stuff has a habit of jumping up when I have the least time to deal with it grote grijns
 
I do have a Computer Science degree but from the dark ages. I mostly understand how little I really know!
Gemiddelde van de beoordelingen: Useful (1)
Foto van Core developers Foto van Documentation writers Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van Plugin developers
Just to recap. They enter the full URL of the course (e.g. https://my.moodle.site/course/view.php?id=99) and with no warnings they get bounced to the *home* page?

That's not what I would expect. A permission issue would simply give an error - so I think something else is going on. I would start by turning Debugging up full in case some messages appear. I would also check the PHP and web server logs to see if there are any clues.
Gemiddelde van de beoordelingen:  -
Foto van Core developers Foto van Documentation writers Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van Plugin developers
I read this (and didn't understand a lot of it) - https://moodledev.io/docs/5.0/apis/subsystems/routing

If you look at the example, some of that stuff is quite distinctive (e.g. the use). I grepped on some of the strings. There's mountains of hits in various places under lib/. However, the only other place in 4.5 is user/preferences and then courses/ appears in 5.0. I couldn't spot anywhere else. As I say, this is mostly guesswork.
Gemiddelde van de beoordelingen:  -