HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... ERROR MESSAGES AFTER PUBLISHING
ERROR MESSAGES AFTER PUBLISHING
  View type:
Hi, I've created a course and published it to Moodle. But when i viewed the course, a lot of my slides were missing and some error messages appeared. The error messages are:

CallMethod: media_003_video TickTimer undefined

CallMethod: media_003_video Destructor undefined

CallMethod: media_001_flash Destructor undefined

Can someone explain to me what i did wrong coz when i preview my course before publishing it, it was OK.
Thanks
 
hello
I have problem and please help me . I've created a course and published it to Moodle. But when i viewed the course,some of my slides were missing and some error messages appeared. The error messages are:


CallMethod:media_005_flv Destructor undefined


Attached to the need to install to view this content.
 
27.03.2008 12:33 Liza Ahmad wrote:
Hi, I've created a course and published it to Moodle. But when i viewed the course, a lot of my slides were missing and some error messages appeared. The error messages are:CallMethod: media_003_video TickTimer undefinedCallMethod: media_003_video Destructor undefinedCallMethod: media_001_flash Destructor undefinedCan someone explain to me what i did wrong coz when i preview my course before publishing it, it was OK.Thanks


if you need to view your course on firefox you just to install windows media player plugin on your windows system be fore veiw it.
by thailand-review.com
 
Hello.

I know how to stop this window showing up every time a flash movie is played in Firefox.

After publishing the course go to the courseimages folder and open the courselab.js file.

Go to line number 3308 and change the line

alert("CallMethod: "+ sType +" "+ sMethod +" "+ e.description);

to

//alert("CallMethod: "+ sType +" "+ sMethod +" "+ e.description);

What you do is you comment some javascript code responsible for showing this error message.

I still don't know what causes this error, but at least now this annoying window isn't showing up!

Regards,
Maciek Pankiewicz

www.pankiewicz.eu
 
 
Dear Maciek,

Thanks for your suggestion of commenting the alert ("CallMethod:..." code. It worked for me! Eventhough, I was using IE, I used to get a pop up message "media_003_video" constructor error. By commenting the code you specified, the error has stopped.

Thanks again,
Regards
[:)]
 
I also encountered this problem with a flash animation in firefox. I solved it by changing the identifier and republishing the course. After some time it occurs again, so I changed the identifier again. A little annoying but it works for me.
 
I figured out, that this seems to be a firefox problem.
The preview module uses the internet explorer engine, and published module in internet explorer does also work.
Only when i try to view the module using firefox, this errors come up!
 
Dear Liza,

i'm facing the same problems, i already posted earlier on this forum.
Nobody could help me to solve this problem....
in my case, the error messages come up when i embedded a wmv-streaming-video.
Having a sample solution would really be great...

 
Hi, Liza,

it seems that you need to update objects after installation of 2.4 version. Some objects seems to be using old code (new one should contain Destructor part, which is subject of the error in your case). Please open the course in CourseLab, select menu Module - Update objects on each course module and re-publish the course.
 
I too had the same issue. Instead of using the file folders that were published, I used the development files folders and it eliminated the error. However, this was for a small test tutorial program. I suspect the solution might not be so simple in all cases and will be watching this group for further discussion on this matter.

dh
 
 
Dear Slav Shchinov,

I've tried as what u suggested, but the same error messages still appear. I'm at my wits' end here. Can I send you my working file so that you can see what actually I did wrong. Then, if the errors are spotted and rectified, we can publish the sample at http://nickj.php0h.com/ as a tutorial for the rest of the users.

Thanks.
 
 
 
Have a look at the two sets of files side by side, that is the original files the Courselab wcl uses and the published version.
Check the wmv is actually in place in the published version. I've had some problems where a video type file wasn't moved into the published file set. This is the scenario that Dennis describes.
Any chance of you wrapping the base file set as a zip and mailing it to me Liza?
 
 
 
 
Hi Nick,

I've emailed u the file that I'm working on.

Thanks in advance
 
 
 
 
 
Dear all,

happy to say that the problem above was resolved when i switched to IE. Marcel was right that it was a Firefox problem.

Thanks guys.
 
 
 
 
 
 
Hi, I read this thread because I also had to cope with the "CallMethod: media_001_flash Destructor undefined" - Error with Firefox.

In my case the problem appeared every time the swf root-timeline had more than one frame.

If you put your animation into a movieclip and place this on the first frame of the root-timeline, everything should work fine.

Hope this helped, sorry for my english.
Benji
 
 
 
 
 
 
 
Hi all !

I figured out the problem with "CallMethod: media_001_flash Destructor undefined".

What is causing the problem is a function "Destructor" for media_001_flash object in runtime.xml file.

It looks like this:
<method type="media_001_flash" name="Destructor">
<![CDATA[

function Destructor(argobj)
{
if(argobj.pid==null) return false;
var oCurObj = document.getElementById(argobj.pid);
if(oCurObj==null) return false;
var oPlayer = g_isMSIE ? document.getElementById(argobj.pid+"_flashobj") : document.getElementById(argobj.pid+"_flashembed");
if(oPlayer==null) return false;
if(oPlayer.IsPlaying()) oPlayer.Stop();
return true;
}
]]>
</method>

Flash player does not have Stop() method. The right method is StopPlay(). Hence line:

if(oPlayer.IsPlaying()) oPlayer.Stop();

should look like:

if(oPlayer.IsPlaying()) oPlayer.StopPlay();

Resource:
http://www.coldfusionmx.com.br/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html

Best Regards,
Kacper
 
 
 
 
 
 
 
 
Sory, it looks like this:

<method type="media_001_flash" name="Destructor">
function Destructor(argobj)
{
if(argobj.pid==null) return false;
var oCurObj = document.getElementById(argobj.pid);
if(oCurObj==null) return false;
var oPlayer = g_isMSIE ? document.getElementById(argobj.pid+"_flashobj") : document.getElementById(argobj.pid+"_flashembed");
if(oPlayer==null) return false;
if(oPlayer.IsPlaying()) oPlayer.StopPlay();
return true;
}
 
 
 
 
 
 
 
 
 
Sory again, I'm being sloppy, it looks like this:

function Destructor(argobj)
{
if(argobj.pid==null) return false;
var oCurObj = document.getElementById(argobj.pid);
if(oCurObj==null) return false;
var oPlayer = g_isMSIE ? document.getElementById(argobj.pid+"_flashobj") : document.getElementById(argobj.pid+"_flashembed");
if(oPlayer==null) return false;
if(oPlayer.IsPlaying()) oPlayer.Stop();
return true;
}
 
 
 
 
 
 
 
 
 
Sory again, I'm being sloppy, it looks like this:

function Destructor(argobj)
{
if(argobj.pid==null) return false;
var oCurObj = document.getElementById(argobj.pid);
if(oCurObj==null) return false;
var oPlayer = g_isMSIE ? document.getElementById(argobj.pid+"_flashobj") : document.getElementById(argobj.pid+"_flashembed");
if(oPlayer==null) return false;
if(oPlayer.IsPlaying()) oPlayer.Stop();
return true;
}
 
 
 
 
 
 
 
 
 
Sory again, I'm being sloppy, it looks like this:

function Destructor(argobj)
{
if(argobj.pid==null) return false;
var oCurObj = document.getElementById(argobj.pid);
if(oCurObj==null) return false;
var oPlayer = g_isMSIE ? document.getElementById(argobj.pid+"_flashobj") : document.getElementById(argobj.pid+"_flashembed");
if(oPlayer==null) return false;
if(oPlayer.IsPlaying()) oPlayer.Stop();
return true;
}
Subject:
Message options
No additional options