
Hi - Installed v2 Beta on a PHP site, using the Javascript tracking. and everything worked just fine.
Now, I'm trying plug this into a complicated ASP site (trying on my local machine first -- XP w/ IIS5), and get the following errors:
UPDATE FROM FIRST POSTING: I created a simple "test,asp" page which included nothing more than the text "This is a test file" and the server-side-include () and get the same "Option Explicit" error noted below... (and Yes, I've (1.) updated the track.js with the custom stats path, and (2.) ran the setup on my local machine)
-- error one:
Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/stats-v.2/track.asp, line 20
Option Explicit
-- so then, I did the good-coder thing and made sure all variables throughout the site were declared, and also commented the "Option Explicit" line temporarily, just to see what happens - which produced this error on my local machine (XP/IIS5)
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/stats-v.2/clsLog.asp, line 20
Class MTLog
-- FYI, the old MetaStats worked just fine on the same site, even though the site's existing code is a tad bit sloppy...
Any ideas?
Syntax error...
OK.. another update.. I methodically tested the "test.asp" file I mentioned, slowly adding all my existing individual file includes and common script functions one by one - while making sure to leave the "Option Explicit" line in the MT file "track.asp" commented out.
Everything works fine.
But once I un-comment the Option Explicit, I get the error (doesn't matter if I include any other script or files, or just leave track.asp by itself)
Perhaps has to do with some permissions or drivers on my system?
Who knows... Curious to hear any ideas.
Syntax error...
Hi,
The Option Explicit is commented out in previous versions, I forgot to comment this out for the beta release. It will be commented out in the next release. It generally causes problems when you include the tracking script in your asp pages using the #Include. Using the Server.Execute method works fine as it executes the script independantly of the page it is in.
As for the error:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/stats-v.2/clsLog.asp, line 20
Class MTLog
My first guess is that IIS doesn't recognize the Class declaration, because it is not supported under your version of IIS. MetaTraffic requires IIS 5 with VBScript 5.0 or greater. What OS / IIS version are you running?
Regards,
~Chad
Syntax error...
Ahh - Now I know what server.execute can do!
As for IIS/VB versions... Let's see. IIS=5.1 VB=?... I've got XP/SP-1 and XP Office Pro, so I should have the latest VB, but I can't find the version offhand.
Also, given the various includes and other common scripts I was using on the site where I'm testing this, there's a chance it was trying to load an old version of MT or something else that just wasn't compatible. Once I cleared my own gunk out of the way, and commented the "Option Explicit", I didn't see the second error any more.
Apologies for proving that 99% of tech support is spent on people who broke the thing themselves :)