Troubleshooting 404: Not found Invalid URL error during quiz

Troubleshooting 404: Not found Invalid URL error during quiz

by Clive Massyn -
Number of replies: 2

Hi everyone, 

Any advice on where to start troubleshooting a somewhat haphazard error that occurs during a quiz attempt. There are a number of programming related quizzes that are basically structured with a Description followed by either a Cloze question, multiple choice, matching, short answer or CodeRunner question.

When an answer is submitted (typed or multichoice) it sometimes directs to the 404: Not found Invalid URL error page. Going back to the module question the input is deleted. Retyping/reselect the answer again and then after submitting the question again, it usually works but refreshes the page and takes you back to the top of the page again.

Just wondering if there are any helpful hints on what to check when trying to troubleshoot this kind of error? 

Thanks in advance.

Clive

Average of ratings: -
In reply to Clive Massyn

Re: Troubleshooting 404: Not found Invalid URL error during quiz

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

From the server side, the places to look are the logs:

  • Moodle logs - that should give a history of what happened to this student's attempt from Moodle's point of view, and will give you the IP address which will help with the next one.
  • Apache (or other web server logs). A lower-level look at exactly what passed between this user's IP and the server.
  • PHP error logs - this is most helpful if your server has Debugging set to the appropriate level.

If you are able to reproduce the problem yourself, then you can use your brower developer tools to investigate further, particularly the Network and Console tabs.

In reply to Tim Hunt

Re: Troubleshooting 404: Not found Invalid URL error during quiz

by Clive Massyn -
Thanks Tim,
I am trying to reproduce the issue and then I can give your suggestions a try.