Closed (fixed)
Project:
phpFreeChat integration
Version:
5.x-1.0-rc4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Oct 2007 at 15:43 UTC
Updated:
1 Dec 2008 at 04:06 UTC
The module is ignoring the defined Drupal "File system path" and instead insists on using files/phpfreechat/ which is causing the errors:
Please correct these errors:
* files/phpfreechat/data/private can't be created
* files/phpfreechat/data/private is not writeable
* files/phpfreechat/data/private is not readable
* files/phpfreechat/data/private/cache can't be created
* files/phpfreechat/data/private/cache is not writeable
* files/phpfreechat/data/private/cache is not readable
* files/phpfreechat/data/public/js/cookie.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/pfcgui.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/mousepos.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/md5.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/xajax.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/sprintf2.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/pfcclient.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/prototype.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/compat.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/utf8.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/regex.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/createstylerule.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/pfcprompt.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/myprototype.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/pfcresource.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/activity.js doesn't exist, data_public_path cannot be installed
* files/phpfreechat/data/public/js/image_preloader.js doesn't exist, data_public_path cannot be installed
* cannot create files/phpfreechat/data/public/themes/default
* files/phpfreechat/data/private/chat can't be created
* files/phpfreechat/data/private/chat is not writeable
* files/phpfreechat/data/private/chat is not readable
* files/phpfreechat/data/private/chat/s_29cafd767038193e213c33a91b469da0 can't be created
* files/phpfreechat/data/private/chat/s_29cafd767038193e213c33a91b469da0 is not writeable
* files/phpfreechat/data/private/chat/s_29cafd767038193e213c33a91b469da0 is not readable
Comments
Comment #1
buddaThe following change to phpfreechat_load_params() function worked:
Comment #2
buddaIt seems the ajax callback isn't using the corrected Drupal file path.
The ajax callback is: http://example.com/sites/example.com/modules/phpfreechat/handler.php?pfc...
Using FireBug I can see the same error as above is being returned in the ajax response:
After seeing this i am now wondering where the phpfreechat 1.0-final script should actually be installed to. It appears as if the code is looking for the JavaScritp files supplied with the phpfreechat 1.0-final inside the files/ data path. The INSTALL.txt doesn't say anything different.
Comment #3
owahab commentedbudda, I found this bug couple days ago and fixed it in -dev.
Please download, test and give me your feedback.
Thanks.
Comment #4
buddaWhen I dump the $params in
function phpfreechat_load_params()I am still getting incorrect paths via the auto detection.The output of a
dprint_r($params);is:Surely the private and public paths should be sub-directories of my sites files directory so that they are writable?
I would also assume the public data path should point to a sub-directory of my sites files dir?
For the record my sites files directory is located at the value returned from calling
$filepath = variable_get('file_directory_path', 'files');-sites/scratch5.example.com/files?Comment #5
buddaI manually created the directories phpfreechat/data/private & /public and the errors change. Now the file_check_location() works correctly.
I noticed that the file_check_location() function actually does the 'file_directory_path' prepend for you :)
Remaining errors are now:
The above javascript files can be found in my installation
modules\phpfreechat\phpfreechat\data\public\js. Is this supposed to be a writable public directory? I'm confused -- and the installation documentation doesn't mention any messing with files like this.Comment #6
toma commentedI get the same problem i am trying to use
http://example.com//sites/all/modules/phpfreechat/phpfreechat/demo/demo1...
Comment #7
toma commentedAnyone get the chat to work !! i try many times, nothing work, always the same path problem
Comment #8
TheFazz commentedi am using phpfreechat for drupal 5.x-1.0-rc2 with the phpfreechat 1.0 final. my drupal is 5.3.
i get these errors once i upgraded from the 1.x-dev (phpfreechat 0.9beta) version to 1.0-rc2 (with phpfreechat 1.0final). what went wrong?
Comment #9
owahab commentedWorking on reproducing it, might take some time but I'm on it.
Comment #10
mikeuk2000 commentedTheFazz , I'm getting the same errors.
Anyone have any luck getting this to work?
Comment #11
TheFazz commentedi tried against RC4 and i get this error message:
Comment #12
swirtI got the same error as TheFazz running 1. beta9
If I comment out the line that specifies 'theme_path' in the phpfreechat.module the error goes away but then the images don't show up.
Comment #13
Sistemas7G commentedWhat I did to fix it (but not permanent) was to create manually the directory of the chat room (example: //chat/s_ee25998c9a9f1580ffcb24229198e749 can't be created, I create the directory "s_ee25998c9a9f1580ffcb24229198e749"), then I move into that directory one messages.data file (empty) and create an inside directory called "nicknames".
I change the permision to 777 to all de files/directoryes so they can be modified.
IM me if you want, and if you know why this happend please let us know.
See ya,
Visit my new own proyect, a newspaper with web 2.0 (but in spanish, later I'll traduce to english) http://www.gacetarosarina.com.ar.
Comment #14
permutations commentedNot an issue with the current version (1.2).