Posted by hectorplus on December 8, 2007 at 7:21am
7 followers
Jump to:
| Project: | phpfreechat |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I just downloaded the latest code, run the update, thinks went well.
The chat loads, but i am missing the right-side-bar now, the box where it shows who is connected, the title of my chat changed from "Chatroom" to "My chat", even though i re-saved the settings in SiteConfig > phpfreechat, it appears that it is not saving it.
Right after the textbox, i see "Missing parameter (/join {channelname})", when i try to send a message, it disappears then i see 'You must be connected to send a message".
(i even deleted the files/phpfreechat, did not do anything)
Thinks were working just fine before this latest update.
Comments
#1
Add me to the same incident ...
#2
Same thing is happening with my set up after installing rc4 for the first time. I am on Drupal 5.5 with PostgreSQL. This looks like a great module but I just can't get it to work yet.
#3
I am on the same version but using Mysql.
Anyway - after /join chatroom I can chat.
But I also saw some strange things as Date/time 01/01/1970 00:00. After disconnecting and connecting again, I got the correct date/time.
#4
To #3, I'm not sure where you're applying /join. I tried doing that a number of ways and either end up with a Page Not Found or a non-working chat room.
I also noticed that when creating a "Chat" content type and selecting to allow the editor to specify a different title and channel that there aren't any chat settings when I go to add/node for this new content type. I'm not certain if that is another symptom of the problem or if anyone is seeing this as well.
#5
Reply to #4:
phpfreechat is loading in my installation but is not changing to the default chat room.
To change to the chat room, I need to apply the "/join chatroom" command next to my user nick.
(same input box as the chat itself).
I also created a new content type "chat", but was able to tick the boxes for chat in the type descryption.
If you do not see any chat related tick boxes, as described in the readme file of the phpfreechat module pack, the installation seems to be wrong.
maybe you need to start over ..
(mmh .. not sure, but is PostgreSQL supported ??)
#6
Hey folks-- had the same problem here; managed to work around it. Only been playing drupal and phpfreechat for about 20 hrs now & haven't spaghetti'd through it all yet, so it may be a bit hack-ish, but it has the side benefit of actually working. I modified the code in (phpfreechat)/phpfreechat/themes/default/chat.js.tpl.php at line 69 from:
window.onload = function () {pfc = new pfcClient();
if (pfc_isready) pfc_loadChat(pfc_theme);
}
to:
window.onload = function () {pfc = new pfcClient();
if (pfc_isready) {
pfc_loadChat(pfc_theme); <?php
foreach ($c->channels as $iFixeredIt) {
echo "\n setTimeout(\"pfc.sendRequest('/join ".$iFixeredIt."')\", 1000)\n";
} ?>
}
It basically pauses a second, then flips through all your default channels and joins them. For some reason the constructor for this thing is not joining the channels like it should when called from drupal, and I couldn't figure out why. The prepackaged demos auto-join fine in standalone mode. Either way, this will get you rolling until someone more familiar can fix it right. In fact, if someone does manage to get it right at any time in the future, shoot an email to henschel@capaccess.org with what the heck was really wrong. It might grow my hair back @8-)
-Matt
#7
(phpfreechat)/phpfreechat/themes/default/chat.js.tpl.php at line 69 from:
window.onload = function () {pfc = new pfcClient();
if (pfc_isready) pfc_loadChat(pfc_theme);
}
to:
window.onload = function () {pfc = new pfcClient();
if (pfc_isready) {
pfc_loadChat(pfc_theme); <?php
foreach ($c->channels as $iFixeredIt) {
echo "\n setTimeout(\"pfc.sendRequest('/join ".$iFixeredIt."')\", 1000)\n";
} ?>
}
#8
upping the 1000 to 1500 or so may be necessary, or may be just voodoo.
#9
I don't think this is an issue with the current version just uploaded, 1.2.
#10
I'm having the issue with the latest version, fresh install. Any clues?
#11
If you still having the same problem, set default channel name in phpFreeChat module settings. (Home › Administer › Site configuration > phpFreeChat).