• 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

periodic hang on startup

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

Post a reply
5 posts • Page 1 of 1

Postby permutations » Mon May 05, 2008 6:49 pm

phpFreeChat periodically hangs on startup. If I delete the phpfreechat folder in the Files directory it will reset and load (I'm running under Drupal).

I noticed just now that the reason it's hanging is that the JavaScript files are not in the Public folder. This code is in phpFreeChat, not Drupal. Does anyone have a fix?
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby OldWolf » Tue May 06, 2008 6:13 am

If the files are showing in the wrong place, you have some path issues (probably from moving files around or accessing the chat from different files)... fastest fix is to rehash unless you have a strange set up.

This may or may not be part of the hang ups... try doing the rehash and see where you are.
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 permutations » Wed May 07, 2008 12:52 am

I found the problem - it was a bug in the Drupal module. There is a function to clear the cache that is deleting the contents of the public directory, which holds the theme and JavaScript files. The hang occurs because it can't find the JavaScript files. I commented out this line and the hangs stopped.

I'm thinking that perhaps I should use a phpFreeChat call to the rehash function to clear the cache instead of manually deleting the files. If a MySQL container is used, trying to delete files will not clear a cache.
Last edited by permutations on Wed May 07, 2008 12:53 am, edited 1 time in total.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby OldWolf » Wed May 07, 2008 4:45 am

I haven't experimented with the mysql features myself, but you should be able to do the exact same manual cache clear by clearing the data in the correct table. :)
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 permutations » Wed May 07, 2008 7:41 pm

I didn't write any support for MySQL. I just changed the Drupal module code to use the phpFreeChat function for clearing the cache so if phpFreeChat supports MySQL, so will the Drupal module.

In general, I'm trying to change only the code for the Drupal integration module, and not the phpFreeChat code, if possible.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 9 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