MChat and the Social Network mod

Discussion in 'Programming' started by Kippykip, Jun 9, 2014.

  1. Kippykip

    Kippykip Get out of my kitchen you flying ass God King

    Messages:
    526
    Likes Received:
    11
    Gender:
    Male
    Mood:
    Pissed off
    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
     

Share This Page