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?
Comment | File | Size | Author |
---|---|---|---|
#5 | youtube.inc | 8.62 KB | Alex UA |
Comments
Comment #1
ekrispin CreditAttribution: ekrispin commentedI 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...
Comment #2
ekrispin CreditAttribution: ekrispin commentedHaving 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
It should be:
Hope it will help others (Given the popularity of YouTube, I am surprised no one here has ever encountered this severe problem so far)
Comment #3
mperabo CreditAttribution: mperabo commentedHey,
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
Comment #4
ahoria CreditAttribution: ahoria commentedekrispin: Thanks, your suggestion works for me, in IE6. Now for the IE7 tests...
Comment #5
Alex UA CreditAttribution: Alex UA commentedI 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.
Comment #6
wolfderby CreditAttribution: wolfderby commentedAlex AU this seems to have fixed it for me! Thanks!
My error was occuring in IE7
Comment #7
coltraneError 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.
Comment #8
aaron CreditAttribution: aaron commentedthis was closed before i was able to apply the patch. will do so this week.
thanks,
aaron
Comment #9
aaron CreditAttribution: aaron commentedok, committed a fix, with values displayed properly for rel & autoplay.
thanks alexua & ekrispin
Comment #10
abqaria CreditAttribution: abqaria commentedi 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
Comment #11
abqaria CreditAttribution: abqaria commentedhttp://www.i-bloggers.com
Comment #12
abqaria CreditAttribution: abqaria commentedthe error is still not fixed..I opened the issue again
thanks
Comment #13
Alex UA CreditAttribution: Alex UA commentedI 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...
Comment #14
abqaria CreditAttribution: abqaria commentedi 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
Comment #15
aaron CreditAttribution: aaron commentedabqaria,
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
Comment #16
abqaria CreditAttribution: abqaria commentedI 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
Comment #17
Alex UA CreditAttribution: Alex UA commentedabqaria-
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:
When I look at your site I see the following:
Note all of the differences between these two (most notably the fact that the deprecated tag is still present). I'm not sure why your site is having problems updating this field, but if you send me a private message through my Drupal account I'll try to help you troubleshoot the problem.
Comment #18
abqaria CreditAttribution: abqaria commentedit 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
Comment #19
abqaria CreditAttribution: abqaria commentedi disabled the javascript tools .dev and it worked
sorry for everyone
Comment #20
drupaloSa CreditAttribution: drupaloSa commentedjust 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.
Comment #21
rimma CreditAttribution: rimma commentedThis 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.Comment #22
rimma CreditAttribution: rimma commentedyou are right, it is javascipt tools problems. I disable it and every thing is ok.
Comment #23
abqaria CreditAttribution: abqaria commentedstill the problem exist when enabling the latest version of javascript tools the youtube videos do not work, any idea why ?
Comment #24
1kenthomas CreditAttribution: 1kenthomas commentedMy 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...