Karma Visitor Tracking Bug?

Creating and modifying plugins.
Post Reply
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Karma Visitor Tracking Bug?

Post by chickens »

I decided to try and clean up my database (finally) and I think I may have found a bug in the karma plugin visit tracking. Steps I took:

Installed a fresh copy of s9y on my test site.
Imported SQL dump of entries from phpmyadmin
Installed karma and popular entries plugin -- works
Installed the rest of my plugins without thinking. -- list here
Refreshed the page to make sure everything is working, karma visit tracking doesnt work.
Disabled all event plugins besides karma -- nothing.

Does anyone know of what might be causing this issue? The only thing I can think of is another plugin getting in the way. The problem I have with this train of thought is that I've got everything else disabled right now.

Right now all of the installed plugins come from spartacus or s9y itself.

Location: http://zonalnet.com/serendipity/

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

Re: Karma Visitor Tracking Bug?

Post by garvinhicking »

Hi!

Does the serendipity_karma* DB tables exist?

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/
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

Yes, it does exist with one entry in it. Its the one entry that I originally tested the plugin with. There is also nothing in my error_log saying any sort of error.

I would be happy to give you admin and phpmyadmin access if you need it.

If I get time tonight I will make another test site and test plugin by plugin to see if I can figure out exactly what is causing the problem.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Note that click tracking only occurs when you view the "extended entry"?

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/
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

Yeah, I've refreshed the extended body page about 50 times without any results.

Plugin settings:

enable voting: no
tracking: yes
exits: no
voting time after publishing: 1440
voting time: 5
only extended: yes (tried no as well)
voting period: 7
log votes: no
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Reading the plugin code, this can only happen if the Entry-ID cannot be matched from your current URL.

Check this serendipity_event_karma.php file:

http://nopaste.php-quake.net/7568

I added some debugging output there, which should create a karma.log file in your templates_c directory. It seems that $entryid is empty in your case...

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/
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

It looks like the karma plugin is not active; the log does not exist. To verify it was not something I did in my template I've set the theme to Serendipity 3.

I should get time later today to test to see what exactly might be causing the problem.
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

Found it!

If you change the format of your permalinks the karma visitor tracking dies. I changed mine to %year%/%month%/%day%/%title%/ and the tracking pukes out.

It only took me installing every single plugin on a test site and having it still work to figure out the actual root of the issue. :lol:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah, it might be that the karma plugin relies on the %id% value to get the ID of an entry properly.

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