A similar issue was posted as a 4.7 issue (http://drupal.org/node/123119) and it applies to 5.x, as well.
These are a few of the globals that are available on the page:
phpfreechat_connect_at_startups:5:"false";
phpfreechat_frozen_nicks:4:"true";
phpfreechat_heights:3:"330";
phpfreechat_nodeapi_custom_eventi:1;
but none of them have any effect on the plugin.
Roles seem to have no affect either. No users actually have admin privileges like /kick or /ban, even the ones who should.
I have tested this in a clean install of 5.2 with PHPFreechat as the only contrib module. PHPFreechat version is 1.0-beta9.
Parameters: Array
(
[data_private_path] => /var/www/html-chat/files/phpfreechat
[data_public_path] => /var/www/html-chat/sites/all/modules/phpfreechat/phpfreechat/data/public
[data_public_url] => /sites/all/modules/phpfreechat/phpfreechat/data/public
[themepath] => /var/www/html-chat/sites/all/modules/phpfreechat/phpfreechat/themes
[theme_url] => /sites/all/modules/phpfreechat/phpfreechat/themes
[serverid] => 631b44f3fb65e75fa53e209b61ef1d88
[server_script_path] => /var/www/html-chat/sites/all/modules/phpfreechat/handler.php
[server_script_url] => /sites/all/modules/phpfreechat/handler.php
[frozen_nick] => 1
[connect_at_startup] => 1
[height] => 300
[title] => chat test
[channels] => Array
(
[0] => chat test
)
[nick] => admin
[isadmin] => 1
)
Session: Array
(
[form] => Array
(
[c4c895e29bdd828377d49f8411d27366] => Array
(
[timestamp] => 1191953422
[args] => Array
(
[0] => system_modules
)
)
[85906f969e77f8f9ef06ea4ce6fdfdd7] => Array
(
[timestamp] => 1191953434
[args] => Array
(
[0] => system_modules
)
)
)
[pfcuserconfig_631b44f3fb65e75fa53e209b61ef1d88_nick] =>
[pfcuserconfig_631b44f3fb65e75fa53e209b61ef1d88_active] =>
[pfcuserconfig_631b44f3fb65e75fa53e209b61ef1d88_channels] => Array
(
)
[pfcuserconfig_631b44f3fb65e75fa53e209b61ef1d88_privmsg] => Array
(
)
)
Cookies: Array
(
[SESS39eb1c7d7af339fdf2080afece2f0ec7] => tm74kcailguocs4l6ado3j0752
)
Comments
Comment #1
highermath commentedBTW, the settings from Debug Parameters and the ones that I got from globals agree. I had changed them between the two copy/pastes.
The server is running CentOS 5
MySQL database 5.0.22
PHP 5.1.6
Unicode library PHP Mbstring Extension
Web server Apache/2.2.3 (CentOS)
My workstation is running OS X 10.4.10. I tested in Firefox 2.0.0.7 and Safari 2.0.4
Comment #2
permutations commentedSame here. Also, nothing is saved in the phpfreechat table - a related problem?
I'm running Drupal 5.7, and phpfreechat module 5.x-1.0-rc4. I originally used phpfreechat 1.1 and thought maybe 1.0-final would work better, but it doesn't.
Comment #3
permutations commentedThe settings are saved, but you have to clear both the phpfreechat cache and your browser's cache to see them. Here's info on clearing the phpfreechat cache:
http://www.phpfreechat.net/faq#how-to-rehash-the-chat
The parameters in the module don't match 100% the current version of phpFreeChat (v1.1). I thought about updating it, but I don't use any of the parameters so it's more trouble than it's worth. I did get as far as pulling them out of the code, and reformatting them so generate-form.php would work on them. But then I didn't code it.
Here are links to other fixes I posted for phpfreechat:
Database bug (fix this first - blocks bug needs it):
http://drupal.org/node/250069
Blocks bug:
http://drupal.org/node/200962
Scrolling bug in IE 7:
http://drupal.org/node/225162
Comment #4
permutations commentedI fixed all the bugs in the phpfreechat module (a few more than are listed above), updated the module version to 5.x-1.1, and posted the full package on my Web site here:
http://permutations.com/drupal/phpfreechat.php
I emailed the original author of the module about creating a new download, but he never answered me. There were too many changes to track of as individual patches.
Comment #5
permutations commentedThere's a new version with two additional fixes on my Web site (along with many other fixes):
http://permutations.com/drupal/phpfreechat.php
Comment #6
permutations commentedI have a version of the phpFreeChat module on my Web site that fixes many different bugs. I just updated it today. If owahab makes me a module maintainer here on Drupal, I'll integrate the changes here and stop posting them separately:
http://permutations.com/drupal/phpfreechat.php
owahab - please stop deleting this link. It is not helpful to the community.
Comment #7
permutations commentedI just uploaded a new version (http://permutations.com/drupal/phpfreechat.php).
I backed out setting the default timeout to 35000 in the module. It's not working because the "negative number" error is still happening after clearing the cache (/rehash). The timeout needs to be changed to avoid disconnects, and the easiest way to do this is to change it directly in pfcglobalconfig.class.php. phpFreeChat has an integer check in there, and Drupal's form API doesn't have an integer type. I tried to identify the integer strings and change them and it worked in a test file, but not in the module.
pfcglobalconfig.class.php is in the phpFreeChat src directory (it's not a module file).
To change the default timeout, find this variable assignment and change the 20000 to 35000:
To get rid of the negative number error, comment out this code in pfcglobalconfig.class.php:
Comment #8
permutations commentedA version that fixes this problem and more has just been uploaded (1.2).