• 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

[FIX] Please help: XML response is invalid!!

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

Post a reply
8 posts • Page 1 of 1

Postby d3x » Mon Feb 27, 2006 5:07 pm

I installed the chat, copyed all the files to the dir but it doesnt work.
Error comes up saying xml response is invalid. I cannot overcome this error.
http://dev.guiltygroups.com/chat/

Index.php

<?php
require_once "src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5(__FILE__); // used to identify the chat
$params["refresh_delay"] = 2000; // 2000ms = 2s
$params["nick"] = "guest"; // it can be useful to take nicks from a database
$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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Chat</title>
<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>


If anyone can help me with this as soon as you can. This is an emergency!
d3x
New member
 
Posts: 4
Joined: Mon Feb 27, 2006 5:03 pm
Top

Postby phpfreechat » Mon Feb 27, 2006 5:50 pm

This due to a php warning I think, could you try with this package ? 0.8-pre2

http://www.phpfreechat.net/demo/pfc/mis ... re2.tar.gz
http://www.phpfreechat.net/demo/pfc/mis ... 8-pre2.zip

then give me the public url where you put the files, I will try to investiguate.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Mon Feb 27, 2006 5:53 pm

oups... wait a minute for the 0.8 package, there is a bug on the "language" parameter!
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Mon Feb 27, 2006 5:57 pm

Ok, bug fixed, you can download it here :
http://www.phpfreechat.net/demo/pfc/mis ... re2.tar.gz
http://www.phpfreechat.net/demo/pfc/mis ... 8-pre2.zip
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby d3x » Mon Feb 27, 2006 6:29 pm

Uploaded to the server. Same error...
d3x
New member
 
Posts: 4
Joined: Mon Feb 27, 2006 5:03 pm
Top

Postby d3x » Mon Feb 27, 2006 9:12 pm

I have the solution to this problem.
Call function $xajax->cleanBufferOff();
before the function $xajax->processResponse();

that cleans the php buffer. tested working :)
d3x
New member
 
Posts: 4
Joined: Mon Feb 27, 2006 5:03 pm
Top

Postby phpfreechat » Mon Feb 27, 2006 11:04 pm

Woow nice fix!
I will integrate your fix to the pfc sources code.
Thank you
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby d3x » Tue Feb 28, 2006 8:18 am

pfc is too good to give up on it :)
d3x
New member
 
Posts: 4
Joined: Mon Feb 27, 2006 5:03 pm
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 6 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