Posts tagged blog

HowTo: Fix "The response to the metaWeblog.newMediaObject method received from the weblog server was invalid"

Today I got this error message from WLW: “The response to the metaWeblog.newMediaObject method received from the weblog server was invalid“. Why did WLW think the response was “invalid“?? What exactly did it receive from Wordpress??

Luckily, WLW logs a lot more in the background. You can access that log file via Help -> About WLW. Click on the “Show Log Results” link in the dialog box. This will open the log folder.

Mine had this trace dump:

WindowsLiveWriter,21504,Fail,00020,18-Mar-2008 14:00:01.479,"WindowsLive.Writer.Extensibility.BlogClient.BlogClientInvalidServerResponseException: Invalid Server Response - The response to the metaWeblog.newMediaObject method received from the weblog server was invalid:
Invalid response document returned from XmlRpc server
at WindowsLive.Writer.BlogClient.Clients.XmlRpcBlogClient.CallMethod(String methodName, XmlRpcValue[] parameters)
at WindowsLive.Writer.BlogClient.Clients.MetaweblogClient.DoBeforePublishUploadWork(IFileUploadContext uploadContext)
at WindowsLive.Writer.PostEditor.WeblogBlogFileUploader.DoUploadWorkBeforePublish(IFileUploadContext uploadContext)
at WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.FileUploadWorker.DoUploadWork(BlogFileUploader fileUploader)
at WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.LocalFileTransformer.Transform(String reference)
at WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.LocalFileReferenceFixupFilter.FixReferences(String reference)
at WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.OnBeginTag(BeginTag tag)
at WindowsLive.Writer.CoreServices.LightWeightHTMLDocumentIterator.Parse()
at WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences(String html, ReferenceFixer fixer)
at WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.LocalSupportingFileUploader.UploadFilesBeforePublish()
at WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.DoWork()
at WindowsLive.Writer.CoreServices.AsyncOperation.InternalStart()"," at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at WindowsLive.Writer.CoreServices.Diagnostics.LogFileTraceListener.Fail(String message)
at System.Diagnostics.TraceInternal.Fail(String message)
at System.Diagnostics.Trace.Fail(String message)
at WindowsLive.Writer.PostEditor.BlogPostEditingManager.UpdateWeblog(Boolean publish)
at WindowsLive.Writer.PostEditor.BlogPostEditingManager.PostToWeblog(Boolean publish)
at WindowsLive.Writer.PostEditor.PostEditorMainControl.commandPostAndPublish_Execute(Object sender, EventArgs e)
at WindowsLive.Writer.ApplicationFramework.Command.RaiseEvent(Object eventKey, EventArgs e)
at WindowsLive.Writer.ApplicationFramework.Command.OnExecute(EventArgs e)
at WindowsLive.Writer.ApplicationFramework.CommandBarButtonLightweightControl.OnMouseUp(MouseEventArgs e)
at WindowsLive.Writer.Controls.LightweightControl.RaiseMouseUp(MouseEventArgs e)
at WindowsLive.Writer.Controls.LightweightControlContainerControl.OnMouseUp(MouseEventArgs e)

Pretty neat stack trace,eh? ;) It clearly shows that DoUploadWork() (Invoked by UpdateWebLog()) method fails for some reason. Armed with this knowledge, I took a look at my post. I had many pictures in that and my WLW was setup to upload pictures through XML RPC. So, obviously that was causing some kind of trouble. I traced down the big picture (size: ~0.7MB) in my post, resized it to 40K and published again. Voila, things worked perfectly!

I googled for the error message, since I wanted to know how other people solved this. Looks like increasing the memory size for PHP in the server side will also help. So, one of the following things should help you to solve this problem:

  1. If you have images embedded that need to be uploaded to the server, make sure they are not big. I don’t have any idea on the *optimal* size. I guess anything less than 100K should be ok.
  2. If still you are getting the same error, try increasing the memory_limit value in php.ini to 12M or 16M. Check this page for info on memory_limit. If you don’t have access to your server, you may have to talk with your host provider.

I believe the first solution will fix this error, in most of the cases. Do let me know in the comments, if you come across any other solutions.

Testing Windows Live Writer 2008

Just now installed Windows Live Writer 2008 (Final); The installer they have there is just around 2.3MB, but it downloads the actual Live Writer binaries later. When you execute this "small" file, it scans through your computer for other Live programs (WHY??!!) and offers you a screen full of other Live programs that you *should* try…WTH??

Why is this installer trying to be smart? If I need other Live products, I will download them, just like how I downloaded this. Why MS should push down my throat all their other products?? Irritating!

Also, during the "Detecting other Live programs" phase, I was staring at the progress bar, for a solid 15mins??? Man…what the hell was the program doing at that time?? I should probably setup a VMWare machine and try installing this with Process Explorer/FileMon/RegMon/PortMon running in the background. Oh..btw, before someone starts pointing out that it could be because of my machine, wait…mine is a Core 2 duo + 965GF + 2GB RAM + 1TB RAID0. It is fast enough. Adobe Photoshop CS3 tryout starts in 3 seconds flat!

CodeMuseumAnyway, now that Live Writer is finally installed and running (I am typing there, right? :) ), I want to try out the image scaling/uploading features:

I have setup Live Writer to upload my pictures to my FTP. If this works fine, I guess, one of my major reqs is met.

One cool thing about the way Live Writer handles pictures is, the ease with which you can create a thumbnail and all the possible effects (drop shadow / photo border/…) you can add to the images…Beats Wordpress’s post editor anytime!

Looks like things work as expected…Kudos to the WLW team for a decent product. If only their packaging / installer team could do something about the Live Installer, I guess WLW will make a pretty neat tool.

Oh..btw, did I tell you WLW supports Wordpress 2.3 seamlessly??! ok..not so seamlessly; Support for the new Wordpress tags feature is missing out of the box, but you can easily add it as explained  here.

[Update: 2037 IST]

One nice to have feature: When you post something using WLW, it shows the following progress window:

Publishing post

Looks nice, but not informative. If it shows the current action being performed (like, "Uploading the image to ftp:/…." or "Authentication done. Posting now…"), it will be helpful for debugging (if a problem arises). These details can be hidden from the normal user with a collapsed expandable-section in the progress window.

Chaos!

Lot of things happening right now in my life; Am stuck in the middle of a group transition, with the additional responsibility of arranging a function in my house (Ahhh!) + my pet projects demanding more and more time….Whew, I wonder how the company senior VPs and GMs manage to squeeze in some time for their family amidst their busy schedule!!

I managed to setup a full fledged media center last week, at last! I moved over from TVersity to Vista Media center, using my Xbox360 as the extender. Setting up transcode360 was pretty challenging though…I will post regarding this later. Also, fixed my old computer (a P4), so now I can use this as the download-station (?!) and leave my C2Duo for other important things (hmm…like, movie watching, browsing… :-P )

Amidst all this chaos, over the past 3 weeks I managed to watch around 10 East-Asian films too, don’t ask me how!

  • JennyJuno (Japanese)
  • RPoint (Korean)
  • The legend of the seven cutter (Kariseuma talchulgi) (Korean)
  • Infernal affairs (Korean)
  • Dog bite dog (Gau ngao gau) – Vietnamese/Cantonese/Thai
  • Suicide club (Japanese)
  • Death note 1 & 2 (Japanese)
  • Shaolin soccer (Chinese)

I have the Infernal affairs (2 & 3) and Romantic Warriors DVDs, don’t know when I will watch them.

Finally caught up with the reports of Mtel masters 2007 by updating my Chess blog, today. Starting this Sunday, World Chess Candidates matches are also starting, I hope I get enough time to watch them live (I know, I know, it is too much to ask for!). One thing I haven’t been able to concentrate is my Chessvideos blog, will appreciate if someone can help me out there.

Coolcode.cn (Wordpress plugin) site down!

Today morning I was surprised to see a couple of mails complaining that the videos I posted earlier here and here are not working! I checked them last night (ok…at 1am..technically it is today morning!) and they were fine. I use the excellent coolplayer 9.3 plugin in my Wordpress blog. I logged in to my account and checked the coolplayer options. They looked fine, anyway I didn’t change any of these things and they were working fine yesterday. So, what’s wrong?

Click to enlarge

Then, I noticed that the RPC server ping was not working. As you can see from the picture (click to enlarge, the RED ones are the errors), the coolcode.cn is returning a 503. My page just gets blocked for 19-20seconds, trying to get the rpc.php in coolcode to work! The site is obviously down and has taken all my videos down with it, I wonder how many more sites are also affected by this!

Man, how I wish I had installed the RPC server in my machine :-( I couldn’t find a mirror with that zip anywhere. Till I setup my own RPC server, please do bear with the slow loading speed. Thanks.

Update (Mar 16,07 02:07pm IST): Hooray….the site is up and I have downloaded the needed zips :)

Update (Mar 16,07 03:00pm IST): Ok, I have the RPC setup in my machine now. No more worries.

Tamil Blog

UPDATE: Mar 01, 2007 – I have updated the links in this post with the latest address.

Started a Tamil Blog @ http://chathurangam.blogspot.com. I’d be happy if you could check it out & may be post a comment or two!

This is for my Tamil speaking friends…

[TAMIL]

எனது வலைப்பூ http://chathurangam.blogspot.com/ என்ற இடத்தில் உள்ளது. நேரம் கிடைக்கும்போது பெரியவங்க நீங்க அங்க வந்து ஒரு பின்னூட்டம் போட்டீங்கன்னா சந்தோஷப்படுவேன்.

[/TAMIL]