• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Joomla, Drupal, and Wordpress (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Drupal Php Chat - Never ending \"Chat loading ...\"

Integration help for Joomla, Drupal, and Wordpress

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Postby mikeuk » Wed Nov 21, 2007 2:50 pm

I've just installed the latest version of the Drupal module to install Php Chat here:

http://www.evacmod.net/?q=node/123

Unfortunately, php chat never actually loads (though it keeps saying "Chat loading ...". Originally I did have to change the .module file in the phpfreechat_load_params() function (in the Drupal Module) to:

// Configure file paths
$filepath = variable_get('file_directory_path', 'files');
$params['data_private_path'] = $filepath.'/phpfreechat/data/private';
$params['data_public_url'] = $filepath.'/phpfreechat/data/public';

...to get the page loading at all. I've looked at some of the other posts on this forum but can't say I understand what a lot of them are talking about.

Any ideas?

(i'm using FF but have tried this with IE and the same problem occurs)

P.S
I've got the demo version working on the site:
http://www.evacmod.net/modules/phpfreec ... echat/demo
Last edited by mikeuk on Wed Nov 21, 2007 3:49 pm, edited 1 time in total.
mikeuk
New member
 
Posts: 4
Joined: Wed Nov 21, 2007 2:42 pm
Top

Postby mikeuk » Thu Nov 22, 2007 4:16 pm

Ok, I've managed to solve my own problem.

The problem was with the Phpchat .module file. Within the phpfreechat_load_params() function the following needs to be altered/added:

// Configure file paths
$filepath = variable_get('file_directory_path', 'files');
$params['data_private_path'] = $filepath.'/data/private';
$params['data_public_url'] = $filepath.'/data/public';
$params['data_public_path'] = file_check_location($filepath.'/data/public');

Also I needed to comment out/remove this line:
//$params['theme_url'] = $base_url .'/'. drupal_get_path('module', 'phpfreechat') . '/extras/themes';

Hope this helps someone.
mikeuk
New member
 
Posts: 4
Joined: Wed Nov 21, 2007 2:42 pm
Top

Postby jbeazell » Wed Dec 26, 2007 10:50 am

I am getting the same problem (when the system decides NOT do delete the phpfreechat directory under /modules/phpfreechat - grrr).

I have tried your fix, but I'm still getting the endless loading loop.

Any suggestions?
Last edited by jbeazell on Wed Dec 26, 2007 11:15 am, edited 1 time in total.
jbeazell
New member
 
Posts: 4
Joined: Wed Dec 26, 2007 10:47 am
Top

Postby jbeazell » Wed Dec 26, 2007 11:15 am

I fixed it... it was the fact that the system wasn't allowing the scripts to create the paths under the /files directory. Once I did deleted them, and then compied some of the theme folders into /files/ it woked.. although, I now have a new, novel issue...which doesn't go here!
jbeazell
New member
 
Posts: 4
Joined: Wed Dec 26, 2007 10:47 am
Top

Postby ZeroSignal » Thu Jul 30, 2009 3:38 pm

I'm getting this issue, no idea why though...

Using:
Drupal 6.13
phpfreechat 6.x-1.1
phpfreechat-1.2 (also tried using phpfreechat-1.1)

Debug Output:
Code: Select all
Parameters: Array
(
    [data_private_path] => C:Devwampwwwsitesdefaultfilesphpfreechatprivate
    [data_public_url] => http://localhost/sites/default/files/phpfreechat/public
    [data_public_path] => C:Devwampwwwsitesdefaultfilesphpfreechatpublic
    [theme_url] => http://localhost/sites/all/modules/phpfreechat/extras/themes
    [theme_path] => C:Devwampwwwsitesallmodulesphpfreechatextrasthemes
    [theme] => drupal
    [server_script_url] => http://localhost/sites/all/modules/phpfreechat/handler.php
    [server_script_path] => C:Devwampwwwsitesallmodulesphpfreechathandler.php
    [cmd_path] => C:Devwampwwwsitesallmodulesphpfreechatextrascommands
    [nick] => admin
    [serverid] => 1315e07dc5ecfdcec39f54ec16f564b7
    [title] => Shaiya Evolution
    [channels] => Array
        (
            [0] => Shaiya Evolution
        )

    [isadmin] => 1
)

Session: Array
(
    [uc_cart_id] => 847095324b6ab7ec4a510344656218a6
    [pfcuserconfig_1315e07dc5ecfdcec39f54ec16f564b7_nick] =>
    [pfcuserconfig_1315e07dc5ecfdcec39f54ec16f564b7_active] =>
    [pfcuserconfig_1315e07dc5ecfdcec39f54ec16f564b7_channels] => Array
        (
        )

    [pfcuserconfig_1315e07dc5ecfdcec39f54ec16f564b7_privmsg] => Array
        (
        )

    [pfcuserconfig_36c4536996ca5615dcf9911f068786dc_nick] =>
    [pfcuserconfig_36c4536996ca5615dcf9911f068786dc_active] =>
    [pfcuserconfig_36c4536996ca5615dcf9911f068786dc_channels] => Array
        (
        )

    [pfcuserconfig_36c4536996ca5615dcf9911f068786dc_privmsg] => Array
        (
        )

)

Cookies: Array
(
    [phpbb3_o6c5e_u] => 2
    [phpbb3_o6c5e_k] => 3d0f23b554d0cac1
    [phpbb3_o6c5e_sid] => 8e5416c40a75530e7b4fa190a9ff98b1
    [has_js] => 1
    [SESS421aa90e079fa326b6494f812ad13e79] => mv2qc1pj06mncru8p9kciqrhm7
    [SESS92c80b84d8d540cc8e846f40f9c190fe] => rnkb3pf6pepi6hd1kh7abokoj3
    [phpfreechat] => 7e7kc1vbjo4tuaqvksqrfp11v4
)

Using Drupal Garland Theme.

Everything on default settings and stuff, any ideas?

I tested out the Demos and they seem to be working fine...

And apologies for the Necro, but it's the exact same issue.
Last edited by ZeroSignal on Thu Jul 30, 2009 5:39 pm, edited 1 time in total.
ZeroSignal
New member
 
Posts: 1
Joined: Thu Jul 30, 2009 3:26 pm
Top


Post a reply
5 posts • Page 1 of 1

Return to Joomla, Drupal, and Wordpress (v1.x)

Who is online

Users browsing this forum: No registered users and 3 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub