https://www.icyphoenix.com/viewtopic.php?f=29&t=842
-----------------------------------
KugeLSichA
Wed 10 Jan, 2007 13:08

FIXED - Error On admin_statistics.php
-----------------------------------
Hi,

found an error on admin_statistics.php page.

to solve this, do the following

[code linenumbers=false]
#
#-----[ 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);[/code]


-----------------------------------
Mighty Gorgon
Thu 11 Jan, 2007 01:51

Re: Error On admin_statistics.php
-----------------------------------
My [b]admin_statistics.php[/b] has no error and no duplicated code... :roll:


-----------------------------------
KugeLSichA
Thu 11 Jan, 2007 08:32

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
[/quote]


-----------------------------------
Mighty Gorgon
Fri 12 Jan, 2007 02:14

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

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

[codeblock]	$__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);
	}[/codeblock]


-----------------------------------
KugeLSichA
Fri 12 Jan, 2007 13:20

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

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


