FIXED - Error On admin_statistics.php


Subject: FIXED - Error On admin_statistics.php
Hi,

found an error on admin_statistics.php page.

to solve this, do the following

Code: [Download] [Hide] [Select]
#
#-----[ OPEN ]------------------------------------------
#
adm/admin_statistics.php
#
#-----[ DELETE ]------------------------------------------
#
# arround line 840 this lines are double
#
$__language = $board_config['default_lang'];

if (!@file_exists(@realpath($phpbb_root_path . $__stats_config['modules_dir'] . '/' . $__module_name . '/lang_' . $__language . '/lang.' . $phpEx)))
{
$__language = 'english';
}
include($phpbb_root_path . $__stats_config['modules_dir'] . '/' . $__module_name . '/lang_' . $__language . '/lang.' . $phpEx);

Subject: Re: Error On admin_statistics.php
My admin_statistics.php has no error and no duplicated code... :roll:

Subject: Re: Error On admin_statistics.php
No Luca, you still have ;-)

went into ACP -> Statistics -> Statistics Modules -> Edit the Month Statistics (only as example, the error is displayed by all stat modules) and you see the following error:

Quote:

Warning: main(./../includes/stat_modules/forum_index/lang_english/lang.php) [function.main]: failed to open stream: No such file or directory in /web/htdocs/www.icyphoenix.com/home/adm/admin_statistics.php on line 847

Warning: main() [function.include]: Failed opening './../includes/stat_modules/forum_index/lang_english/lang.php' for inclusion (include_path='.:/php/lib/php/') in /web/htdocs/www.icyphoenix.com/home/adm/admin_statistics.php on line 847

Subject: Re: Error On admin_statistics.php
I should have fixed it...

This is that part of code how should be changed...

Code: [Download] [Hide] [Select]
$__language = $board_config['default_lang'];

if (!@file_exists(@realpath($phpbb_root_path . 'language/lang_' . $__language . '/lang_statistics.' . $phpEx)))
{
$__language = 'english';
}

if (@file_exists(@realpath($phpbb_root_path . 'language/lang_' . $__language . '/lang_statistics.' . $phpEx)))
{
include($phpbb_root_path . 'language/lang_' . $__language . '/lang_statistics.' . $phpEx);
}

$__language = $board_config['default_lang'];

if (!@file_exists(@realpath($phpbb_root_path . $__stats_config['modules_dir'] . '/' . $__module_name . '/lang_' . $__language . '/lang.' . $phpEx)))
{
$__language = 'english';
}

if (@file_exists(@realpath($phpbb_root_path . $__stats_config['modules_dir'] . '/' . $__module_name . '/lang_' . $__language . '/lang.' . $phpEx)))
{
include($phpbb_root_path . $__stats_config['modules_dir'] . '/' . $__module_name . '/lang_' . $__language . '/lang.' . $phpEx);
}

Subject: Re: Error On admin_statistics.php
ok now it works here on IP ACP also. great.

thx MG

Subject: Re: FIXED - Error On admin_statistics.php
Great!


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1723s (PHP: 10% SQL: 90%)
SQL queries: 13 - Debug Off - GZIP Enabled