vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   psiStats 2006 (The New vBStats for vBulletin 3.5.x - 3.8.x) (https://vborg.vbsupport.ru/showthread.php?t=104213)

akanevsky 01-09-2006 07:31 PM

I will verify & fix the problems on the weekend.

Yorixz 01-09-2006 07:35 PM

Sadly it caused a database error for my IE visitors so I've got it disabled for now, might reinstall later if it's fixed.

Loki12 01-09-2006 07:42 PM

I have database errors too the last few days, although I can't confirm that it is from this hack.

akanevsky 01-09-2006 08:19 PM

Quote:

Sadly it caused a database error for my IE visitors so I've got it disabled for now, might reinstall later if it's fixed.
Have you undone class_core file edits?

firstrebel 01-09-2006 08:26 PM

See http://www.vbulletin.com/forum/bugs3...iew&bugid=2056

Bob

akanevsky 01-09-2006 08:31 PM

Uh huh. Thought so. So it's not an error on my side :) Thanks, Bob.

Zelda-King 01-09-2006 09:05 PM

That fix didn't sort my little issue though. :/

S@NL - BlackBik 01-09-2006 09:41 PM

I've found out the errors i'm getting:
Code:

Database error in vBulletin 3.5.3:

Invalid SQL:
LOCK TABLES psistats_cache READ, psistats_data READ;

MySQL Error  : Access denied for user: 'phpuser@127.0.0.1' to database 'setiforum'
Error Number : 1044
Date        : Monday, January 9th 2006 @ 05:27:41 PM
Script      : ../cron.php?&rand=397415
Referrer    : ..forumdisplay.php?f=13
IP Address  : xx.xxx.xx

That has nothing to do with the UNLOCK error. That has been fixed btw.
I don't get this error on any other cron of vB function and my default user has all the rights it needs as far as I know.
What could be wrong?

FFMG 01-09-2006 10:57 PM

Hi,

I have found 1 problem with the install. Forgive me if I am wrong.

In product-psistats.xml, line 38.
Code:

$db->query_write("INSERT INTO `" . TABLE_PREFIX . "cron` VALUES (14, 1136665500, -1, -1, -1, 'a:1:{i:0;i:25;}', './includes/cron/psistats_update.php', 1, 'psiStats 2006 Hourly Update')");
That doesn?t work for me because I already have more than 14 cron jobs.
Surely the insert should not give an ID number.

And as for the lock until a solution is found I had to disable

Code:

$vbulletin->db->lock_tables(array('psistats_cache' => 'READ', 'psistats_data' => 'READ'));
//and
$vbulletin->db->unlock_tables();

Because I don?t have those permissions and I don?t know where to disable it in the options.

Thanks.

FFMG

S@NL - BlackBik 01-09-2006 11:10 PM

8)

Great sollution FFMG, that does the trick.
Does anybody know what the risc is for disableing those two commands?

akanevsky 01-10-2006 12:49 AM

Quote:

Surely the insert should not give an ID number.
You are right. I just did a phpadmin dump of the row and forgot to remove the id insert ;)

Quote:

Does anybody know what the risc is for disableing those two commands?
I love how everyone asks "anybody". Really. Who can know better than the author of the hack?

Rickie3 01-10-2006 04:40 AM

Quote:

Originally Posted by Psionic Vision



I love how everyone asks "anybody". Really. Who can know better than the author of the hack?

hehehehehhehe i have to agree with you on that lol

S@NL - BlackBik 01-10-2006 05:38 AM

Quote:

Originally Posted by Psionic Vision
I love how everyone asks "anybody". Really. Who can know better than the author of the hack?

Well, maybe someone else who knows php/mysql?
But you're right. Do YOU know the riscs?

Also, Firefox isn't showing on the browserpage.

And we have most visitors from New Zealand it seemes. And we're a Dutch board. OK, we have a member in NZ and he has posted, but not more then all our Dutch members together. Any idea why those countrystats show almost no visitors from the Netherlands?

FFMG 01-10-2006 07:50 AM

Quote:

Originally Posted by Psionic Vision
I love how everyone asks "anybody". Really. Who can know better than the author of the hack?

I think this is because the code.
Code:

$vbulletin->db->lock_tables(array('psistats_cache' => 'READ', 'psistats_data' => 'READ'));
//and
$vbulletin->db->unlock_tables();

Is not restricted to your hack alone.
So it is more a general questions, what could happen if the lines are commented out.

You obviously placed them there for a reason, we are just curious what the downside of commenting those out might be.
Seen that I cannot lock my tables I don?t have a choice really. I must comment them out.

FFMG

Rickie3 01-10-2006 08:36 AM

Quote:

Originally Posted by S@NL - BlackBik

Also, Firefox isn't showing on the browserpage.

i asked that same question in this earlier post https://vborg.vbsupport.ru/showpost....&postcount=156

akanevsky 01-10-2006 09:28 AM

Quote:

But you're right. Do YOU know the riscs?
There are no riscs. But what happens is, there is potentially a lot of data to be parsed in the cache. While it is being parsed, another instance of the script may access the same data and parse it too. What lock tables does, it ensures that only one instance of the script may access certain tables until they are unlocked, or until the script is finished.

Quote:

Firefox isn't showing on the browserpage.
That has already been reported.

redtailboa 01-10-2006 02:45 PM

I uninstalled the old version I had, and installed 1.3.1. First the cron was not created, so I created it myself. Secondly, the psistats.php comes up fine, but the only thing that is actually being updated is Style Usage, General and Top Threads & Forums. The others do not work. I also ran the cron manually to see if that would update the non working sections and they still come up with no results:
http://linuxgangster.org/forums/psistats.php

FFMG 01-10-2006 02:53 PM

Quote:

Originally Posted by redtailboa
I uninstalled the old version I had, and installed 1.3.1. First the cron was not created, so I created it myself. Secondly, the psistats.php comes up fine, but the only thing that is actually being updated is Style Usage, General and Top Threads & Forums. The others do not work. I also ran the cron manually to see if that would update the non working sections and they still come up with no results:
http://linuxgangster.org/forums/psistats.php

It seems to be working fine; I can see countries and OS.

Maybe the cron was not run properly or something sill.

Did you also remove the changes on class_core.php? When I updated I also forgot about those changes.

FFMG

redtailboa 01-10-2006 03:16 PM

Ok this is really odd. I checked my email and had like 50 db errors saying psistats_country was not there. Then I check back on the psistats.php and its magically working. I didn't do one thing to fix it.

FFMG 01-10-2006 03:19 PM

Quote:

Originally Posted by redtailboa
Ok this is really odd. I checked my email and had like 50 db errors saying psistats_country was not there. Then I check back on the psistats.php and its magically working. I didn't do one thing to fix it.

hum, hum...

:)

FFMG

redtailboa 01-10-2006 04:37 PM

my guess now is that its probably my php caching program

akanevsky 01-10-2006 05:41 PM

Quote:

Ok this is really odd. I checked my email and had like 50 db errors saying psistats_country was not there. Then I check back on the psistats.php and its magically working. I didn't do one thing to fix it.
At this point, the error about psistats_country comes from class_core.php ONLY. Make sure you remove the whole piece of code in class_core.php (it is enclosed with my name in comment, so you'll easily find it).

redtailboa 01-10-2006 07:20 PM

I removed that right after the install, but apparently the php caching program didn't pick the change up right away ;) Anyway this maybe a good heads up to users who use mmcache or some other sort of php cache or accelerator

bashy 01-10-2006 08:52 PM

Hi Psionic

I have been monitoring the stats for the crawlers...
Yours are way off m8...

From monday i have had google in 249 times, Yahoo 99 time and msn 148 times...

Your stats are showing Since install about 1 week Google + adsense 33, MSN a and yahoo 40....

So as you can see yours stats for this is way out, how i dont know... :surprised:

You can see this yourself here

My crawler block was 2655 for google on monday, 1359 for yahoo and 2858 for MSN, I keep a written log of the 3 main spiders, this is just for my curiosity, this is how i know whats what....

Any thoughts on this?

Regards

Bashy

redtailboa 01-10-2006 09:21 PM

Suggestion:

What about picking up stats on other OS'es. From the looks of it, its not reporting anything for FreeBSD, NetBSD, Open or any other BSD. In fact, I don't think its picking up others like Solaris, Irix etc.

And yes, before someone ask alot of people come to my site with *BSD and odd unix's. Half of our members are BSD users (www.bsdgangster.org)

akanevsky 01-10-2006 09:22 PM

The stats do NOT count hits. They count stats once in an hour, which means that only one hit per hour counts for each host. :)

As for BSD, gimme list of agent identifiers for those OSes and I'll gladly add them.

redtailboa 01-11-2006 01:56 AM

I think this is what you want:

aix = "IBM AIX"
atheos = "Atheos"
amiga = "AmigaOS"
darwin = "Darwin"
osf = "Digital"
free-bsd = "FreeBSD"
hp-ux = "HPUX"
net-bsd = "NetBSD"
open-bsd = "OpenBSD"
palm = "PalmOS"
photon = "QNX Photon"
symbian = "SymbianOS"
unixware = "UnixWare"
open-vms = "OpenVMS"
sun = "SunOs"
beos = "BeOS"
os/2 = "Os2"
irix = "IRIX"
plan9 = "plan9"
unix = "Unix"
x11 = "Unix"

I believe that covers most of the popular OS'es out there

redtailboa 01-11-2006 02:03 AM

Let me know if you want a larger list of browsers and spiders, I got that information as well (altavista,alltheweb,euroseek,hotbot,lycos)

DementedMindz 01-11-2006 12:50 PM

how long does it take before stats show i had it installed for a bit now and i dont see any of these stats, Display Colors & Resolutions | Countries & Regions | Browsers & Operating Systems | Referring Sites

redtailboa 01-11-2006 01:26 PM

Quote:

Originally Posted by DementedMindz
how long does it take before stats show i had it installed for a bit now and i dont see any of these stats, Display Colors & Resolutions | Countries & Regions | Browsers & Operating Systems | Referring Sites

It should be no more then 1 hour before the stats show up.

Go into your vbulletin admin "Scheduled Task->Scheduled Task manager" section and look to see if "psiStats 2006 Hourly Update" is there. If its not, you need to add it. Here are the details:
Title: psiStats 2006 Hourly Update
Day of the Week: *
Day of the Month: *
Hour: *
Minute: 15 - - -
Log Entries: No
Filename: ./includes/cron/psistats_update.php

After that, give it about 15 minutes and browse your site, then go back to this section and manually run it. You should have some stats show up after that, if you do not you got something else going on.

Natas

DementedMindz 01-11-2006 01:39 PM

ok i tried that and when i run it i get a error

Database error in vBulletin 3.5.3:

Invalid SQL:
LOCK TABLES psistats_cache READ, psistats_data READ;

MySQL Error : Access denied for user: 'xxxxxxxxxxxx' to database 'xxxxxxxxxxxx'
Error Number : 1044
Date : Wednesday, January 11th 2006 @ 08:31:19 AM
Script : http://www.xxxxxxx.com/admincp/crona...cron&cronid=17
Referrer : http://www.xxxxxxxx.com/admincp/cronadmin.php?do=modify
IP Address : xx.xxx.xxx.xx
Username : xxxxxxxxxx
Classname : vb_database

redtailboa 01-11-2006 01:46 PM

thats a odd error to get, In fact I'm surprised you have not got that error with other tables. Make sure the db user has full rights to your vb database. That's all I can really say, unless that error is just reporting something totally wrong

DementedMindz 01-11-2006 01:47 PM

yeah i made sure i have full permissions i have also checked to make sure all files are there on install and everything is there it just dont seem to run the cron

DementedMindz 01-11-2006 03:27 PM

anyone know how to fix that error? cause all it keeps doing is emailing me telling me of that error everytime it trys to run...

firstrebel 01-11-2006 03:31 PM

Quote:

Originally Posted by DementedMindz
anyone know how to fix that error? cause all it keeps doing is emailing me telling me of that error everytime it trys to run...

Is this happening even after you have done the vB bug fix in my post #166

Bob

DementedMindz 01-11-2006 03:34 PM

is that a bug fix i just see it saying go to vbulletin.com to check out the errors they are having... its only this mod when it runs the cron

DementedMindz 01-11-2006 03:36 PM

only thing i seen on that post was to remove this $vbulletin->db->close(); is that true?

DementedMindz 01-11-2006 03:37 PM

well never mind thats not even in my file so it aint that...

firstrebel 01-11-2006 03:53 PM

Quote:

Originally Posted by DementedMindz
only thing i seen on that post was to remove this $vbulletin->db->close(); is that true?

It is only in vB 3.5.3

Bob

DementedMindz 01-11-2006 04:00 PM

and thats what im running Your version of vBulletin (3.5.3) is up-to-date.


All times are GMT. The time now is 01:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02749 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete