FIXED - Error On admin_statistics.php »  Show posts from    to     

Icy Phoenix


Old Bugs - FIXED - Error On admin_statistics.php



KugeLSichA [ Wed 10 Jan, 2007 13:08 ]
Post subject: FIXED - Error On admin_statistics.php
Hi,

found an error on admin_statistics.php page.

to solve this, do the following

Code: [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);


Mighty Gorgon [ Thu 11 Jan, 2007 01:51 ]
Post subject: Re: Error On admin_statistics.php
My admin_statistics.php has no error and no duplicated code...


KugeLSichA [ Thu 11 Jan, 2007 08:32 ]
Post 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


Mighty Gorgon [ Fri 12 Jan, 2007 02:14 ]
Post subject: Re: Error On admin_statistics.php
I should have fixed it...

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

Code: [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);
}


KugeLSichA [ Fri 12 Jan, 2007 13:20 ]
Post subject: Re: Error On admin_statistics.php
ok now it works here on IP ACP also. great.

thx MG


Mighty Gorgon [ Wed 31 Jan, 2007 01:52 ]
Post subject: Re: FIXED - Error On admin_statistics.php
Great!




Powered by Icy Phoenix