vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   VB3 MicroStats (https://vborg.vbsupport.ru/showthread.php?t=62173)

greenhybrid 04-10-2005 05:45 PM

I'm getting the following error. Any idea?
Quote:

Parse error: parse error, unexpected ']' in /home/gh/public_html/discuss/includes/functions.php on line 1997

venomx 04-10-2005 06:55 PM

My site seems to use like 80%+ mysql.. that scares me and I dunno why it does :(

TECK 04-11-2005 04:10 AM

Using some of those vb3 'portals', as frontpage? Is normal, they are known for killing your server with a large number of queries that scan the hole tables, instead of small to the point sections.
Remove the portal and stick with the normal vb3 forumhome.

ChrisLM2001 04-12-2005 04:13 PM

Teck,

Can you add an option of memory used per page (like vB's debug mode) for Admins? Finding it useful in tracking down bloat, and it'll be a handy addition for Admins who are monitoring their memory limits.

Love this mod. Comes in so handy monitoring day-to-day performance at a glance.

Chris

greenhybrid 04-23-2005 06:35 PM

It's been weeks and still no help? :(

PitchouneN64ngc 04-24-2005 12:37 PM

Quote:

Originally Posted by greenhybrid
It's been weeks and still no help? :(

This hack has no problem during the installation. What is the code on the line 1997 in ./includes/functions.php (include 4-5 lines before and after the line 1997)?

greenhybrid 04-24-2005 04:13 PM

I made the replacements again so I could find the line.
PHP Code:

    $ms '<tr align="right">' "\n";
    
$ms .= '        <td class="tcat"' iif($vboptions['allowchangestyles'], ' colspan="2"') . '><div class="smallfont">';
    
$ms .= 'Page generated in ' $totaltime ' seconds (' $msphp ' - ' $mssql ') with ';
    
$ms .= $query_count ' queries</div></td>' "\n";
    
$ms .= '</tr>' "\n"

What was 1997 before I think is 1996 now. That would be
PHP Code:

    $ms .= '        <td class="tcat"' iif($vboptions['allowchangestyles'], ' colspan="2"') . '><div class="smallfont">'


greenhybrid 04-24-2005 04:17 PM

This time when I installed AGAIN I got this error:
Quote:

Parse error: parse error, unexpected T_STRING, expecting '{' in /home/gh/public_html/discuss/includes/db_mysql.php on line 188
Line 188 is the last {
PHP Code:

    function shutdown_query($query_string$arraykey 0)
    {
        global 
$shutdownqueries;

        if (
NOSHUTDOWNFUNC AND !$arraykey)
        {
            return 
$this->query($query_string);
        }
        elseif (
$arraykey)
        {
            
$shutdownqueries["$arraykey"] = $query_string;
        }
        else
        {
            
$shutdownqueries[] = $query_string;
        }
    }    function 
query($query_string$query_type 'mysql_query')
    {
        global 
$query_count$querytime$pagestarttime;

        
$pageendtime microtime();
        
$starttime explode(' '$pagestarttime);
        
$endtime explode(' '$pageendtime); 


PitchouneN64ngc 04-24-2005 04:23 PM

Place the line :

PHP Code:

function query($query_string$query_type 'mysql_query'

At the next line, maybe PHP confuses with the } before.

greenhybrid 04-24-2005 04:35 PM

Then we get a
Quote:

Parse error: parse error, unexpected ')', expecting ',' or ';' in /home/gh/public_html/discuss/includes/db_mysql.php on line 50
PHP Code:

        // connect to db server

        
global $querytime;
        
// do query 



All times are GMT. The time now is 10:42 AM.

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.01352 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
  • (5)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