Skip to main content Help Control Panel

 

English «   Post your requirements here «  

Why W.Bloggar can't access my own YACS server?

Fragoso, João Leonardo -- on Mar. 5 2004
A brazilian living in France...

Joao gets an error from w.bloggar on connection to a private YACS server. Transcript of the troubleshooting steps.

From Joao:

'I installed w.bloggar and I have success to connect to this YACS!(www.yetanothercommunitysystem.com). However, I have tried the same configuration to connect to my own YACS server and I get the following error:

w.bloggar: - 1072896683 Unable to parse the XML reponse. Parser Reason: Only one top level element is allowed in an XML document.

When I run /yacs/services/blog_test.php, i get this result page:

Sample blog client
Server address: mymachine.domain.com
The name or the IP address of the yacs server
User name joao_leonardo
User password ********

blogger.getUserInfo
b
blogger.getUsersBlogs
b
blogger.getRecentPosts
b
metaWeblog.getCategories
b
blogger.newPost
'b'
metaWeblog.newPost
'b'


It is normal ?? do someone have suggestions??

Bernard Paquesfrom nearby-an-airport
Associate, 8405 posts

on Nov. 30 -1


Try the following url in your browser: http://yourserver.yourdomain/yacs/services/blog.php

If you receive a PHP error message, then this is a bug, and maybe you are not using the very latest version of services/blog.php

If the browser displays some XML text, then retry your test with w.bloggar. It should be ok now.

Fragoso, João Leonardo
11 posts

on Nov. 30 -1


When I run /yacs/services/blog.php, i get the following error:

Fatal error: Call to undefined function: xml_parser_create() in /var/www/html/yacs/services/xml_rpc_codec.php on line 53

Where i can find this function ?

Bernard Paquesfrom nearby-an-airport
Associate, 8405 posts

on Nov. 30 -1


You probably have no expat library in your Apache/PHP setup. According to PHP manual:

"This extension uses expat, which can be found at http://www.jclark.com/xml/. The Makefile that comes with expat does not build a library by default, you can use this make rule for that:

libexpat.a: $(OBJS)
ar -rc $@ $(OBJS)
ranlib $@
"A source RPM package of expat can be found at http://sourceforge.net/projects/expat/.

"Note that if you are using Apache-1.3.7 or later, you already have the required expat library. Simply configure PHP using --with-xml (without any additional path) and it will automatically use the expat library built into Apache.

"On UNIX, run configure with the --with-xml option. The expat library should be installed somewhere your compiler can find it. If you compile PHP as a module for Apache 1.3.9 or later, PHP will automatically use the bundled expat library from Apache. You may need to set CPPFLAGS and LDFLAGS in your environment before running configure if you have installed expat somewhere exotic.

"Build PHP. Tada! That should be it. "