• Just installed the newest version today and got nothing but a white screen saying ‘cant open file’.

    server logs show:

    fopen(/wp-content/plugins/buddypress-ajax-chat/bp-chat/config/bp-chat-config.php): failed to open stream: Permission denied in /wp-content/plugins/buddypress-ajax-chat/bp-chat.php on line 631

    first time seeing this error on anything, so not sure how to proceed

    http://wordpress.org/extend/plugins/buddypress-ajax-chat/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Make sure you chmod 777 the bp-chat/config directory.
    It needs to make two config files.

    I had to do the same thing…wish there was a better way…

    I added a check for this in the install now as well. You’ll get a nice error screen saying what to do.

    Ideally, I’d like to fail the install and show an error message, but I don’t know how. I tried WP_Error, but that didn’t do it.

    Any ideas? Or does this work for you?

    Thread Starter Anointed

    (@anointed)

    Installed newest version today.

    Now I get the server error:
    PHP Warning: AJAXChatMySQLiQuery::AJAXChatMySQLiQuery(): Couldn’t fetch mysqli in /wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/lib/class/AJAXChatMySQLiQuery.php on line 26

    the members page itself when clicking on chat button says:
    Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM wordpress.ajax_chat_online ORDER BY userName; Error-Report: Error-Code:

    I did chmod 777 the bp-chat/config directory as noted above…

    –one thing I am unsure of, is everyone talks about the ‘activate sitewide’ when activating plugins. I am running wp 2.9.2 but do not have that option. Everything but buddypress seems to only activate on the blog I activate it on. Not sure if that matters

    I get this error inside the shout box

    Parse error: syntax error, unexpected ‘}’ in /home1/~/public_html/wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/lib/class/CustomAJAXChat.php on line 333

    can any one please help?

    sandeepdude this is how to fix it and some info on the error you are getting. – I’ve submitted this to the author of the plugin as well.

    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

    I’m an idiot…I just checked in the fix for this.

    Thanks,
    Dave

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Buddypress-Ajax-Chat] fopen server error with newest vs.’ is closed to new replies.