Viewing 3 replies - 1 through 3 (of 3 total)
  • Same problem here:
    Parse error: syntax error, unexpected ‘}’ in /home2/xxxxxxxxxx/public_html/wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/lib/class/CustomAJAXChat.php on line 333

    Latest update to pluging is broke v1.2.3.

    The file buddypress-ajax-chat\bp-chat\chat\lib\class\CustomAJAXChat.php is missing a { as well as the new fuction doesn’t work.

    Line 92 has “if (!$this->getRequestVar(‘logout’) || (isset($this->loggedin_user_id) && $this->loggedin_user_id == 0))”

    it is missing the start {

    Also this logout function is sending the chat nuts, it logs in to chat and then logs out instantly.

    I’ve commented it out to make v1.2.3 work.

    So the code I’ve changed starting from line 87 looks like :

    function initCustomRequestVars() {
    // Auto-login phpBB users:
    if(!$this->getRequestVar(‘logout’) && (isset($this->loggedin_user_id)) && ($this->loggedin_user_id != 0)) {
    $this->setRequestVar(‘login’, true);
    }
    // if (!$this->getRequestVar(‘logout’) || (isset($this->loggedin_user_id) && $this->loggedin_user_id == 0)) {
    //	$this->setRequestVar(‘logout’, true);
    //}
    }

    HTH some people.
    Cheers
    bOing / Banfi

    Wicked wicked wicked thanks bOing:)

    I just checked in 1.2.4 to fix this.

    Thanks,
    Dave

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Buddypress-Ajax-Chat] Error on upgrade’ is closed to new replies.