yangdajun / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Problem after connecting #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, I have been playing with your lib all day long and as a result i
manged to connect (i think) but all iam getting is the errors :(

I only get this:

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]:
Entity: line 1: parser error : Space required after the Public Identifier
in C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in
C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]: 
                                                ^ in
C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]:
Entity: line 1: parser error : SystemLiteral " or ' expected in
C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in
C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]: 
                                                ^ in
C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]:
Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in
C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in
C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]: 
                                                ^ in
C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Fatal error:  Uncaught exception 'Exception' with message 'String could not
be parsed as XML' in C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php:75
Stack trace:
#0 C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php(75):
SimpleXMLElement->__construct('<!DOCTYPE HTML ...')
#1 C:\xampplite\htdocs\grischa\jabber2\webclient_example.php(22):
XMPPHP_BOSH->connect('embed.toksta.co...', 1, true)
#2 {main}
  thrown in C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

-----------------------

i tried it all day but it still seems to fail :/
do you have any suggestions? this is the wenclient example btw

Original issue reported on code.google.com by cojito...@googlemail.com on 21 Jul 2009 at 2:19

GoogleCodeExporter commented 8 years ago
okay i got that working becuase i was using the wrong connection data!
but now i get this:
1248258343 [VERBOSE]: Error on stream_select()
1248258343 [WARNING]: Reconnecting (30)...

Fatal error:  Uncaught exception 'Exception' with message 'String could not be 
parsed
as XML' in C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php:75
Stack trace:
#0 C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php(75):
SimpleXMLElement->__construct('')
#1 C:\xampplite\htdocs\grischa\jabber2\XMPPHP\XMLStream.php(337):
XMPPHP_BOSH->connect(30, false, false)
#2 C:\xampplite\htdocs\grischa\jabber2\XMPPHP\XMLStream.php(401):
XMPPHP_XMLStream->doReconnect()
#3 C:\xampplite\htdocs\grischa\jabber2\XMPPHP\XMLStream.php(471):
XMPPHP_XMLStream->__process()
#4 C:\xampplite\htdocs\grischa\jabber2\webclient_example.php(28):
XMPPHP_XMLStream->processUntil(Array)
#5 {main}
  thrown in C:\xampplite\htdocs\grischa\jabber2\XMPPHP\BOSH.php on line 75

Original comment by cojito...@googlemail.com on 22 Jul 2009 at 11:02

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Looks like you're trying to use XMPPHP for BOSH, which is currently 
unsupported.  If
you're looking to make XMPP accessable to a web user, I suggest Strophe.js in 
the
client side.

Original comment by nathanfr...@gmail.com on 3 Aug 2009 at 10:09