• 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

Displaying text

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

Post a reply
8 posts • Page 1 of 1

Displaying text

Postby trynreadme » Sun Dec 02, 2012 3:12 am

I'm having issues with a default install of phpfreechat 1.5. I've made no changes except for chmod on the /data file.

When you enter the chat room, you can see that you have enter, it displays your guest number on the users side and in the chatroom, "02:57:14 * guest833 joins My room". But, when you type into the text box and hit enter, or click send, it does not display in the chatroom. I am, however, able to use the / parameters. I was able to switch the nick to admin, as well as identify and hash check. But, again, it won't display the text. Was wondering if I was missing something or did something wrong. TIA!

**EDIT
Ran in with debug true and when I send a message everything seems to respond alright.
Code: Select all
handleResponse: send-ok-
sendRequest: /send Hello


***EDIT
Figured I should include my index.php for the chatroom code.
Code: Select all
<?php
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "TheRoom";
$params["nick"] = "Peon".rand(1,1000);  // setup the intitial nickname
$params['firstisadmin'] = true;
//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = true;
$params['admins'] = array('admin'  => 'password');
$params["refresh_delay"] = 2000; // 2000ms = 2s
$chat = new phpFreeChat( $params );
?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
      <meta http-equiv="content-type" content="text/html; charset=utf-8" />
      <title>phpFreeChat demo</title>
    </head>
    <body>
        <p style="color:red;font-weight:bold;">Suffering from technical difficulties.  Unable to display text, will be fixed....</p>   
        <?php $chat->printChat(); ?>

      <div class="content">
           <?php if (isset($params["isadmin"]) && $params["isadmin"]) { ?>
          <p style="color:red;font-weight:bold;">Warning: because of "isadmin" parameter, everybody is admin. Please modify this script before using it on production servers !</p>
           <?php } ?>
      </div>
   </body>
</html>

trynreadme
New member
 
Posts: 6
Joined: Sun Dec 02, 2012 2:48 am
Top

Re: Displaying text

Postby OldWolf » Sun Dec 02, 2012 10:08 pm

Looks right to me... have you moved the location of the chat, or changed any folder/file names since the first time you ran it?
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

Re: Displaying text

Postby trynreadme » Sun Dec 02, 2012 11:02 pm

I unzipped it on my mac, then uploaded the folder to the server, should I trying using tar? Would that make a difference? I didn't change any folder or file names.
trynreadme
New member
 
Posts: 6
Joined: Sun Dec 02, 2012 2:48 am
Top

Re: Displaying text

Postby trynreadme » Sun Dec 02, 2012 11:12 pm

I used tar -zxvf, and still having the same issue...
trynreadme
New member
 
Posts: 6
Joined: Sun Dec 02, 2012 2:48 am
Top

Re: Displaying text

Postby trynreadme » Sun Dec 02, 2012 11:18 pm

Not sure if this is related, but figured I would put out all issues I'm having. With phpfreechat-2.0.5, it loops while trying to login. Enter name, press enter, box goes away, then comes back again prompting to sign in. Never actually able to get to the chat room.
trynreadme
New member
 
Posts: 6
Joined: Sun Dec 02, 2012 2:48 am
Top

Re: Displaying text

Postby OldWolf » Mon Dec 03, 2012 6:20 am

trynreadme wrote:I unzipped it on my mac, then uploaded the folder to the server, should I trying using tar? Would that make a difference? I didn't change any folder or file names.

No, that shouldn't make a difference. Just for the sake of argument, could you try a manual rehash?
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

Re: Displaying text

Postby trynreadme » Mon Dec 03, 2012 4:33 pm

By a manual rehash, you mean deleting everything in the /data/private/cache folder? If so, I've done that multiple times.
trynreadme
New member
 
Posts: 6
Joined: Sun Dec 02, 2012 2:48 am
Top

Re: Displaying text

Postby OldWolf » Mon Dec 03, 2012 7:29 pm

Yes, sorry, usually I link to the document on it, but I was in a hurry: http://www.phpfreechat.net/rehash

Other than that, I'm unfortunately out of ideas. I'd check that your paths look good, but other than that I can't think of anything. Have you tried alternate browsers?
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


Post a reply
8 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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