by Patrick Pollet.
Argh, I suspect there is something wrong in my code ;-(
If you have access to source code of wspp/server.class.php, could you try replacing near line 4938
the call to get_coursemodule_from_instance by get_coursemodule_from_id as below :
// rev 04/04/2013 see https://moodle.org/mod/forum/post.php?reply=981346
//if (!$cm = get_coursemodule_from_instance($activitytype,$activityid, 0)) {
if (!$cm = get_coursemodule_from_id($activitytype,$activityid, 0)) {
Cheers