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

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


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?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


<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

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


So the bug is at the DragonflyCMS end?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Thanks for noticing. I've modified it and hope it works.

I'm testing google analytics in XHTML Wink

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 24 / Apache 2.4.25 / MariaDB 10.0.23 / PHP 7.0.15 / Mercurial


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?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are UTC


Jump to: