Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.3k views
in Plugins by

I downloaded everything from this URL, but not working at all in my website.

https://github.com/svivian/q2a-chat-room.git

Please see this sample URL 

http://ibubblenet.com/qa-plugin/q2a-chat-room-master/

It did create database table etc. but not working in web site.

Can someone pelase help?

 

Q2A version: 1.5.3
by
Do you get any errors when posting? Does the chat page load at all?
by
moved by
I tried this link http://ibubblenet.com/qa-plugin/q2a-chat-room-master/qa-chat.php in different web browser but all came out with blank page. Please help.
by
I did what you said by clicking Add Link, it seems to be able to take me to the chat room now, however, when I typed anything in Post text, it lead me to nowhere, and Post button was grayed out. Did I do anything wrong here?

1 Answer

0 votes
by
I think I see the problem - you need to create a link to the chat room URL. You don't link directly to the PHP file.

Under Admin > Pages, next to chat room click "add link" and it will add a link for you.
by
I found the following PHP error in error log file of hosting server.

[06-Nov-2012 12:09:02] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:09:09] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:09:17] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:09:25] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:09:34] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:09:41] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:09:47] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:09:52] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:09:55] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:10:03] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332
[06-Nov-2012 12:10:11] PHP Fatal error:  Call to undefined function  qa_block_words_replace() in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat.php on line 332

/home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/error_log:
[04-Nov-2012 18:51:16] PHP Fatal error:  Class 'qa_html_theme_base' not found in /home5/natural3/public_html/ibubblenet/qa-plugin/q2a-chat-room-master/qa-chat-layer.php on line 7

/home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/error_log:
[04-Nov-2012 20:14:50] PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:14:50] PHP Parse error:  syntax error, unexpected T_STRING in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:15:15] PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:15:15] PHP Parse error:  syntax error, unexpected T_STRING in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:16:45] PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:16:45] PHP Parse error:  syntax error, unexpected T_STRING in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:16:48] PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:16:48] PHP Parse error:  syntax error, unexpected T_STRING in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:17:01] PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:17:01] PHP Parse error:  syntax error, unexpected T_STRING in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:17:08] PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:17:08] PHP Parse error:  syntax error, unexpected T_STRING in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:42:40] PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
[04-Nov-2012 20:42:40] PHP Parse error:  syntax error, unexpected T_STRING in /home5/natural3/public_html/ibubblenet/qa-plugin/phpfreechat-2.0.5/server/index.php on line 6
by
It only works if I comment out this line in qa-chat.php code.

// $msg = qa_block_words_replace( $msg, $blockwordspreg );
by
OK I just made a change that should fix this: https://github.com/svivian/q2a-chat-room

Or you can simply add this line before the call to qa_block_words_replace:
require_once QA_INCLUDE_DIR.'qa-util-string.php';
by
The second option works fine for me, thank you very much!
...