By kowalke on
I'm trying to get phpFreeChat working on a 4.6 installation. The install seems to have worked--I'm seeing the phpfreechat settings, and I can add chats to different node types. Access rights have been granted for all roles. But, there's no evidence of a chat on any page. I've looked at the pages with both Safari and Firefox on a Mac.
I assume the problem is with the phpFreeChat 0.9.3 install, but I've gone over the install instructions with a comb, and I'm not doing anything unusual.
Any help would be appreciated. Thanks.
Comments
Here are a few things to check
The first is that phpfreechat is only (IIRC) enabled on a per node basis for new nodes. Try creating a new node and see if that helps.
The second is to turn on the debug output in settings. This should (even if the chat is not activated) print out the various variables that are being sent to the chat script. There are various paths etc that we might want to check - could you paste this output here?
Note that the chat should work with the settings at their defaults (blank) - specifying other paths is only needed really for special cases.
Finally, I have found some issues with the following code on different server platforms. Try switching to the path generation by commenting/uncommenting as appropriate.
Hope this helps - let me know how you get on!
Spot on!
Owen,
Thanks for the help! I got it working. The problem was a combination of testing on a node that predated the chat install combined with a malfunctioning "Show Chat Room > Always" setting.
The main problem was that chat rooms only seem to appear for node types set to "Show Chat Room > Per Node". When set to "Always", the node type summarily ignores the existence of the phpfreechat module--there's no feedback, even in debug, and nothing shows up in the rendered page code. Setting "Show Chat Room" to Always is equivalent to the Never setting, at least on my installation. Chats do work brilliantly when the node type is set to Per Node, though, and then enabled on the node during content creation.
My second problem was not testing on a new node. I set the Event node type to Per Node and the Story node type to Always so I could see if either worked. And I tried the chat on a new Story node, which didn't work because it was set to the malfunctioning Always setting. But, I guess I neglected to try creating a new Event node--when I tried it now, it worked!
I subsequently got chat working on story nodes once I changed its Show Chat Room setting from Always to Per Node.
I can live without the Always setting, so your help has been invaluable, Owen--I seriously had given up on the module unless I heard back from somebody with a working installation.
My only question now is whether the Always setting works for everybody but me, or if that's a feature that's yet to be implemented.
Thanks!
Same
I ran onto the same Always/per node issue but once I switched to the "per node" everything worked great.
I had the same issue
I had the same issue regarding the rooms, they didn't appear at all.
After finding this post, "per node" works for me, I'd rather have the "always" setting though. ;-)
Also...I had to alter the absolute path as per the snippet you posted. Thank you for that too.
edit:
hmm maybe I didn't need to change the absolute path as I just changed it back to default and it's working.
I am getting errors as well
I am getting errors as well and have set the settings to Per Node. It is showing the chat box in the node but I got a pop up warning and in the debug panel was the following:
Warning: require_once(/mysite.com/modules/phpfreechat/phpfreechat/debug/../lib/xajax_0.2.1/xajax.inc.php) [function.require-once]: failed to open stream: No such file or directory in /mysite.com/modules/phpfreechat/phpfreechat/debug/console.php on line 3
Fatal error: require_once() [function.require]: Failed opening required '/mysite.com/modules/phpfreechat/phpfreechat/debug/../lib/xajax_0.2.1/xajax.inc.php' (include_path='.:/usr/local/php5/lib/php') in /mysite.com/modules/phpfreechat/phpfreechat/debug/console.php on line 3
I haven't tried replacing the above code because I don't know where to put it :)
~~~~~~~~~~~~~~~~
Kris
Current projects: www.cribfax.com
www.myabatherapist.com
Can't get phpmodule to work with drupal
I've tried everything and keep getting the following error:
phpFreeChat script is not found.
Before you can use this module you must download the script from http://www.phpfreechat.net/ and extract in to the /modules/phpfreechat/phpfreechat directory on your web server.
See INSTALL.txt for more details
I have the module installed in phpfreechat and the phpfreechat itself was extracted to phpfreechat/phpfreechat I'm running drupal 4.7
Please help !
got it to work
I realized I wasn't using the right version of phpfreechat..... Gotta use the version described in the install.txt .... for anyone else having the same problem
PHP free chat
I have add the PHP code into my site, according to instructions provided and have add the chat room to a node all is fine, except when I click on the link associated with the node that has the chat software attached I get the following
Please correct these errors:
Error: undefined or obsolete parameter 'theme_url', please correct or remove this parameter
Can any one help???