phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Stats Error

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 SEO MODS
::  
Author Message
anne



Joined: 21 Dec 2007
Posts: 21

Stats ErrorPosted: Sat Mar 15, 2008 6:00 am    Post subject: Stats Error

Hello, I receive the following error when I made all the edits for showing URL stats:

Code:
[phpBB Debug] PHP Notice: in file /phpbb_seo/phpbb_seo_class.php on line 282: Undefined variable: startime
[phpBB Debug] PHP Notice: in file /phpbb_seo/phpbb_seo_class.php on line 282: Undefined variable: startime
[phpBB Debug] PHP Notice: in file /phpbb_seo/phpbb_seo_class.php on line 282: Undefined variable: startime
[phpBB Debug] PHP Notice: in file /phpbb_seo/phpbb_seo_class.php on line 282: Undefined variable: startime
[phpBB Debug] PHP Notice: in file /phpbb_seo/phpbb_seo_class.php on line 282: Undefined variable: startime
[phpBB Debug] PHP Notice: in file /phpbb_seo/phpbb_seo_class.php on line 282: Undefined variable: startime


It seems like this is the code that has the problem:

Code:
// stats
      $this->seo_stats['format_url_time'] = $this->seo_stats['format_url_time'] + ($this->microtime_float() - $startime);
      $this->seo_stats['format_url_num']++;


With the code error above: the output looks like this.

Code:
Seo : 7233356729.77388 s ( 4345663400284.70 % ) - 6 Titles ( 100.00 % ) - 17 URLs rewritten ( 0.00 % ) - 6 URLs cached (0.00 % - saved 0.0009 s)


I am using the latest Phpbb-seo Premod.
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 831

Stats ErrorPosted: Sat Mar 15, 2008 2:31 pm    Post subject: Re: Stats Error

That's odd, I see it defined in common.php as part of phpBB V3. Did you perhaps delete it?

Code:
<?php
/**
*
* @package phpBB3
* @version $Id: common.php,v 1.214 2007/11/18 15:37:17 naderman Exp $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* Minimum Requirement: PHP 4.3.3
*/

/**
*/
if (!defined('IN_PHPBB'))
{
   exit;
}

$starttime = explode(' ', microtime());
$starttime = $starttime[1] + $starttime[0];

// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);

_________________
Dan Kehn
Back to top
Visit poster's website
anne



Joined: 21 Dec 2007
Posts: 21

Stats ErrorPosted: Sat Mar 15, 2008 6:03 pm    Post subject: Re: Stats Error

Nice! I skip the step to add

Code:
// stats
      $this->seo_stats['format_url_time'] = $this->seo_stats['format_url_time'] + ($this->microtime_float() - $startime);
      $this->seo_stats['format_url_num']++;


And it worked! Thanks!
Back to top
anne



Joined: 21 Dec 2007
Posts: 21

Stats ErrorPosted: Mon Mar 17, 2008 6:39 pm    Post subject: Re: Stats Error

I have another question. ^^

My output looks like this:

Code:
Seo : 0.00086 s ( 0.10 % ) - 0 Titles ( 0.00 % ) - 10 URLs rewritten ( 85.36 % ) - 6 URLs cached (14.64 % - saved 0.0004 s) |


Why is it
Code:
0 Titles ( 0.00 % )
? When I do have some titles rewritten. I don't really know what it means..
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Stats ErrorPosted: Sun Mar 23, 2008 4:39 pm    Post subject: Re: Stats Error

Sorry, but this mod requires to be updated, it's not installable as is with the last version of our mods.

Will do Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 SEO MODS
Page 1 of 1

Navigation Similar Topics

Jump to: