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

problem - chat don\'t load (integration with cms)

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

Post a reply
16 posts • Page 1 of 2 • 1, 2

Postby jwaldek » Sat Oct 20, 2007 5:46 pm

here is some demo of my cms with integrated chat.
http://cmsdemo2.jw-webdev.info/index.ph ... hat_zobacz

but chat don't load properly, there is only "chat loading..." message
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby King Moonraiser » Sun Oct 21, 2007 4:17 am

I think we're going to need to look at your php code for that page.

Have you tried running the demo?
Last edited by King Moonraiser on Sun Oct 21, 2007 4:18 am, edited 1 time in total.
King Moonraiser
Member
 
Posts: 98
Joined: Fri Jun 22, 2007 9:42 pm
  • Website
Top

Postby OldWolf » Sun Oct 21, 2007 7:32 am

You need to set the "server_script_url" parameter. Since you load the chat from an unusual set up, this value needs to be hard coded. My guess is the value you want is "./index.php?akcja=chat_zobacz"

EACH TIME you change the parameter, make sure you do a manual rehash of the cache. The steps are as follows:
1. Close any browsers connected to the chat.
2. If your site is public and it's possible someone could be accessing it while you are performing this manual rehash, comment out (put two slashes in front of) the line that reads
Code: Select all
$chat = new phpFreeChat( $params );

Make sure to change it back in step 5.
3. In your FTP software, navigate to /yourchat/data/private/.
4. Delete both the chat and cache folders. If you wish to clear your logs, you can delete the logs folder as well (for set-ups with logging).
5. If you commented out the phpFreeChat line in 2, uncomment it now.
6. Navigate back to your chat in a browser. The cache will automatically set itself back up.

IF, and only IF you have trouble figuring out the value, please add the following code to your page so we can take a look at it.
Code: Select all
echo '<h2>Debug</h2>';
echo '<pre>';
$c =& pfcGlobalConfig::Instance();
print_r($c);
print_r($_SERVER);
echo '</pre>';
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby jwaldek » Sun Oct 21, 2007 9:57 am

i have "server_script_url" = "./index.php?akcja=chat_zobacz" but dont work with this configuration

i can give ftp acces and some instruction to my cms demo if someone can check my php code.
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby jwaldek » Sun Oct 21, 2007 10:06 am

i've add testing code to my chat
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby OldWolf » Sun Oct 21, 2007 5:45 pm

Did you do the manual rehash I specified above?
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby jwaldek » Tue Nov 13, 2007 2:01 pm

yes i use this rehash and chat don't load :(
i can give acces to ftp to check my code because i don't have idea why chat don't load properly
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby OldWolf » Tue Nov 13, 2007 11:55 pm

No, just put the debug code in that I posted above so I can have a look.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby jwaldek » Sun Feb 03, 2008 10:53 am

i've add the debug code:

http://chattest.jw-webdev.info/
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby mikez » Tue Feb 05, 2008 8:31 pm

Have you tried setting your pfc_server_script_url to 'http://chattest.jw-webdev.info'
Last edited by mikez on Tue Feb 05, 2008 8:39 pm, edited 1 time in total.
mikez
Member
 
Posts: 29
Joined: Wed Dec 13, 2006 1:24 am
Top

Postby jwaldek » Sat Feb 16, 2008 7:48 pm

yes i tried this parameter but no effect, chat don't load :(
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby OldWolf » Sun Feb 17, 2008 10:51 am

It's a problem with your server_script_url... I just can't for the life of me figure out what it is. :/
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby jwaldek » Sun Feb 17, 2008 3:02 pm

the chat is in the "/chat/" directory
chat is included in "/mod/chat/class.chat.php"
next, "/mod/chat/class.chat.php" is included in "/index.php"
maybe "client_script_path"="/mod/chat/class.chat.php" is bad because "/mod/chat/class.chat.php" is only definition of php class ?
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby jwaldek » Sun Feb 17, 2008 4:49 pm

changed:

[server_script_path] => /index.php
[server_script_url] => http://chattest.jw-webdev.info/index.php
[client_script_path] => /index.php

chat don't load :(
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby jwaldek » Sun Feb 17, 2008 5:42 pm

works :)

i remove any html code that was before
$chat=new phpFreeChat($konfig);
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Next

Post a reply
16 posts • Page 1 of 2 • 1, 2

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 10 guests

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