top exits and top referrers

Creating and modifying plugins.
joho
Regular
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden
Contact:

top exits and top referrers

Post by joho »

What would be a reason these two plug-ins would stop collecting data? This is using 0.7.1. I copied one set of tables to the same database, but with a different prefix; and then configured another installation of S9Y to use those tables. But having done that, I get no new entries written to these two tables (in the new installation).. regardless of how I try to force the issue. There are no error messages in any logs.. I can't quite figure out what's going on.
At the end of a smile, there is a laugh and a 1/2 [DAD]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: top exits and top referrers

Post by garvinhicking »

Both tables need their _suppress counterpart to work properly. Did you copy the table structure completely with the right key infrastructure?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
joho
Regular
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden
Contact:

Post by joho »

I copied everything that I could find. I also "removed" the plug-ins from the new installation and added them back again, assuming I might have missed something I figured I'd let S9Y do it right.
At the end of a smile, there is a laugh and a 1/2 [DAD]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Maybe by copying it some indices or so were copied wrong, or with different/wrong charsets of your MySQL server...

Removing and re-adding the plugins doesn't re-add their tables because those are Core s9y-Tables. Maybe you can make a fresh DB install somehow?

Otherwise I'll try to investigate the issue next week!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
joho
Regular
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden
Contact:

Post by joho »

I'm now using 0.8-beta2 on that site, and the problem remains.

I have checked every database table against what 0.8 wants/needs, and everything is there; including indices.

You say that both these plugins need their "_suppress"-counterparts.. I'm not sure what that means. :?: I only have one *_suppress table in the S9Y database, this is true both for the one that _does_ work and the one that _doesn't_ work.
At the end of a smile, there is a laugh and a 1/2 [DAD]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I'm honestly sorry and much clueless about this functionality. I never quite got the referer/exit handling routines figured out on my own. :(

The only clue I've left: Have you checked if maybe the _suppress or exits/referrer table is corrupted on the installation where it doesn't work? Maybe you can try a CHECK TABLES?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
joho
Regular
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden
Contact:

Post by joho »

The tables are empty (well, the _suppress table is not empty, but the other two are); so I'm not sure what to check ;)

I've removed these plug-ins for now, but a better solution would be to get them working.
At the end of a smile, there is a laugh and a 1/2 [DAD]
SILU
Regular
Posts: 56
Joined: Sat Dec 04, 2004 10:28 pm
Location: Vienna / Austria
Contact:

Post by SILU »

I have another question concerning referrers/exits: i want to modify the displayed title of this plugins - but there are no such files in the plugin-directory - where to find them ? Thx.

SILU
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The internal plugins are inside include/plugins_internal.inc.php

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
SILU
Regular
Posts: 56
Joined: Sat Dec 04, 2004 10:28 pm
Location: Vienna / Austria
Contact:

Post by SILU »

I want to modify the titles in this way: .:. ichbinegoist .:. - but i always get sql-errors....how can i to that without errors ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Silu

If you show me how you modified the plugin, I can tell you what you did wrong :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
SILU
Regular
Posts: 56
Joined: Sat Dec 04, 2004 10:28 pm
Location: Vienna / Austria
Contact:

Post by SILU »

I just searched in the file for "exits" and changed it like that:

$propbag->add('name', TOP_EXITS); >>before change
$propbag->add('name', .:. TOP EXITS .:.); >> after change

I also tried some other variations, but i always got SQL-Errors.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

SILU, you should take a look at PHP Syntax first. :-)

The errors you were getting are not related to SQL but to PHP. Parse Errors always come from PHP. :-)

You'd need to change it to this:

Code: Select all

 $propbag->add('name', '.:. ' . TOP EXITS . ' .:.');
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
SILU
Regular
Posts: 56
Joined: Sat Dec 04, 2004 10:28 pm
Location: Vienna / Austria
Contact:

Post by SILU »

Ok, thx i solved it...but between TOP and EXITS you have to write an "_" then i got no error...but the signs ".:." are not displayed....i entered in the file this code:
$propbag->add('name', '.:. ' . TOP_EXITS . ' .:.');
How to modify that the ".:." will be displayed ?Thx
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Oh, you're right. I just copy+pasted your code! :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply