please wait chat is loading... message displays in chat page

I am using php free chat 1.7 version

Comments

vpsaravanan’s picture

Issue summary: View changes
rhimes’s picture

ditto:

cannot get ver 1.6mod/1.7script to work (hung on "Please wait...") on D6.35:

I disabled/uninstalled older vers (mod 1.1/1.2script) - cleared site cache, cleared browser cache, closed browser and powered down! - replaced mod/script files, re-enabled, re-saved content type ("always" show, "allow" unchecked, blank title, blank channel) - re-set (new, why?) permissions - re-saved settings - created NEW (additional) "ChatRoom" (title) page of my (previously re-saved) "Page - Chat" content type - AND - nothing.............

like I said to start, hung @ "Please wait"...

looked at DB - your new "phpfreechat" table has my new chat node (nid "38", and NOT my previous ver node) and has it as "enabled" BUT (I expected to see differently) doesn't have anything in either the title or channel - see below:
**************

CREATE TABLE IF NOT EXISTS `phpfreechat` (
  `nid` int(11) NOT NULL,
  `phpfreechat_enabled` int(11) NOT NULL,
  `phpfreechat_title` varchar(128) NOT NULL,
  `phpfreechat_channels` varchar(128) NOT NULL,
  PRIMARY KEY (`nid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `phpfreechat`
--

INSERT INTO `phpfreechat` (`nid`, `phpfreechat_enabled`, `phpfreechat_title`, `phpfreechat_channels`) VALUES
(38, 1, '', '');

**************
as I didn't allow the node to set title or channel, and left those blank on the content type, thought that the node would get (in table entry?) the module's defaults - should it have?

thanks!

rhimes’s picture

Title: please wait chat loading issue » 1.6 / 1.7 script loading issues

changing title in hopes someone will read (there're MANY "please wait" / "not loading" issues that they think are all taken care of)

permutations’s picture

Hi. I saw the posts. I've just been busy.

You need to 100% completely uninstall the old version before installing the new one, as described in the INSTALL.txt file:

(1) Delete any existing nodes with chatboxes.
(2) Delete any new chatbox content types.
(3) Go to the module installation page and deactivate the phpFreeChat integration module (clear the checkbox).
(4) Go to the module deinstall page and uninstall the phpFreeChat integration module (select it and uninstall it).
(5) Delete all phpFreeChat files from wherever you installed it (probably sites/all/modules/ - delete the phpfreechat directory here).
(6) Find phpFreeChat cache directory, and delete that, too. It will exist in one and possible two places:

(a) sites/default/files/ - delete the phpfreechat directory here.
(b) Look in the root of your site for any directories that have "phpFreeChat" in the name, and delete them (these are sometimes created in the Drupal 6 version).

(7) If your Drupal site using caching, clear the cache!
(8) Clear your browsers cache, then completely shut it down (close ALL browser pages and exit).
(9) You can clear browser cookies, too, if you want. It's not usually necessary, but I had to do this once.

NOW - after doing all that - you can start again and reinstall fresh:

(1) Copy the module files to sites/all/modules/phpfreechat.
(2) Copy phpFreeChat itself to a directory inside the module directory also called phpfreechat.
(3) Go to the modules page in Drupal and select the phpFreeChat checkbox to activate it.
(4) Configure it as you wish - perhaps create a chatbox node type and increase the timeout (I always do both these things).
(5) Create your chatbox nodes.

If you COMPLETELY uninstall it and then reinstall it clean, it will not hang. I have a Drupal 6 test installation running here:

http://www.permutations.com/drup/chatbox

And a Drupal 7 test installation running here:

http://drup7.permutations.com/chatbox

I just logged into both chatboxes, and they are working fine. Try it!

permutations’s picture

rhimes - I set the Default Title and Default Channels on the phpFreeChat configuration page. Other ways of setting it should work as well. I don't think this is your problem because a name issue would not cause a hang. I think your problem is that you didn't fully clear out the old installation. I know it's a pain to go through all the steps I listed, but it has to be completely gone so old conflicting elements don't cause a hang.

permutations’s picture

Status: Active » Closed (works as designed)

When the previous version is completely uninstalled, it doesn't hang.

Tess Bakker’s picture

Instead of deleting data, try to debug your site with your browser development tools. Check if every file is loaded correctly, I think a small path adjustment in your setting could be the trick. If that doesn't work you can try reinstalling de module.

rhimes’s picture

I not only followed ALL the steps you outlined in #4 - I additionally emptied ALL DB "cache" tables, as well as the "sessions" table, and after clearing browser cache, I not only exited browser, I powered off my Xampp server (on localhost) and powered down my computer. PFC was COMPLETELY, ABSOLUTELY un-installed.

And AGAIN (for fourth time), after re-installing.... "Please wait..." forever (did increase timeout also as suggested)

SO.... I'm wondering if my server/database config is the problem.

I do have a live, production site - on mod1.1/script1.2, D6.17 - working on Apache/2.2.16, MySQL 5.1.73, PHP 5.2.14, with MyISAM tables and PHP memory limit 160M - and all runs well.

The install I'm trying to get running is mod1.6/script1.7, D6.35 - on Apache/2.2.21, MySQL 5.5.16, PHP 5.3.8, PHP memory limit 256M and InnoDB tables. - on localhost test Xampp stack server

Do you see any problems here?

rhimes’s picture

Status: Closed (works as designed) » Active

reset active

permutations’s picture

It's very difficult for me to diagnose a problem I cannot reproduce.

You list two platforms. Apparently it's the first one you're having problems with. I see a lot of old software, and any one of these could be causing your problem:

- Drupal 6.17 is old - the latest version of Drupal 6 is 6.35.
- There were some big changes between PHP 5.2 and PHP 5.3. My servers are using PHP 5.3 by default.
- MySQL 5.1 is quite old. I'm running MySQL 5.6.
- Apache 2.2 is old. I'm running 2.4.
- Your PHP memory limit is 160MB. That might be low - mine is 195MB.

I'd suggest you upgrade your platform and try again.

rhimes’s picture

@ permutations - no, it's the other way around, the OLDER configuration (D6.17 etc.) is the live production install that runs without problems ("and all runs well") -

the NEWER (D6.35, PHP 5.3.8, 256M etc.) on my local (Xampp stack) developement install is the one that I can't get to load the chatbox.

I think I'll give up & try going back to mod 1.1 & 1.2 script, because I can't figure out what's wrong here.

vpsaravanan’s picture

For me, please wait chat is loading... message has removed by doing these steps in development instance

In phpfreechat/handler.php

Add ini_set('display_errors', 0); in the top of handler.php file

After this chat box will dispaly

vpsaravanan’s picture

Status: Active » Closed (fixed)
vpsaravanan’s picture

Status: Closed (fixed) » Active
rhimes’s picture

@ vpsaravanan -

I tried adding "ini_set('display_errors', 0);" (without quotes) both before and after "define('PHPFREECHAT_DRUPAL_BOOTSTRAP', 'includes/bootstrap.inc');" in handler.php without any change in results - still gets "Chat loading..."

did you place the line "ini_set..." somewhere else specifically?

thx