MChat and the Social Network mod

Kippykip

CEO of cancelled
cringge
Dear OTHER PHPBB PEOPLE HAVING DIS PROBLEM
Code:
Fatal error: Cannot redeclare mchat_cache() (previously declared in *\includes\functions_mchat.php:25) in *\includes\functions_mchat.php on line 41
This problem happens when MChat is install with the Social Media Mod and you visit the MChat tab in the UCP

To fix, open includes\hooks\hook_mchat.php

Find the line which says
Code:
if(!function_exists('mchat_cache'))
{
	include ($phpbb_root_path . 'includes/functions_mchat.' . $phpEx);
}
and comment out the include like so

Code:
if(!function_exists('mchat_cache'))
{
	//include ($phpbb_root_path . 'includes/functions_mchat.' . $phpEx);
}

No MORE error

EDIT: A random error happened ogretime
I forget what the error was but here's how to FIX

Find:
Code:
if (($config_mchat = $cache->get('_mchat_config')) === false)
{
	mchat_cache();
}

Comment out the mchat_cache();

Code:
if (($config_mchat = $cache->get('_mchat_config')) === false)
{
	//mchat_cache();
}

Den H0peFu1Y n0 errors for the future
 
Top