User login

MetaTraffic 2.0 Boxshot

class.ASP error

Posted by purple-circle [July 29, 2003]

I've just purchased MetaTraffic, although I'm currently using the 30 day trial version till I recieve the full version (if there's any difference). I've installed it the server but I can't seem to get it to write anything to the DB.

I've put the JavaScript tracking option on some pages, the ASP include on some pages and the Server Execute on other pages. The pages that have either ASP based include on throw the following error .....

Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/metatraffic/track.asp, line 20

..... however when I remove <% Option Explicit %> from track.ASP this particular error disappears.

The page then loads but at the end of the page, where I have the ASP tracking included, the following error now shows .....

error '8002801d'
Library not registered.

/metatraffic/class.asp, line 4658

..... I'm able to enter data into the DB manually and call up that data from the Report Generator. I can also delete data from within the Setup section of the Report Generator, so DB connectivity is fine.

Finally in track.JS and track.HTM it says.....

// MAKE SURE YOU CHANGE THIS URL OF THE IMAGE SRC AT THE BOTTOM AS WELL

.... but it doesn't mention what to change although it looks as though the image being called by the document.write function ....

document.write ('src="' + scriptlocation + '?' + pagedata + '">');

I've tried looking through your site and the brief information supplied in the readme.HTM file but I can't find any further information on this.

Your help would be greatly appreciated.

class.ASP error

Hi Grant,

That was an error in the v1.3 distribution of MetaTraffic. Normally I comment out the Option Explicit line in track.asp before I publish a new version. Glad you spotted that for me.

You are getting a "library not registered" when MetaTraffic tries to create a regular expression object. This could be a couple things: you are running an older version of Vbscript or your web host has disabled the regular expression object (RegExp).

What version of Internet Information server is your web site hosted on? What version of Vbscript? MetaTraffic requires version 5.0 or greater of VBScript to work. This is included in IIS 5.0 on Windows 2000 server. If you don't know the answer to these questions then your web hosting company should.

If the version of VBScript is correct, then it may be that the web host has disabled your ability to use regular expressions using the RegExp object. You should ask them. Here is a supporting Microsoft knowledge base article that may help:

[url]http://support.microsoft.com/support/kb/articles/Q274/0/38.ASP&NoWebContent=1[/url]

The variable to change in the track.js or track.htm file is called scriptlocation. This only needs to change if you installed MetaTraffic into a different folder. The scriptlocation variable needs to point to the path where the track.asp file can be found.

I hope this helps.

Regards,

~Chad

class.ASP error

After much cajoling and pleading with my ISP, I finally got them to agree that the fault was on there server. They've finally sorted out the problem and the script is now working fine.

Thanks again for your help.

Grant Spencer