vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbMicroStats: page load time, queries, GZIP and PHP version (https://vborg.vbsupport.ru/showthread.php?t=35811)

Stadler 10-07-2002 03:18 AM

Quote:

Originally posted by Boogle
I have a problem with the db_mysql.php file. Locally everything works, but if I upload to me webserver I get an error, like so:



Any advice?

Hi, I've got the same error, cause I was mixing up
echo "Time before: $beforetime\n";
and
echo "Time after: $aftertime\n";
when lookig for the code to change ...

Just remove
PHP Code:

    }

    
$this->query_id mysql_query($query_string,$this->link_id);
    if (!
$this->query_id) {
      
$this->halt("Invalid SQL: ".$query_string);
    }

    
$query_count++;

    if (
$showqueries) {
      
$pageendtime=microtime();
      
$starttime=explode(" ",$pagestarttime);
      
$endtime=explode(" ",$pageendtime);

      
$aftertime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
      
$querytime+=$aftertime-$beforetime;

      echo 
"Time after:  $aftertime\n"

in your broken db_mysql.php, cause you've left it there.

HTH

btw: I've modified the Hack, so that the adminstats are based on templates, too.

Check the Attachment

Christoff 10-08-2002 10:14 AM

TECK: no problem... i'm sorry... i thought it was ignored or something ;)

Thanx and sorry one more time :)

TECK 10-08-2002 02:14 PM

christoff, what vBulletin version you have?
be aware, there are 2 global.php files in your folders. one in /forum and one in /admin

make sure you edit the correct one. :)

Christoff 10-08-2002 05:41 PM

I already wrote i've edited the right one!

Version number is 2,2,6

TECK 10-08-2002 05:44 PM

you still didnt answer to my question. what vB version you have?

Christoff 10-08-2002 05:49 PM

I'm sorry
you've posted when i was editing it
but in previous post i said that :)

TECK 10-08-2002 06:07 PM

aha. then you should have the line that you miss. please check it, it's at the top of your global.php.

also you should upgrade to vb228, due to security issues. check with vb team for more details.

marocnl 10-14-2002 05:43 PM

I measured my serverload with this hack and it came up with [Server Load: 9.32 ยป 9.46 : 8.66] . Isn't this a little bit 2 much? What's normal?

TECK 10-14-2002 06:44 PM

it's huge.. what are you doing there???? you added some crazy hacks??? normal is 0.5

did you know that some hacks released here actually they are sooo bad written that they simply distroy your server?

Erwin 10-14-2002 08:38 PM

Quote:

Originally posted by marocnl
I measured my serverload with this hack and it came up with [Server Load: 9.32 ? 9.46 : 8.66] . Isn't this a little bit 2 much? What's normal?
If you're on a dedicated server, then you need to look at all your scripts to see which one has a query loop or has bad code in it.

If you're on a shared server, it may not even be your site - it may another site on the same server soaking up all the server load. Either way, that is way over. The CPU on the server is being used at 9 times its capacity.


All times are GMT. The time now is 07:47 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.02442 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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