IE operation aborted message followed by an error IE page
ekrispin - September 7, 2007 - 10:57
| Project: | Embedded Media Field |
| Version: | 5.x-1.x-dev |
| Component: | Providers |
| Category: | bug report |
| Priority: | critical |
| Assigned: | aaron |
| Status: | closed |
Description
In IE6 when viewing a node with this emfield CCK field (in my case directing to a YouTube movie), you get apop up of operation aborted and then a "Cannot find server or DNS Error" error page. When you hit the back button, sometimes you do get the page properly.
This is exactly the symptoms described in http://drupal.org/node/36047 for the Googlemap module and in http://drupal.org/node/128186 for http://drupal.org/node/128186. According to the analysis there, it is caused by the timing of drupal_add_js for the Javascript in the page.
But, I don't see any javascript that emfield adds so maybe (wild guess) it is in youtube.inc the object outputed in line 129 or the flash embeded on line 190?

#1
I think I narrowed it down. It happens with a Youtube video. Tried several others (e.g. Google Video) and it does not happen.
Big prob as I don't see any scripts loaded and so no way to play with the timing of their loading...
#2
Having no response here, I finally managed to solve this obnoxious irritating bug after hours of useless inspections and trials.
In emfield\contrib\video_cck\providers\youtube.inc line 130 the
<object>and<params>should be removed and only the<embed>tag should be left in case of YouTube (plus, a proper</embed>closing is missing).i.e.,
Instead of
$output .= "<object height=\"$height\" width=\"$width\"><param name=\"movie\" value=\"http://www.youtube.com/v/$embed\"><param name=\"wmode\" value=\"transparent\"><embed src=\"http://www.youtube.com/v/$embed&rel=$related" . $autoplay_value . "\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" height=\"$height\" width=\"$width\"></object>";It should be:
$output .= "<embed src=\"http://www.youtube.com/v/$embed&rel=$related" . $autoplay_value . "\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" height=\"$height\" width=\"$width\"></embed>";Hope it will help others (Given the popularity of YouTube, I am surprised no one here has ever encountered this severe problem so far)
#3
Hey,
someone reported the same issue on my site today. Tried to solve it the described way, but didn't work. And: It occurrs in IE7!
Look at this blog: http://www.einfach-trainieren.de/node/566
Works great in Firefox but not in IE7.
Hope someone can help me out of this. Thx
#4
ekrispin: Thanks, your suggestion works for me, in IE6. Now for the IE7 tests...
#5
I think that the following code is a bit better solution, as it works on every browser and doesn't rely on a deprecated html tag (i.e. the embed tag):
$output .= "<object type=\"application/x-shockwave-flash\" height=\"$height\" width=\"$width\" data=\"http://www.youtube.com/v/$embed\" id=\"VideoPlayback\"><param name=\"movie\" value=\"http://www.youtube.com/v/$embed\"><param name=\"allowScriptAcess\" value=\"sameDomain\"><param name=\"quality\" value=\"best\"><param name=\"bgcolor\" value=\"#FFFFFF\"><param name=\"scale\" value=\"noScale\"><param name=\"salign\" value=\"TL\"><param name=\"FlashVars\" value=\"playerMode=embedded\" /></object>";This solution was found via A List Apart and has been tested on Firefox and IE versions 5.5, 6 & 7...
I've included the updated YouTube.inc file so those who want to can just drop it in to your video_cck/contrib folder.
#6
Alex AU this seems to have fixed it for me! Thanks!
My error was occuring in IE7
#7
Error occurred in Internet Explorer 6 and 7, drop-in youtube.inc fixed it, but I'm reopening this issue because it isn't yet committed into the dev release.
#8
this was closed before i was able to apply the patch. will do so this week.
thanks,
aaron
#9
ok, committed a fix, with values displayed properly for rel & autoplay.
thanks alexua & ekrispin
#10
i uploaded the new version, but still got the same problem
so i uploaded the youtube.inc found on this page
still having problems
and it only appears on pages which has videos, all of them you tube
help
#11
http://www.i-bloggers.com
#12
the error is still not fixed..I opened the issue again
thanks
#13
I just checked the source of your site and you are not using the youtube.inc file linked here, as it clearly is still using the embed tag (see the fix above). Please update your youtube.inc again (try the above file first), or try updating your entire Embedded Media Field module. If that doesn't work than you have another issue...
#14
i did update the whole module. however i will try again.
should i delete the old videos and upload new ones. or the code will be changed automatically ?
thank you so much
#15
abqaria,
Most probably, the issue is that the nodes are displaying a cached version. If so, you need to clear your cache (and make sure that cron is running). If you don't know how to do that, one way is by following the instructions at http://drupal.org/node/152983. To make sure cron is running, follow the directions at http://drupal.org/cron.
If that doesn't work, then please examine the $Id line of youtube.in (probably in /sites/all/modules/emfield/contrib/video_cck/providers). it should read as follows (or a later version than 1.10).
// $Id: youtube.inc,v 1.10 2008/01/04 21:20:09 aaron Exp $
If not, then you have the incorrect version of the module. Your nodes will be changed properly once you update the module.
Otherwise, there is some other problem. (Perhaps the field is overridden in a custom tpl file in the theme directory?)
Let me know if any of this solves your problem. Feel free to reopen the issue if none of this works.
Thanks,
Aaron Winborn
#16
I did everything but still i get the error:
I deleted the embed module
I uploaded the newest module with all its content
I cleared the cach
ran the cron
disabled performance module
cleared history and temporary files
i get the error on the IE on pages that have videos
please help
#17
abqaria-
I just uploaded the newest version of emfield onto one of my sites. When I look at the source of a page with a youtube video on it I see the following code:
<object type="application/x-shockwave-flash" height="350" width="425" data="http://www.youtube.com/v/jY1nIxuv_-g&rel=0" id="VideoPlayback">
<param name="movie" value="http://www.youtube.com/v/jY1nIxuv_-g&rel=0">
<param name="allowScriptAcess" value="sameDomain">
<param name="quality" value="best">
<param name="bgcolor" value="#FFFFFF">
<param name="scale" value="noScale">
<param name="salign" value="TL">
<param name="FlashVars" value="playerMode=embedded" />
<param name="wmode" value="transparent" />
</object>
When I look at your site I see the following:
<object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/JBsU5qbbCp4"><param name="wmode" value="transparent">
<embed src="http://www.youtube.com/v/JBsU5qbbCp4&rel=1" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425">
</object>
#18
it does not relate to embed media
i have another site that does not use embed media and gives the same error on IE on displaying a youtube code shown in a block
http://www.tagnsniff.com
but i do not know how to solve it
#19
i disabled the javascript tools .dev and it worked
sorry for everyone
#20
just incase if someone has the following IE problems with Fivestar rating and or Community Tags while using Emfield module:
- Fivestar rating: although javascript is enabled, i don't see any stars
- Community Tags: Instead of the textfield and a ADD button, a SAVE button appears
These two problems were caused by the youtube.inc of Emfield module. With the latest fix, these have been resolved :) Thanks.
#21
This bug is not just in the youetube part. I only use embeded image, but if the code include tag in the body, it will cause operation aborted in the IE7.
#22
you are right, it is javascipt tools problems. I disable it and every thing is ok.
#23
still the problem exist when enabling the latest version of javascript tools the youtube videos do not work, any idea why ?
#24
My guess on the above FWIW is that this is an incompatibility between jstools .js and the asset's javascript: for instance it looks like jstools and swflashobject.js requires and addition of a "defer" tag. No time to test tonight...