Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Visitor Web Stats v2.2c set-up and ran No problems


webmaster69

Recommended Posts

I installed this great program over a month ago, I check the stats everyday.

I have made no recent mods.

Then this morning, in the control panel where I view the stats, Insead of the stats it's showing this insead:

 

1104 - The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay

 

SELECT o.orders_id FROM orders o, visitors v WHERE o.customers_id = v.customers_id AND o.customers_id = '163' AND (to_days(o.date_purchased) - to_days(v.date)) = 0 order by o.orders_id desc

 

[TEP STOP]

 

It looks like a database fault? but everything else seems to be fine.

 

I would really appreciate any help.

 

Thanks

Link to comment
Share on other sites

I installed this great program over a month ago, I check the stats everyday.

I have made no recent mods.

Then this morning, in the control panel where I view the stats, Insead of the stats it's showing this insead:

 

1104 - The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay

 

SELECT o.orders_id FROM orders o, visitors v WHERE o.customers_id = v.customers_id AND o.customers_id = '163' AND (to_days(o.date_purchased) - to_days(v.date)) = 0 order by o.orders_id desc

 

[TEP STOP]

 

It looks like a database fault? but everything else seems to be fine.

 

I would really appreciate any help.

 

Thanks

I checked with my host and nothing has changed.

I deleted all data through admin panel, (which I really wanted to keep)

It all seems fine again now and is logging new vistors.

I am just worried it may happen again

Link to comment
Share on other sites

  • 4 weeks later...
I installed this great program over a month ago, I check the stats everyday.

I have made no recent mods.

Then this morning, in the control panel where I view the stats, Insead of the stats it's showing this insead:

 

1104 - The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay

 

SELECT o.orders_id FROM orders o, visitors v WHERE o.customers_id = v.customers_id AND o.customers_id = '163' AND (to_days(o.date_purchased) - to_days(v.date)) = 0 order by o.orders_id desc

 

[TEP STOP]

 

It looks like a database fault? but everything else seems to be fine.

 

I would really appreciate any help.

 

Thanks

 

If I delete some of the entries from the table it works again.

 

So it look likes the table only holds upto a certain limit then produces this error.

 

I think I need to set the table to hold more entries.

 

has anyone got any ideas?

 

Help!!!

Link to comment
Share on other sites

If I delete some of the entries from the table it works again.

 

So it look likes the table only holds upto a certain limit then produces this error.

 

I think I need to set the table to hold more entries.

 

has anyone got any ideas?

 

Help!!!

Any Database experts??

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
The error also appeared at the bottom of the product info page.

 

I have now fixed it !!! :D

 

 

HOW do you fix it??

 

Its now happening to me. It started on the Product info pages when I hit like 1800 products.

 

???

Any help in letting me know how you fixed it (without deleting products)- would be greatly appreciated.

 

Many thanks.

 

~BREA

Link to comment
Share on other sites

HOW do you fix it??

 

Its now happening to me. It started on the Product info pages when I hit like 1800 products.

 

???

Any help in letting me know how you fixed it (without deleting products)- would be greatly appreciated.

 

Many thanks.

 

~BREA

Don't delete anything, I will look into it and let you know what I did

Link to comment
Share on other sites

Don't delete anything, I will look into it and let you know what I did

 

Backup your pages before you amend them.

 

catalog/admin/visitors.php

 

At around line 30

As far as I can remember I added the following 2 lines;

 

// SQL_BIG_SELECTS = 1 - added to solve 1104 MYSQL error message

tep_db_query("set sql_big_selects=1");

 

 

// Dont change anything below this line

// Clean-up Visitors Trace

// SQL_BIG_SELECTS = 1 - added to solve 1104 MYSQL error message

tep_db_query("set sql_big_selects=1");

tep_db_query("DELETE FROM " . TABLE_VISITORS_TRACE . " where (TO_DAYS(now()) - TO_DAYS(date) > '" . $trace_days . "')");

 

// set the top level domain

function visitor_get_top_level_domain($url) {

if (strpos($url, '://')) {

$url = parse_url($url);

$url = $url['host'];

 

 

------------------------------------------------------------------------

to cure your products info error,

catalog/product_info.php

around line 135

As far as I can remember I added the following 2 lines;

 

// SQL_BIG_SELECTS = 1 - added to solve 1104 MYSQL error message

tep_db_query("set sql_big_selects=1");

 

<?php

// SQL_BIG_SELECTS = 1 - added to solve 1104 MYSQL error message

tep_db_query("set sql_big_selects=1");

 

$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

$products_attributes = tep_db_fetch_array($products_attributes_query);

if ($products_attributes['total'] > 0) {

?>

 

Let me know how you get on.

Link to comment
Share on other sites

  • 3 years later...

Hello,

Does anyone have a clue why my "uri colum" won't fill up in the visitors_trace table resulting in an empty pop up window and no trace of what pages the customers have visited?

 

popnw5.jpg

 

Everything else works perfect!! It's only that one and only column that doesn't get filled with data!

<_<

Link to comment
Share on other sites

  • 2 weeks later...
Hello,

Does anyone have a clue why my "uri colum" won't fill up in the visitors_trace table resulting in an empty pop up window and no trace of what pages the customers have visited?

 

popnw5.jpg

 

Everything else works perfect!! It's only that one and only column that doesn't get filled with data!

<_<

 

Anyone...? Please...

Link to comment
Share on other sites

  • 3 months later...
  • 5 months later...

Have it to, my visited pages only shows me: http://website.com

can any one help please?

 

Broker

 

As far as I can tell the table isn't filling because your server has Register Globals set to "off". There is a fix on the contribution page, "Make this work with register globals off & Time Zone offset mod" which I installed and so far, so good..... Go to http://www.oscommerce.com/community/contributions,4067.

Link to comment
Share on other sites

  • 1 year later...

As far as I can tell the table isn't filling because your server has Register Globals set to "off". There is a fix on the contribution page, "Make this work with register globals off & Time Zone offset mod" which I installed and so far, so good..... Go to http://www.oscommerce.com/community/contributions,4067.

 

 

that will correct it, but in my case was necessary to do something else!

 

went to

/catalog/admin/visitors.php

 

where is:

$trace_string .= '<td><a href="' . HTTP_SERVER . $trace['uri'] . '" target="_blank"><font size="2">' . chunk_split($trace["uri"],80,"<br>") . '</font></a></td></tr>';

 

change to:

$trace_string .= '<td><a href="' . $trace['uri'] . '" target="_blank"><font size="2">' . chunk_split($trace["uri"],80,"<br>") . '</font></a></td></tr>';

 

otherwise it would never open the visited url! ;)

 

Now my problem:

 

how do I make the number appear over the graphics? <_<

 

img.png

 

Thanks in advance

Regards

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...