weblogs.com RPC error fix
07:00
You may have seen this error crop up in your movabletype blog:
Ping ‘https://rpc.weblogs.com/RPC2’ failed: HTTP error: 500 read timeout
I found plenty of sites through google where people were asking about this but nobody offered a solution that I saw. Well, I found a solution that was posted on the MT support forum just an hour or so ago:
movabletype.org : Support Forum
below is a unified diff so that you can patch your site. The patch seems to work most of the time, although I have had at least one of the same errors crop up. That could have been due to something else though.
\--- XMLRPC.pm Tue Feb 11 16:15:03 2003
+++ lib/MT/XMLRPC.pm Fri May 23 16:29:04 2003
@@ -68,8 +68,12 @@
"HTTP error: \[\_1\]", $res->status\_line ));
}
my $content = $res->content;
\- my($error, $msg) = $content =~
\- m!flerror.\*?(\\d+).\*message.\*?(.+?)!s;
+# quick fix to weblogs.com RPC error in activity log. See blog entry for details.
+# my($error, $msg) = $content =~
+# m!flerror.\*?(\\d+).\*message.\*?(.+?)!s;
\+ my($error) = $content =~ m!flerror.\*?(d+)!s;
\+ my($msg) = $content =~ m!message.\*?(.+?)!s;
+
if ($error) {
return $class->error(MT->translate(
"Ping error: \[\_1\]", $msg ));