btrott
Feb 24 2002, 09:05 AM
Yeah, it actually posted properly in the other thread, but Ikonboard is being stupid and doesn't seem to want to create new page navigation. You can see the responses if you click "Add reply". :)
Anyway... my response to this is that this is usually due to an error on your server, which results in incorrect data being sent back to the other server. If you have access to your webserver error logs, look for errors from mt-xmlrpc.cgi. Also, make sure you have SOAP::Lite installed, and note that currently (in MT 1.4) the XML-RPC support requires Perl 5.6 or greater. This will no longer be true in MT 2.0--it should work at least in 5.005_03, because we'll be using a different XML parser.
meryl1
Feb 25 2002, 07:28 AM
I have Soap::Lite and the latest PERL installed on my server. That can't be the issue. I went into my error logs and here is what they say:
CODE
[Mon Feb 25 10:26:45 2002] [error] [client 12.237.60.202] Premature end of script headers: /u/web/meryln/mt/mt-xmlrpc.cgi
[Mon Feb 25 10:26:47 2002] [error] [client 12.237.60.202] Premature end of script headers: /u/web/meryln/mt/mt-xmlrpc.cgi
Any ideas?
meryl1
Feb 25 2002, 03:40 PM
I went ahead and re-uploaded the xmlrpc script in ASCII mode and chmoded it. Errors. Then, I ran it through the PERL script checker and this is what I get:
CODE
Can't locate URI.pm in @INC (@INC contains: /u/web/meryln/mt/extlib /u/web/meryln/mt/lib /usr/local/lib/perl5/5.00502/irix-n32-mips3 /usr/local/lib/perl5/5.00502 /usr/local/lib/perl5/site_perl/5.005/irix-n32-mips3 /usr/local/lib/perl5/site_perl/5.005 .) at /u/web/meryln/mt/extlib/SOAP/Lite.pm line 2562.
BEGIN failed--compilation aborted at /u/web/meryln/mt/extlib/SOAP/Lite.pm line 2562.
BEGIN failed--compilation aborted at /u/web/meryln/mt/extlib/XMLRPC/Lite.pm line 13.
BEGIN failed--compilation aborted at /u/web/meryln/mt/extlib/XMLRPC/Transport/HTTP.pm line 17.
BEGIN failed--compilation aborted at /u/web/meryln/mt/mt-xmlrpc.cgi line 38.
I have not modified this file unless instructed in the forum... I don't recall making changes to this one. Despite what the error message says, the server is running PERL 5.6.
packley
Feb 25 2002, 11:30 PM
I got this working, finally. I had the same unexpected XML character problem (it was caused by bad spaces in the pasted code--
details here) but I'm still having one small problem. The "<" character in HTML tags is still being interpretted as & l t ; (spaces added by me)
Any idead what I might be doing wrong? My mt-xmlrpc.cgi file can be read
here
btrott
Feb 26 2002, 08:20 PM
Meryl--thanks for the FYI on the modules. I will have to update the docs. That's very bad. I wonder if we should make copies of those on the MT server; though that would increase the server load a lot, and we're already over our limit.
Anyway, about those errors from the script: is that after making the changes in that other thread?
emaynard
Mar 5 2002, 08:05 AM
Meryl,
I'm just curious if you've had any luck with Radio and MT?
I'm still getting the same neutered less than characters, but the double postings seemed to come and go. Wierd.
Hoping that 2.0 enables easier posting from Radio.
meryl1
Feb 24 2002, 08:21 AM
I posted this twice, but it's not posting it live in the
thread:". Here's what happened after I removed the http://
CODE
Last error: Poorly formed XML text, we were expecting
. (At character #512.)
meryl1
Feb 24 2002, 11:18 AM
This is all on the radio.weblogs.com server, so I am not sure what is installed there and couldn't find the information in the RadioLand user information (will try to find out). It's probably something out of my control since I don't think anyone has gotten it working with Radio yet, unless the files are on their own server and not Radio's.
btrott
Feb 25 2002, 09:47 AM
The script is dying for some reason; it's hard to say why. Permissions? Uploaded in non-ASCII mode? I don't know why the error log doesn't have more helpful information...
btrott
Feb 25 2002, 11:11 PM
Ah... so it looks like the URI module is not installed; instructions on installing it are in the installation docs.
Odd about those mismatched versions...
btrott
Feb 26 2002, 09:50 AM
Yep, this was a problem in 1.4; there is a fix posted somewhere on the board. Probably in General Problems. Basically, the problem is that the XML encoder on the other end encodes the < into <, and then I was expecting that the parser I was using would decode it back into <. But it's not.
So for the meantime, there is a fix to decode the HTML. In 2.0, we're using a different XML parser. :)
meryl1
Feb 26 2002, 03:28 PM
FYI - When I went to go install the LWP::UserAgent (The URI module that Ben references), the downloads don't exist anymore. I think it's because it's now up to version 5.64.
http://www.cpan.org/modules/by-module/LWP/...erl-5.64.tar.gzThe URI file also has been updated and it's on 1.18.
http://www.cpan.org/modules/by-module/URI/URI-1.18.tar.gzIf it the above don't work, remove the file name to access the directory and find the latest version.
Latest errors after installing above:
CODE
syntax error at /u/web/meryln/mt/mt-xmlrpc.cgi line 155, near "}"
Global symbol "$entry_id" requires explicit package name at /u/web/meryln/mt/mt-xmlrpc.cgi line 158.
Global symbol "$user" requires explicit package name at /u/web/meryln/mt/mt-xmlrpc.cgi line 160.
Global symbol "$pass" requires explicit package name at /u/web/meryln/mt/mt-xmlrpc.cgi line 160.
Global symbol "$publish" requires explicit package name at /u/web/meryln/mt/mt-xmlrpc.cgi line 165.
Global symbol "$content" requires explicit package name at /u/web/meryln/mt/mt-xmlrpc.cgi line 166.
syntax error at /u/web/meryln/mt/mt-xmlrpc.cgi line 172, near "}"
/u/web/meryln/mt/mt-xmlrpc.cgi had compilation errors.
Anything odd about it? Thanks for puttin' up with me.
meryl1
Feb 27 2002, 02:07 PM
Yes, those errors occurred in my first test after installing the modules. Any other ideas? Or at this point, we just wait for 2.0?
As for the changes in the file names (because of version numbers), perhaps, we can find the modules elsewhere? Someplace that doesn't delete the version after a new one comes up? Just did a quick Google, but didn't find a place, yet...
P.S. Congrats on being on TechTV!!! We're all so excited!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.