General ⇒ $this->Website ⇒ Error on this website - 'obj' is undefined ⇒ Community Forums ⇒ CPG Dragonfly™ CMS

Error on this website - 'obj' is undefined Reply to topic

Author Message
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 649
Location: Paris, France
Post
IE7 is throwing up an error for me on this site these days:

Line:29
Char:32
Error: 'obj' is undefined

Seems to appear on every page I view. Anything I should do?


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
View user's profile Visit poster's website
rlgura
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: Mar 27, 2006
Posts: 1146
Location: Cleveland, OH USA
Post
<script type="text/javascript"> var gat = function(){ if (typeof(_gat) != "undefined") { try{var pageTracker=_gat._getTracker("UA-6671839-1");pageTracker._trackPageview();}catch(e){} } }; if (window.addEventListener) { window.addEventListener("load", gat, false); } else if (window.attachEvent) { window.attachEvent(obj, "onload", gat); } </script>

yep, attachEvent takes only 2 parameters

_________________
Admin - Great Lakes Web Designs
Theme Designer - WebSite Guru Designs
Site Admin - Families with Food Allergies

rlgura's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.27-grsec/Apache 2.2.11/MySQL 5.0.67-community-log/PHP 5.2.8/DF 9.2.1
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 649
Location: Paris, France
Post
So the bug is at the DragonflyCMS end?


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
View user's profile Visit poster's website
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5860
Location: http://tinyurl.com/5z8dmv
Post
Thanks for noticing. I've modified it and hope it works.

I'm testing google analytics in XHTML Wink


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 19 / 2.4.6 / 5.5.37 / 5.5.13 / Mercurial
View user's profile Photo Gallery
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 649
Location: Paris, France
Post
That's fixed it DJ. I presume this was just an error affecting this site rather than one we might see in the next upgrade on our own sites?


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
View user's profile Visit poster's website
Display posts from previous:
All times are UTC
Post new topic Reply to topic Forum Index$this->Website
Page 1 of 1



Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum