phpBB-TweakS
 
Advanced Search
   
 
Home Downloads FAQ Register FAQ Memberlist Usergroups Ranks
 
 

Please help us to develop!

 
It appears you are using a browser that is not based on Internet Explorer, this means you are not viewing the web as good as you should be. Other browsers might try to immitate Internet Explorer, but none can parse the web as it should like Internet Explorer can. So view the web as it was meant to be with Avant Browser!
         

phpBB-TweakS Forum Index Footer Hack A small fix
Display posts from previous:   
Half Thread Topic  Fully Thread Topic  Download Topic
      All times are GMT - 5 Hours  
Post new topic  Reply to topic

Fri Jun 15, 2007 8:01 pm
Author Message
Makien
New TweakeR
New TweakeR


Usa Maryland

Joined: 20 Apr 2006
Posts: 2
Words Posted: 208
Average Post: 104.00

Location: MD - USA

Post subject: A small fix Reply with quote

I notice a problem when I installed this mod. I was getting a division by zero and the display was crazy in the ammount of secs.

Quote:
|- Load Time: 1181955428 Seconds -|- 31 Queries -|- Query Log -|- 0 Page(s) Viewed Today -|
|- Todays Queries: 0 -|- Highest Load: 0 Queries On Dec. 31, 1969 -|
|- SQL Load: 0% Time: 0 -|- PHP Load: 100% Time: 118195542.8 -|- Debug: On -|- GZIP: Disabled -|


Now as secs goes if you break it down this gets into months, not realistic. Well whenever I have a weird problem with a mod I look at CH first, low and behold viola.

In the install of CH it has
Code:
//-- mod : categories hierarchy ------------------------------------------------
//-- add
$starttime = microtime();
$trc_loc_start = $trc_loc_end = 0;
//-- fin mod : categories hierarchy --------------------------------------------
added into the common.php file. This conflicts with the other $starttime. So to fix it just find the section above and replace it with
Code:
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
$trc_loc_start = $trc_loc_end = 0;
this will fix the whole division by zero and enormous secs.


Mind you this is for CH users only
Post #1
      Back To Top  

Tue Jun 19, 2007 3:56 pm
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

You can actually change my $starttime to $start_time in the header & footer files to resolve this w/o messing with the CH codes.
Post #2
      Back To Top  

 
         

Post new topic  Reply to topic

phpBB-TweakS Forum Index Footer Hack A small fix
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


      Back To Top  

Page 1 of 1
Jump to:  
 
Protected by phpBB Security © phpBB-TweakS
phpBB Security Has Blocked 3,237 Exploit Attempts.

· Archive · Sitemap: Index · Sitemap: Forums · Sitemap: Topics · Sitemap: Posts ·

:: [ Load Time: 2.8 Seconds ] :: [ 29 Queries ] :: [ 3,529 Page(s) Viewed Today ] ::
:: [ Todays Queries: 98,695 ] :: [ Highest Load: 1,396,429 Queries On May. 08, 2007 ] ::
:: [ SQL Load: 61% Time: 1.7 ] :: [ PHP Load: 39% Time: 1.1 ] :: [ Debug: On ] :: [ GZIP: Enabled ] ::
:: The server last rebooted 80 days, 2 hours, 10 minutes, 45 seconds ago. ::

The phpBB[Network]!
       
Powered by phpBB 2.0.* © 2001, 2002 phpBB Group
Avalanche style by What Is Real © 2004