Posts made by Martin Dougiamas

Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Plugin developers Picture of Testers
Just use everything after the DNS name:

  <a href="/mod/forum/discuss.php?d=1131">link</a>

You just have to be sure that

http://oldsite.com/    -->  http://newsite.com/

or

http://oldsite.com/moodle    -->  http://newsite.com/moodle

but not:

http://oldsite.com/moodle    -->  http://newsite.com/mycourses
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Plugin developers Picture of Testers
Try putting print statements all through mod/survey/graph.php ... if you can narrow down a line which fails, or a loop that doesn't get entered, then that will help narrow this down.

The survey module is actually the oldest Moodle module .. its error checking may not be as good as the other modules.
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Plugin developers Picture of Testers
Aha, thanks! That's it!

I've got 18 duplicate enrolments. I've deleted them manually, but do you happen to know a neat SQL trick to delete duplicates?

I'll put in a check before doing the insert so this doesn't happen anymore.

(This still doesn't explain why phpmyadmin gave different results but I'll happily ignore that for now) smile