Closed (won't fix)
Project:
phpFreeChat integration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2015 at 23:21 UTC
Updated:
11 Apr 2015 at 06:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tessa bakkerComment #2
tessa bakkerThere isn't any need for an upgrade of this module, so I won't update this issue with a better version.
Feel free to re-open if it's needed.
Known problems while installing:
* Drush shows a few warnings and error's
** setup Private folder before installing
* Chatbox loads, but no working chat
** save the configuration page ones
Comment #3
igorik commentedHello,
I tried to create node (content type with aways enabled phpfreechat)
but i got this error:
Fatal error: Class 'pfcInfo' not found in /var/www/somvprahe.sk-nove/sites/all/modules/phpfreechat/includes/phpfreechat.helpers.inc on line 437
When I change phpfreechat setting "show Chatbox" to never on the content type settings, then the node is created/shown. However, when I change it back, instead view of node I got the error message above.
The other thing - but it is probably what you noted here - these warning + 2 errors:
igorik@svp-new:~/www/somvprahe.sk-nove/sites/all/modules$ drush en phpfreechat
The following extensions will be enabled: phpfreechat
Do you really want to continue? (y/n): y
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:2230
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:2230
WD file: The file permissions could not be set on private://phpfreechat. [error]
WD phpfreechat: Failed to create needed directories inside the public or [error]
private stream.
phpfreechat was enabled successfully. [ok]
phpfreechat defines the following permissions: admin phpfreechat, access chatrooms, create chatrooms, moderate chatrooms
WD memcache: Spent 52.13 ms splitting 1.11 MB object into 2 pieces, cid = [warning]
svp-nove-cache-schema
Comment #4
tessa bakkerHi igorik,
Solution: Move your phpfreechat library (inside modules/phpfreechat/phpfreechat) to 'libraries/phpfreechat'. After that the module 'Libraries' will detect phpfreechat and setup all the required paths for you.
Same solution as above
In the old setup chatlogs could be viewed by every user on the internet, in this version they are much more protected with the your drupal salt (see settings.php) and private folder setup.
Solution: Setup you 'Private file system path' admin/config/media/file-system
Hope this helps.
Comment #5
igorik commentedHello Tessa,
I tried your phpfreechat module on clean d7 instalation on my computer, but still I have no success...
I have phpfreechat script 1.7 extracted in libraries/phpfreechat
1. after enabling, I got these warnings:
Igors-MacBook-Pro:modules igorik$ drush en phpfreechat
The following projects have unmet dependencies: [ok]
phpfreechat requires libraries
Would you like to download them? (y/n): y
Project libraries (7.x-2.2) downloaded to /Users/igorik/Documents/dev[success]
desktop sites/test_chat/sites/all/modules/libraries.
The following extensions will be enabled: phpfreechat, libraries
Do you really want to continue? (y/n): y
is_dir(): Unable to find the wrapper "private" - did you forget to [warning]
enable it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to [warning]
enable it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to [warning]
enable it when you configured PHP? file.inc:2230
is_dir(): Unable to find the wrapper "private" - did you forget to [warning]
enable it when you configured PHP? file.inc:2230
libraries was enabled successfully. [ok]
phpfreechat was enabled successfully. [ok]
phpfreechat defines the following permissions: admin phpfreechat, access chatrooms, create chatrooms, moderate chatrooms
Igors-MacBook-Pro:modules igorik$
2. after creating content type "chat" with phpfreechat settings always enabled
I recieved this notice:
Notice: Undefined variable: extra in phpfreechat_field_extra_fields() (line 367 of /Users/igorik/Documents/dev desktop sites/test_chat/sites/all/modules/phpfreechat/phpfreechat.module).
3. after creating node using content type "chat" with phpfreechat enabled, I revieved this error:
Strict warning: Non-static method pfcGlobalConfig::_GetCacheFile() should not be called statically, assuming $this from incompatible context in pfcInfo->pfcInfo() (line 18 of /Users/igorik/Documents/dev desktop sites/test_chat/sites/all/libraries/phpfreechat/src/pfcinfo.class.php).
+
phpfreechat is loaded but not connected - I added a screenshot here.
Thank you for your help.
Igor
Comment #6
tessa bakkerHi Igor,
I created a sandbox added a few requirement checks and removed the strict warning.
https://www.drupal.org/node/2469257#comment-9811797