The problem seems to be a check for the install in phpfreechat.inc/_phpfreechat_check_files(). it appears to be trying to check stuff using invalid file paths pulled from static php defines at the top of the file, rather than Drupal variables set in the settings.php:
/**
* Define data folders
*/
define('PHPFREECHAT_DATA_DIR', 'files/phpfreechat');
define('PHPFREECHAT_PUBLIC_DIR', 'files/phpfreechat/public');
define('PHPFREECHAT_PRIVATE_DIR', 'files/phpfreechat/private');
At least thats the first thing that looked strange when browsing the module code today.
all our sites are installed using the path format:
drupal5/sites/example.com/files/.....
I wasn't sure what the first variable value should be, but for the PUBLIC & PRIVATE DIR I changed the code and it works:
define('PHPFREECHAT_PUBLIC_DIR', variable_get('phpfreechat_data_public_path', 'files/phpfreechat/public'));
define('PHPFREECHAT_PRIVATE_DIR', variable_get('phpfreechat_data_private_path', 'files/phpfreechat/private'));
I also noticed that clearing the cache, or getting phpfreechat module to refresh its settings never deleted the cache file in ...files/phpfreechat/data/private/cache which still had old path settings in, even thought they had been changed in the Drupal variables.
Comments
Comment #1
owahab commentedComment #2
NewToDruballer commentedI´m not sure, whether this describes really the problem or not, but there is a typo in phpfreechat.inc in line 101
file_delete($indes);in _phpfreechat_nuke()Comment #3
permutations commentedFixed in the current version, 1.2.