Stats Error

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

Stats Error

Postby anne » Sat Mar 15, 2008 6:00 am

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

Code: Select all
[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: Select all
// 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: Select all
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.
anne
 
Posts: 21
Joined: Fri Dec 21, 2007 6:24 am

Advertisement

Postby HB » Sat Mar 15, 2008 2:31 pm

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

Code: Select all
<?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
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1519
Joined: Mon Oct 16, 2006 2:25 am

Postby anne » Sat Mar 15, 2008 6:03 pm

Nice! I skip the step to add

Code: Select all
// 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!
anne
 
Posts: 21
Joined: Fri Dec 21, 2007 6:24 am

Postby anne » Mon Mar 17, 2008 6:39 pm

I have another question. ^^

My output looks like this:

Code: Select all
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: Select all
0 Titles ( 0.00 % )
? When I do have some titles rewritten. I don't really know what it means..
anne
 
Posts: 21
Joined: Fri Dec 21, 2007 6:24 am

Postby dcz » Sun Mar 23, 2008 4:39 pm

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

Will do ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests


 
cron