I installed on 4.7.3 and when I create a chat node i get foll errors

warning: unlink(/home/zakereen/public_html/bohranet/files/phpfreechat/private//cache/pfcglobalconfig_f35eaaeb8e50734814ffbdd0c0be5b34) [function.unlink]: No such file or directory in /home/zakereen/public_html/bohranet/modules/phpfreechat/phpfreechat/src/pfcglobalconfig.class.php on line 134.
warning: touch() [function.touch]: Unable to create file /home/zakereen/public_html/bohranet/files/phpfreechat/private//cache/pfcglobalconfig_f35eaaeb8e50734814ffbdd0c0be5b34_lock because No such file or directory in /home/zakereen/public_html/bohranet/modules/phpfreechat/phpfreechat/src/pfcglobalconfig.class.php on line 546.

Comments

jeremy@jeremye77.com’s picture

I get this exact same error (different file paths of course)

owen barton’s picture

Hi All,

Thanks for your bug report!
Could you please include your server and client operating system/version and browser, module and phpFreeChat version, together with the output of 'Debug Parameters'.

Thanks!

jeremy@jeremye77.com’s picture

var xajaxRequestUri="http://www.wordcensored.net/modules/phpfreechat/handler.php?title=main room&channels=Chat Test&data_private_path=/homepages/28/d153095431/htdocs/website/files/phpfreechat/private/&data_public_path=/homepages/28/d153095431/htdocs/website/files/phpfreechat/public/&data_public_url=http://www.wordcensored.net/files/phpfreechat/public/&themeurl=http://ww...";

I really think the above line has something to do with it.

mcreature’s picture

Getting same error when trying to create first chat room
used page node as type
drupal V.473
php v. 444
Used latest phpfreechat module as of this righting.
Tried phpfreechat versions = stable, beta5, and beta 6, All file folders renamed to phpfreechat
the Phfreechat module does not find the stable version? the beta verions 5 and 6 get found but get the same message as posted here.

owen barton’s picture

Hi All,

As the install file mentions, this module has only been tested with phpfreechat 1.0 beta 4. There are some big changes in beta 5/6, and I haven't caught up with them yet (patches are very welcome!) - hence the problems you are seeing. I am not sure what s going on here yet - the request in #3 looks fine as far as I can see!

If you retest with beta 4 remember to visit /admin/settings/phpfreechat to clear the various caches before attempting to create a new chat node.

Thanks!
- Owen

kweisblatt’s picture

Hi,

At first I had trouble installing, but got it, so you can disregard my email Grugnog2. I am however getting the following error when creating a new node:

warning: main(/modules/phpfreechat/phpfreechat/src/../lib/utf8/utf8.php): failed to open stream: No such file or directory in /modules/phpfreechat/phpfreechat/src/phpfreechat.class.php on line 27.

It actually does create the node, but when I click on it, it is a blank page. When I disable chat for that node, I can view the node.

I have Drupal 4.7 and the recommended PHP FreeChat beta 1.0 4

I am trying to create chat rooms by state. I created a cck page called "Chat by State" and clicked to "always show chat rooms."

Then I create a new page for each state. For example "newyork." And like I mentioned above, it simply doesn't work.

I hope I can get it to work, this is an awesome module!! :D

Kris

gsh2000’s picture

Drupal 4.7.3 + phpfreechat beta 6

changing /files/phpfreechat permission to 777, corrected some problems.. but still getting:

warning: touch() [function.touch]: Unable to create file files/phpfreechat/chat/chat/messages.data because No such file or directory in public_html/modules/phpfreechat/phpfreechat.inc on line 69.
warning: touch() [function.touch]: Unable to create file files/phpfreechat/chat/chat/messages.index because No such file or directory in public_html/modules/phpfreechat/phpfreechat.inc on line 70.

Drupal node IS created - but no chat. In files/phpfreechat/chat/chat/ --- second "chat" is my node Title.

modules/phpfreechat/phpfreechat/demo/demo1_simple.php -- appears to work ok!

kweisblatt’s picture

Just a note: this module was tested only with beta 4, maybe that's why you are getting those errors. Although, I am running the correct versions for both and I am still getting errors myself :)

gsh2000’s picture

Does anyone have PHPFREECHAT working with ANY version/config...?

The test modules/phpfreechat/phpfreechat/demo/demo1_simple.php appears to function OK, but not on a NODE.

GARRY, Los Angeles, USA

owen barton’s picture

I have successfully tested this module with phpfreechat beta 4 on Ubuntu, Debian and Openwall linux and also Windows XP running XAMPP.
It is also running successfully for several months on a site with over 10000 active users.

beta 5 and beta 6 have known bugs right now (patches are very welcome!), so don't expect them to work out of the box. If you switch versions you will likely have caching issues, so make sure you delete the files/phpfreechat folder and clear your browsers cookies (both store cached settings).

Try beta 4 with a clean Drupal install (and clean cookies!) and report if you find any probelms. Please include your server and client operating system/version and browser, module and phpFreeChat version, together with the output of 'Debug Parameters'.

Thanks!

gsh2000’s picture

phpfreechat BETA 4 / Drupal 4.7.3

Operating system Linux
Kernel version 2.6.17.6-ts.grh.mh.i386
Machine Type i686
Apache version 1.3.37 (Unix)
PHP version 5.1.6
MySQL version 4.1.21-standard

IE V6.0.2
WIN/XP

Re-installed phpfreechat BETA 4
deleted files/phpfreechat DIR
re-installed Drupal module (deleted previous MySQL phpfreechat table + mySQL system phpfreechat entry)

Checked all DIR permissioms....

No luck...files/phpfreechat NOT recreated.

see here
http://www.ijoo.org/modules/phpfreechat/phpfreechat/demo/

GARRY

crobotti’s picture

phpfreechat.module
Changes remove the slashbar at the end of the lines /private, /public, /public/themes lines 249 to 253, if you get themeurl error comment the $params['themeurl'] line:

// Configure file paths
$params['data_private_path'] = getcwd() . '/' . file_create_path('phpfreechat') . '/private';
$params['data_public_path'] = getcwd() . '/' . file_create_path('phpfreechat') . '/public';
$params['data_public_url'] = $base_url . '/' . file_create_path('phpfreechat') . '/public';
//$params['themeurl'] = $base_url . '/' . file_create_path('phpfreechat') . '/public/themes';
$params['serverid'] = md5($base_url); // Calculate a unique id for this chat

Now i am getting error when the session_initiate() is calling from handler.php but the path error have been solved.

owen barton’s picture

Status: Active » Fixed

I have just committed some major rewriting of the file-path code to the 4.7 branch, and also added a Drupal 5.0 version of the module. Please try this version and report back how you get on!
Please reopen this issue if you have the same problem with this version.

NOTE: This version _only_ works on the (yet to be released) beta 9 of phpfreechat - and will not work with beta 8 or less. You will need to checkout the latest phpfreechat version from SVN. See module INSTALL.txt for more details.

Anonymous’s picture

Status: Fixed » Closed (fixed)