Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have installed:
swf tools
JW Media Player 4
UFO
Created a new block with the following php code:
<?php
print swf('introvideo.flv');
?>
Video plays in firefox and in IE7, but in IE7 I get an 'Error on Page' message in the bottom left which then leads to the following syntax error:
Line: 1
Char: 7
Error: Syntax error
Code: 0
URL: http://www.mydomain.com/site/
It seems to play without error message if I use the built in player (JW disabled).
Thanks.
Comments
Comment #1
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedWhich embedding method are you using? I have seen something similar to this once, but it only seemed to occur with SWF Object 2 and I thought I fixed it!
Comment #2
sittard CreditAttribution: sittard commentedI'm using UFO - funnily enough I originally tried the SWF Object 2 embedding method first and IE also reported errors ('Undefined Object'). SWF Object 2 is disabled so I don't think this would be the issue.
Thanks.
Comment #3
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedI went back over my notes, and this was an issue for the SWF Tools rendering code. IE generates an error if the object isn't assigned an id, and throws an error because the JavaScript cannot refer to the object (I think I summarised that right!) So this cropped up with the player before the code was modified.
This was fixed for SWF Object 2 and also direct embedding, but was not fixed for UFO and other methods as they are superceded.
So I'm not surprised you see the error with UFO, but am surprised if you see it with SWF Object 2.
I tested locally using equivalent code (Vista with IE7) and get no error on SWF Object 2, no error on direct embedding, and do get an error on UFO. This is the result I would expect.
Can you try changing SWF Tools to direct embedding and testing your page, and then try SWF Object 2 again.
Also, try clearing your browser cache just in case that is the issue.
Then can you post again with your findings.
Thanks!
Comment #4
sittard CreditAttribution: sittard commentedOK have run some more tests:
IE7 (XP) with direct embedding = no error message (all works).
IE7 (XP) with UFO = Error on Page
I also tested SWF Object2 and I get the following JS error message popup:
But this is a fairly heavy site and might be due to a conflict with another module (jquery is also running), let me know if you need some testing on a vanilla install.
Thanks.
Comment #5
sittard CreditAttribution: sittard commentedI've been doing some more testing my setup is as follows:
Drupal 6.6 (Vanilla Install)
SWF Tools 6.x-1-3
SWF Object 2.1 (shared/swfobject2)
JW Media Player 4.2 (shared/flashmedia_player)
Core PHP Filter Module Installed
No other modules or anything else are installed. I get an error message in IE7 but not Firefox.
Seems to work fine when using direct embedding or with the generic player but not the combination of both!
Comment #6
sittard CreditAttribution: sittard commentedJust thought I would update this post as I discovered that it works with FlowPlayer 2.2 and SWFObject 2.1 in IE (no errors) so I guess the conflict must be with JW Media Player & SWFObject2.1