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-08-2006 01:41 AM

I'll take a deeper look at it... For now, just to pinpoint the problem: Those of you who have the problem - what other hacks do you have installed?

Rickie3 01-08-2006 02:06 AM

i'm not sure if i'm correct here,i removed the headinclude template just out of interest,and my WOL showed correctly,and that is with psiStats still enabled,could maybe a bug in headinclude template??

MooMan65 01-08-2006 03:08 AM

This is interesting: I disabled the online_location_process plugin so it became an 'unknown' location, and I noticed that all the people who were viewing the statistics (way more than there actually were), it was at the location:

Code:

/psistats.php?do=update_info
Does that mean anything to you? Probably some sort of background task that is always being picked up? I checked the psistats.php file and an 'update_info' section doesn't even exist, only 'updateinfo'...

On another issue, I've noticed that the headinclude additions seems to slow down the loading of every page by about 6-10 seconds or so. When I remove it pages load fine, so it's definitely related to what the block of code does. Unfortunately, this issue alone is enough to make me unable to keep this hack installed as I don't want to be inundated with complaints. ;) Shame really, as it is great to finally have a stats hack for v3.5. Awesome job. :)

Oh, I'm also have the issue with the Display Colours & Resolutions page not displaying any information (the others are all counting up as they should though), and this is even after a few hours.

EDIT: Ah HA! In the headinclude code at this point, this:

PHP Code:

req.send("$session[sessionurl]do=update_info&width=" self.screen.width "&height=" self.screen.height "&depth=" self.screen.colorDepth); 

should be (remove the underscore):

PHP Code:

req.send("$session[sessionurl]do=updateinfo&width=" self.screen.width "&height=" self.screen.height "&depth=" self.screen.colorDepth); 

If I'm not mistaken? You were calling a non-existant section? After changing that I ran the cron job and the hack is now recording resolution and depth information, AND the page loading time issue has disappeared too! :)

That still doesn't fix the issue of everyone being redirected to the background task which shows up in Who's Online, and I'm not sure how to fix that one...

Rickie3 01-08-2006 03:48 AM

ok i found the WOL problem its working great for me now original headinclude template as below
Code:

<script type="text/javascript">
if (window.XMLHttpRequest)
{
        req = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
        req = new ActiveXObject("Microsoft.XMLHTTP");
}

if (typeof req == "object")
{
        req.open("POST", "psistats.php", false);
        req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        req.send("$session[sessionurl]do=update_info&width=" + self.screen.width + "&height=" + self.screen.height + "&depth=" + self.screen.colorDepth);
}
</script>

the error was here
Quote:

req.open("POST", "psistats.php", false);
should have = in front of false,try this headinclude template below see if it fixes your problem

Code:

<script type="text/javascript">
if (window.XMLHttpRequest)
{
        req = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
        req = new ActiveXObject("Microsoft.XMLHTTP");
}

if (typeof req == "object")
{
        req.open("POST", "psistats.php", =false);
        req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        req.send("$session[sessionurl]do=updateinfo&width=" + self.screen.width + "&height=" + self.screen.height + "&depth=" + self.screen.colorDepth);
}
</script>


MooMan65 01-08-2006 04:21 AM

Interesting, that did seem to work! So if you apply both our changes it should solve these two recent issues? :)

Rickie3 01-08-2006 04:47 AM

Quote:

Originally Posted by MooMan65
Interesting, that did seem to work! So if you apply both our changes it should solve these two recent issues? :)

it appears to have,working perfectly so far

firstrebel 01-08-2006 08:56 AM

I have resinstalled this again this morning, and was monitoring 'top' throughout the install.

All was OK until the last part where I installed the product. Apache started to use up to 98% CPU utilisation and very rarely dropped below about 45%.

Did the mod that MooMan65 mentioned in #104 = no change.

Added the mod from Rickie3 in #105 = bingo. CPU utilisation dropped back to single figures and remained low.

The only other thing I noticed is that CPU utilisation shoots up to about 45% when I click 'Quick Links' > 'Site Statistics' and then drops again. Otherwise it seems to be going OK. Will check the CPU util in about an hour or so to see what it does when I go through all the options.

Bob :classic:

firstrebel 01-08-2006 09:09 AM

:tired:

Just checked my email and got this error again
Quote:

Database error in vBulletin 3.5.3:

Invalid SQL:
TRUNCATE TABLE `psistats_cache`;

MySQL Error : Table 'vb_forum.psistats_cache' doesn't exist
Error Number : 1146
Date : Sunday, January 8th 2006 @ 10:56:09 AM
Script : http://www.volvoclub.org.uk/forum/cron.php?&rand=330997
Referrer : http://www.volvoclub.org.uk/forum/sh...ad.php?t=14496
'vb_forum.psistats_cache' does not indeed exist but 'vb_psistats_cache' does???

Bob

Rickie3 01-08-2006 09:20 AM

Quote:

Originally Posted by firstrebel
:tired:

Just checked my email and got this error again


'vb_forum.psistats_cache' does not indeed exist but 'vb_psistats_cache' does???

Bob

did you update to v1.3.0?????? i just checked your board its showing v1.2.8

firstrebel 01-08-2006 10:22 AM

I saw that also, but I did a clean install of 1.3.0 and used overwrite when I installed the product.

Bob


All times are GMT. The time now is 02:25 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.01409 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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