Dawson.be Forums
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Undefined variable (1 viewing)
_GEN_GOTOBOTTOM Post Reply Favoured: 0
TOPIC: Re:Undefined variable
#54
ge willson (User)
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Undefined variable 2009/02/15 10:07 Karma: 0  
Notice: Undefined variable: halt in /var/www/vhosts/example.com/httpdocs/modules/mod_analytics/mod_analytics.php on line 50

Source in the hitml
Code:

 <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." "http://www."); document.write(unescape("%3Cscript src='" gaJsHost "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-0000000-1"); pageTracker._initData(); pageTracker._trackPageview(); </script>



Module postion is the last of the footers.

Resolved it by removing the check to omit certain users (those being: idx|idy and I checked to make sure there were no spaces before, after or between the ids).

Scenario of the error: IDy is logged on the administration back end (but not on the front end).

Just thought I'd let you know. I'll try a couple of others things/scenarios when I have time
  The administrator has disabled public write access.
#56
Nick Dawson (Admin)
Posts: 54
graphgraph
User Online Now Click here to see the profile of this user
Re:Undefined variable 2009/02/15 11:43 Karma: 1  
Just been looking at this for 20 minutes wondering how the hell it screwed up until I realised there's a flaw in my logic. If the user is logged in but not on the list of diabled users then $halt never gets defined. I never noticed it before because there are no warnings displayed by my PHP install like that. I'll have to enable that now. This is fixed in the new version. Until then you'll have to avoid the feature I'm afraid. Thanks,

Nick.
  The administrator has disabled public write access.
#57
ge willson (User)
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Undefined variable 2009/02/15 13:27 Karma: 0  
Great. Glad to help improve the code.
I can wait for the fix; no problem. I was mainly planning to use the feature to
filter out some administrative users; which I also filter in GAnalytics using an
Exclude URI filter and an Exclude Campaign Name filter so I've probably got it
covered.
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
Powered by FireBoardget the latest posts directly to your desktop