| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
anne
Joined: 21 Dec 2007 Posts: 21
|
Posted: 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

Joined: 16 Oct 2006 Posts: 831
|
Posted: 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 |
|
 |
anne
Joined: 21 Dec 2007 Posts: 21
|
Posted: 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
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |