Supertracker

Views: 96,647

Results 301 to 320 of 324
12 Nov 2012, 6:50 AM
#301
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Supertracker

Thanks Design75
I had uninstalled and re-installed it. The error information was changed as below :shocking:@#!?

[12-Nov-2012 06:33:39 UTC] PHP Fatal error:  1364:Field 'cart_contents' doesn't have a default value :: INSERT INTO supertracker (ip_address, browser_string, country_code, referrer, referrer_query_string, landing_page, landing_page_name, exit_page, exit_page_name, time_arrived, last_click, products_viewed) VALUES ('127.0.0.1', 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0', '', 'http://www.zencart15.com/index.php', 'main_page=login', '/index.php?main_page=index', 'Home', '/index.php?main_page=index', 'Home', NOW(), NOW(), '') in H:\zencart15\includes\classes\db\mysql\query_factory.php on line 120
12 Nov 2012, 7:14 AM
#302
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Supertracker

base on the configuration of "Excluding IP's", the error message is different.
If the value set to empty, the error log is

PHP Fatal error:  1364:Field 'cart_contents' doesn't have a default value :: INSERT INTO......

If the value set to 127.0.0.1, the error log is

PHP Fatal error:  Cannot redeclare class supertracker
12 Nov 2012, 7:25 AM
#303
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Supertracker

If the jscript_supertracker.php was deleted, the pages were loading well. But there was no tracking data been recorded.

13 Nov 2012, 4:06 PM
#304
evou avatar

evou

New Zenner

Join Date:
Nov 2012
Posts:
2
Plugin Contributions:
0

Re: Supertracker

Hello,

When I view the last ten visitors, the referred by link is always incomplete and cut off.
I use google adwords, so google makes for a long referred by link and when it is cut off (perhaps by a character limit?) I never get to see what keywords were used to get them on my page.

Does anyone know how to make the entire referred by link to show?
Is there a character limit setting?

Thank you

7 Feb 2013, 3:32 AM
#305
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: Supertracker

su35:

The error information. It looks like declare the class twice. Do I need change the code to include_once() or require_once() in some where?

PHP Fatal error: Cannot redeclare class supertracker in H:\zencart15\includes\classes\supertracker.php on line 15


For anyone that gets this error, a workaround that ~seems~ to do the trick is to edit the file:

 /includes/templates/YOUR_TEMPLATE/jscript/jscript_supertracker.php

and change 

REQUIRE(DIR_WS_CLASSES . 'supertracker.php');

to

include_once(DIR_WS_CLASSES . 'supertracker.php');


This is just a bandage, but is working like a champ for me now.

Nice Mod by the way.
5 Apr 2013, 10:00 PM
#306
pablo avatar

pablo

New Zenner

Join Date:
Jun 2011
Posts:
91
Plugin Contributions:
0

Re: Supertracker

Limitless:

For anyone that gets this error, a workaround that seems to do the trick is to edit the file:

/includes/templates/YOUR_TEMPLATE/jscript/jscript_supertracker.php

and change

REQUIRE(DIR_WS_CLASSES . 'supertracker.php');

to

include_once(DIR_WS_CLASSES . 'supertracker.php');

This is just a bandage, but is working like a champ for me now.

Nice Mod by the way.

I applied this workaround and although supertracker is now working, my web pages seem to take a long time to load
and supertracker no longer displays the country flag for the visitor in the reports section.
If I don't apply the workaround, supertracker works fine but when you go to my web sit all you get is an "INTERNAL SERVER ERROR"
I believe this is caused from other java scrip files colliding with each other. Any suggestion on a fix?

9 May 2013, 7:03 AM
#307
openvista avatar

openvista

New Zenner

Join Date:
Sep 2009
Posts:
23
Plugin Contributions:
0

Re: Supertracker

I'm moving this discussion over from another support thread (http://www.zen-cart.com/showthread.php?197880-PHP-Warning-addslashes()-expects-parameter-1-to-be-string-array-given).... I'm using ZC 1.5.1 and PHP 5.3.

I believe I've found a problem with Supertracker. Specifically it seems to be when a user checks out and Supertracker attempts to write the cart contents to the cart_contents field in the supertracker table. The file that controls this, I believe, is /includes/classes/supertracker.php about line 150ish. You can see that if the cart contents return as a string then it serializes them. But what happens when they don't return as a string? What if they are undefined or an array or some other non-string condition. Since the database write operation depends on zen_db_input() function, which is really just a container for the native add_slashes() function, it causes a PHP warning. Under PHP 5.3 addslashes() now strictly checks to see if the data passed to it is a string. If it isn't it throws a warning which ends up as a myDEBUG log file in the /logs folder under Zen Cart 1.5.1. They start adding up quickly if you have a store with enough daily transactions.

If I pass this data straight into the db, bypassing addslashes, it writes "Array" at least in my initial couple tests.

Suggestions on the best way to filter the $carts_content variable so it always ends up a string? I'll try a couple things but just wanted others to weigh in....

Thanks!

10 May 2013, 11:42 AM
#308
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Supertracker

Wow! You really use this old script? Can you tell me why you use this script? What do you miss in Google Analytics and Piwik?

Quick bug fix.
includes/class/supertracker.php
Search

$cart_contents = unserialize($tracking_data->fields['cart_contents']);

replace by

$cart_contents = $tracking_data->fields['cart_contents'];

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

10 May 2013, 1:13 PM
#309
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Supertracker

a_berezin:

Wow! You really use this old script? Can you tell me why you use this script? What do you miss in Google Analytics and Piwik?

Quick bug fix.
includes/class/supertracker.php
Search

$cart_contents = unserialize($tracking_data->fields['cart_contents']);

> replace by
> ```php
$cart_contents = $tracking_data->fields['cart_contents'];

It works (naturally) :hug:

10 May 2013, 5:43 PM
#310
openvista avatar

openvista

New Zenner

Join Date:
Sep 2009
Posts:
23
Plugin Contributions:
0

Re: Supertracker

a_berezin:

Wow! You really use this old script? Can you tell me why you use this script? What do you miss in Google Analytics and Piwik?

Quick bug fix.
includes/class/supertracker.php
Search

$cart_contents = unserialize($tracking_data->fields['cart_contents']);

> replace by
> ```php
$cart_contents = $tracking_data->fields['cart_contents'];

Indeed, that's the solution I came to as well but was too busy to post a reply yesterday. After examining admin activity logs, it appears this add-on isn't getting used so I'm going to remove it. Plus there are other issues (reports that won't generate properly) that I think have to do with either PHP 5.3 or Zen Cart 1.5.1 or a combination of both.

As you say, Google Analytics, which the site uses, is a more comprehensive solution.

Thanks for your reply and maybe all of this helps someone who isn't comfortable with another solution.

16 May 2013, 4:56 PM
#311
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

Re: Supertracker

So I've installed Supertracker 1.1 on ZC 1.5.1. It worked fine for about a week then I got blank front end (admin is fine). I uninstalled Supertracker and it's good.

The debug logs give this error:

PHP Fatal error: Cannot redeclare geoip_country_code_by_name() in /home/ . . . /public_html/ . . . /includes/geoip.inc on line 351

I installed and uninstalled a few times and same result. I have this mod running on 1.3.9h with no problems. It was also OK on this version for about a week.

We've had some strange php errors the last month or so. Little things that I've fixed one at a time. I believe there's some creeping php/mysql upgrade in the works that is running into bad/old/depreciated code.

This issue has happened in the past with this exact error in this file. I've found posts and solutions for this thing from every year for the last 4 years.

This one - adding !if statements in the geoip.inc file - worked for me. the code is around line 340 in geoip.inc.

Fair warning: after I made the code changes and re-uploaded the whole package my front and backend dragged for about 5 mins. Seemed frozen. I waited and refreshed and everything's fine. Supertracker even works :D

Fatal error: Cannot redeclare geoip_country_code_by_name()

The solution is very simple. in your geoip.inc file, look for this code

function geoip_country_code_by_name($gi, $name) {
...
}

function geoip_country_name_by_name($gi, $name) {
...
}

and replace with

if (!function_exists('geoip_country_code_by_name')) {
function geoip_country_code_by_name($gi, $name) {
...
}
}

if (!function_exists('geoip_country_name_by_name')) {
function geoip_country_name_by_name($gi, $name) {
...
}
}


Here are some other solutions I found in case that fix doesn't work for you. I HAVE NOT TRIED THESE

From 2011: this fix from razvantudorica.com/03/cannot-redeclare-geoip_country_code_by_name/. This one is from the same post as the code fix I used: it's an alternative that is supposed to do the same thing.

Cannot redeclare geoip_country_code_by_name
Fatal error: Cannot redeclare geoip_country_code_by_name()

The reason was that I have geoip extension enabled in my PHP configuration and also I used the geoip.inc file from maxmind.com.

The solution is very simple. Actually, there are two solutions:

First is to disable the geoip extension from your configuration. In /etc/php5/apache2/conf.d/geoip.ini comment the first line:

;extension=geoip.so

. . . . second solution is the code fix above.

One person on max_mind says this but I don't know what he's talking about: I don't have that in my php.ini

the reason is that you use the php code and the php extension. Remove the geoip extension from your php.ini to fix the namespace clash.
( both use the same function name geoip_country_code_by_name )

From a 2010 posting on 4homepages.de/forum/index.php?topic=28684.0

Problem solved. It`s depend on hosting changes...
For resolve this problem, uncomment this path in you geoip.inc
function geoip_country_code_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_CODES[$country_id];
}
return false;
}

function geoip_country_name_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_NAMES[$country_id];
}
return false;

27 Aug 2013, 10:17 PM
#312
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Supertracker

zc 1.5.1
SUPER TRACKER V1.1
multisite V1.0

I have installed ths mod on zc1.5.1

I noticed 2 thing not lading correctly:

  1. "The Top Landing Pages (No Sale)" is not displaing correctly. Instead of display "Top Landing Pages (No Sale)", it displays TEXT_LANDING_PAGE.
    Also. the gray bar heading under the heading displays " Serail TEXT_LANIDING_PAGE" instead of the correct heading as well.

What is wrong here? How Do I fix this?

  1. "The Top Landing Pages (No Sale, bit added to cart)" does not display anything at all.
    Again, what is wrong here and how do I fix it?

Does anyone else encounter this problem?

Any Help is greatly appreciated.

28 Aug 2013, 6:05 PM
#313
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Supertracker

twi:

zc 1.5.1
SUPER TRACKER V1.1
multisite V1.0

I have installed ths mod on zc1.5.1

I noticed 2 thing not lading correctly:

  1. "The Top Landing Pages (No Sale)" is not displaing correctly. Instead of display "Top Landing Pages (No Sale)", it displays TEXT_LANDING_PAGE.
    Also. the gray bar heading under the heading displays " Serail TEXT_LANIDING_PAGE" instead of the correct heading as well.

What is wrong here? How Do I fix this?

  1. "The Top Landing Pages (No Sale, bit added to cart)" does not display anything at all.
    Again, what is wrong here and how do I fix it?

Does anyone else encounter this problem?

Any Help is greatly appreciated.

I found the solution in this thread on post #210 and #211 in case anyone encounter the same problem.

10 Dec 2013, 5:03 PM
#314
seanscully avatar

seanscully

Zen Follower

Join Date:
Apr 2006
Location:
Largo, Florida USA
Posts:
99
Plugin Contributions:
0

Re: Supertracker

MOBILE SITE ERROR - I tried uploading the tracker code to my mobile template and get the following error, any ideas on how to add to a mobile site? > Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /home/public_html/ADMINXXX/supertracker.php on line 602

11 Mar 2014, 10:09 PM
#315
magz avatar

magz

Zen Follower

Join Date:
Apr 2013
Location:
north carolina
Posts:
110
Plugin Contributions:
0

Re: Supertracker

Hi,

Most of the time SuperTracker returns valid data with IP addresses, countries, etc., but I've also been finding error log files with this error on my regular store site (using ZC 1.5.1 and SuperTracker 1.1, Apache server with 5.4 PHP):

PHP Warning: gethostbyaddr() [<a href='function.gethostbyaddr'>function.gethostbyaddr</a>]: Address is not a valid IPv4 or IPv6 address in /.../MYADMINFOLDER/supertracker.php on line 602

Line 602 in that file is:

echo '<tr><td class="dataTableContent"><b>' . TABLE_TEXT_IP . '</b> <a href="http://whatismyipaddress.com/ip/' . $lt_row->fields['ip_address'] . '" target="_blank">' . $lt_row->fields['ip_address'] . '</a>' . ' (' . gethostbyaddr($lt_row->fields['ip_address']) . ') ' . zen_image(DIR_WS_IMAGES . 'flags/' . $lt_row->fields['country_code'] . '.gif') . ' ' . $lt_row->fields['countries_name'] . '</td></tr>';

In SuperTracker's onscreen report (and in the database), instead of the correct ###.###.###.### (server.info) Country display, the corresponding records return IP/country info like this:
Customer IP Address/Country: ############### ()
Often multiple visits have the same 14- or 15-digit number and happen within seconds of each other. 100% of these "visits" last 0 seconds and bounce (same entry and exit page during a given "visit" but different pages for different "visits"). These bogus visits constituted about 8.5% of all of my site's visits in the last 4 weeks.

Is this a reason for concern or just a mere annoyance, and how would I go about stopping this? Or is this a question for another part of this Forum?

Thank you!
Magz

12 Mar 2014, 4:46 AM
#316
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Supertracker

Hi,

magz:

the corresponding records return IP/country info like this:
Customer IP Address/Country: ############### ()
You can publish some of these ip addresses? Or send a PM. Safer if you would send screenshots.

P.S. Can you explain why do you use supertracker? Google Analitycs or Universal Analytics does not suit you?

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

12 Mar 2014, 10:27 AM
#317
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Supertracker

a_berezin:

P.S. Can you explain why do you use supertracker? Google Analitycs or Universal Analytics does not suit you?

Please excuse me butting in Andrew. I personally use ST because it gives me the data in my admin console, all under one roof as it were.
You did mention a while back that you had a more recent version of ST than the one in the download area. If that's the case would you please be able to share or better still upload the latest for all to use please Andrew?
Thank you in advance.

12 Mar 2014, 11:18 AM
#318
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Supertracker

picandnix:

I personally use ST because it gives me the data in my admin console, all under one roof as it were.
But the data collected ST steel incomplete, since Google start hiding the user search queries from the HTTP referrer field.

picandnix:

You did mention a while back that you had a more recent version of ST than the one in the download area. If that's the case would you please be able to share or better still upload the latest for all to use please Andrew?
It's been so long... long time I don't use ST. I'll try to search the latest version.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

12 Mar 2014, 10:24 PM
#319
magz avatar

magz

Zen Follower

Join Date:
Apr 2013
Location:
north carolina
Posts:
110
Plugin Contributions:
0

Re: Supertracker

Hi Andrei - There are things ST does that GA/UA doesn't do and vice versa. I use both, they complement each other.

Here are a couple sample numbers from my mysterious visits:

260113003435668 () - 12 visits to 5 different pages within one category (3 products and 2 cat/subcat pages), first 11 visits within a 4-and-a-half minute period, the 12th about an hour later; none of the links had ?zenid=... parameter as part of the url

260131100251939 () - 26 visits, all within a 6-and-a-half minute period, to a whole bunch of different pages (mostly within catalog, but not exclusively); first link has no ?zenid= parameter, the other 25 all have an identical session id

Most other visits are multiples like these, although there are some single visits, as well. Some have seesion IDs, some don't, all have the same entry and exit time and page. There are also some that have different "IP" numbers (eg, 260197380258148 and 260197380258414) but the same session ID (ab. 2 minutes between these particular 2 visits, both to the same page).

Any idea what all this could mean?

Thank you!
Magz

a_berezin:

Hi,
You can publish some of these ip addresses? Or send a PM. Safer if you would send screenshots.
P.S. Can you explain why do you use supertracker? Google Analitycs or Universal Analytics does not suit you?

13 Mar 2014, 4:45 AM
#320
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Supertracker

Hi Magz,

magz:

260113003435668 () - 12 visits to 5 different pages within one category (3 products and 2 cat/subcat pages), first 11 visits within a 4-and-a-half minute period, the 12th about an hour later; none of the links had ?zenid=... parameter as part of the url

260131100251939 () - 26 visits, all within a 6-and-a-half minute period, to a whole bunch of different pages (mostly within catalog, but not exclusively); first link has no ?zenid= parameter, the other 25 all have an identical session id
Can You see the access logs for that date and time? What IP address?

magz:

Any idea what all this could mean?
I think that the situation is very strange and needs debugging and analysis.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.