Fix Windows Live Writer émission avec WordPress
J'ai toujours été en utilisant Windows Live Writer (WLW) par écrit mes blogs et contre leur annonce à la fois site WordPress www.ningzhang.org et Blogger site blog.ningzhang.org , très pratique. Hier je suis tombé sur les questions d'ouverture et annonce à mon WordPress site en utilisant Windows Live Writer: j'ai une boîte de dialogue d'erreur disant
Réponse du serveur non valide - La réponse à la méthode metaWeblog.newMediaObject reçue du serveur blog est invalide
J'ai cherché sur le web, a essayé quelques petites choses, et résolu le problème assez rapidement. Partager mes conclusions ici dans l'espoir il peut être utile pour d'autres rencontrent des problèmes similaires.
Connectez-vous Windows Live Writer
WLW a log assez bonne. Open Aide-> À propos de Windows Live Writer élément de menu:
Vous pourrez voir des propos de dialogue, cliquez sur Afficher le journal de fichier lien:
![]()
le dossier "%% localappdata \ Windows Live Writer» apparaît, qui contient "Windows Live Writer.log fichier". J'ai copié le journal des erreurs pertinentes ci-dessous. Très bon trace de la pile, très utile pour le débogage et le diagnostic ![]()
WindowsLiveWriter, 1,7696, échec ,00031,30-Apr-2009 01:28:58.595 », WindowsLive.Writer.Extensibility.BlogClient.BlogClientInvalidServerResponseException: Blancs Réponse du serveur - La réponse à la méthode metaWeblog.newMediaObject reçue du serveur blog est invalide: document de réponse Blancs retour de serveur XMLRPC à WindowsLive.Writer.BlogClient.Clients.XmlRpcBlogClient.CallMethod (methodName String, XmlRpcValue [paramètres]) à WindowsLive.Writer.BlogClient.Clients.MetaweblogClient.DoBeforePublishUploadWork (uploadContext IFileUploadContext) à WindowsLive.Writer.PostEditor.WeblogBlogFileUploader.DoUploadWorkBeforePublish (uploadContext IFileUploadContext) à WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.FileUploadWorker.DoUploadWork (FileReference String, BlogFileUploader FileUploader, Boolean isWindowsLiveLightboxCloneEnabled) à WindowsLive.Writer.PostEditor.BlogPostReferenceFixer.LocalFileTransformer.Transform (tag BeginTag, référence à cordes) à WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.LocalFileReferenceFixupFilter.FixReferences (tag BeginTag, référence à cordes) à WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.OnBeginTag (tag BeginTag) à WindowsLive.Writer.CoreServices.LightWeightHTMLDocumentIterator.Parse () à WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixReferences (sortie TextWriter, referenceFixer ReferenceFixer, ReferenceFixedCallback referenceFixed) à WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixReferences (html String, fixateur ReferenceFixer, ReferenceFixedCallback referenceFixed) à WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences (html String, fixateur ReferenceFixer, ReferenceFixedCallback referenceFixed) à WindowsLive.Writer.CoreServices.HTML.HtmlReferenceFixer.FixLocalFileReferences (html String, fixateur ReferenceFixer) à WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.LocalSupportingFileUploader.UploadFilesBeforePublish () à WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.DoWork () à ()"," WindowsLive.Writer.CoreServices.AsyncOperation.InternalStart à System.Environment.GetStackTrace (Exception e, needFileInfo Boolean) à System.Environment.get_StackTrace () à WindowsLive.Writer.CoreServices.Diagnostics.LogFileTraceListener.Fail (String message) à System.Diagnostics.TraceInternal.Fail (String message) à System.Diagnostics.Trace.Fail (String message) à WindowsLive.Writer.PostEditor.BlogPostEditingManager.UpdateWeblog (Boolean) publie à WindowsLive.Writer.PostEditor.BlogPostEditingManager.PostToWeblog (Boolean) publie à WindowsLive.Writer.PostEditor.BlogPostEditingManager.PublishAsDraft () à WindowsLive.Writer.PostEditor.PostEditorMainControl.commandPostAsDraft_Execute (Object sender, EventArgs e) à WindowsLive.Writer.ApplicationFramework.Command.RaiseEvent (eventKey Object, EventArgs e) à WindowsLive.Writer.ApplicationFramework.Command.OnExecute (EventArgs e) à WindowsLive.Writer.ApplicationFramework.CommandOwnerDrawMenuItem.OnClick (EventArgs e) à System.Windows.Forms.MenuItem.MenuItemData.Execute () à System.Windows.Forms.Command.Invoke () à System.Windows.Forms.Command.DispatchID (Int32 id) à System.Windows.Forms.Control.WmCommand (Message & m) à System.Windows.Forms.Control.WndProc (Message & m) à System.Windows.Forms.ScrollableControl.WndProc (Message & m) à System.Windows.Forms.ContainerControl.WndProc (Message & m) à System.Windows.Forms.Form.WndProc (Message & m) à WindowsLive.Writer.ApplicationFramework.ApplicationForm.WndProc (Message & m) à WindowsLive.Writer.ApplicationFramework.SatelliteApplicationForm.WndProc (Message & m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Message & m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc (Message & m) à System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wParam, lParam IntPtr) à System.Windows.Forms.NativeWindow.DefWndProc (Message & m) à System.Windows.Forms.NativeWindow.WndProc (Message & m) à WindowsLive.Writer.PostEditor.ImageInsertion.InsertImageDialog.ThumbnailReadinessListener.WndProc (Message & m) à System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wParam, lParam IntPtr) à System.Windows.Forms.NativeWindow.DefWndProc (Message & m) à System.Windows.Forms.NativeWindow.WndProc (Message & m) à WindowsLive.Writer.PostEditor.ImageInsertion.InsertImageDialog.ThumbnailReadinessListener.WndProc (Message & m) à System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wParam, lParam IntPtr) à System.Windows.Forms.NativeWindow.DefWndProc (Message & m) à System.Windows.Forms.NativeWindow.WndProc (Message & m) à WindowsLive.Writer.PostEditor.ImageInsertion.InsertImageDialog.ThumbnailReadinessListener.WndProc (Message & m) à System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wParam, lParam IntPtr) à System.Windows.Forms.NativeWindow.DefWndProc (Message & m) à System.Windows.Forms.NativeWindow.WndProc (Message & m) à WindowsLive.Writer.PostEditor.ImageInsertion.InsertImageDialog.ThumbnailReadinessListener.WndProc (Message & m) à System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wParam, lParam IntPtr) à System.Windows.Forms.NativeWindow.DefWndProc (Message & m) à System.Windows.Forms.NativeWindow.WndProc (Message & m) à WindowsLive.Writer.PostEditor.ImageInsertion.InsertImageDialog.ThumbnailReadinessListener.WndProc (Message & m) à System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wParam, lParam IntPtr) à System.Windows.Forms.NativeWindow.DefWndProc (Message & m) à System.Windows.Forms.NativeWindow.WndProc (Message & m) à WindowsLive.Writer.PostEditor.ImageInsertion.InsertImageDialog.ThumbnailReadinessListener.WndProc (Message & m) à System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wParam, lParam IntPtr) à System.Windows.Forms.NativeWindow.DefWndProc (Message & m) à System.Windows.Forms.NativeWindow.WndProc (Message & m) à WindowsLive.Writer.PostEditor.ImageInsertion.InsertImageDialog.ThumbnailReadinessListener.WndProc (Message & m) à System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wParam, lParam IntPtr) à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW (MSG & msg) à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (Int32 dwComponentID, en raison Int32, Int32 pvLoopData) à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner (Int32 raison, le contexte ApplicationContext) à System.Windows.Forms.Application.ThreadContext.RunMessageLoop (Int32 raison, le contexte ApplicationContext) à System.Windows.Forms.Application.Run (MainForm formulaire) à WindowsLive.Writer.ApplicationFramework.SatelliteApplicationForm.Launcher.ThreadMain (Object [paramètres]) à WindowsLive.Writer.CoreServices.Threading.ThreadStartWithParams.Run () à System.Threading.ThreadHelper.ThreadStart_Context (état de l'objet) à System.Threading.ExecutionContext.Run (executionContext ExecutionContext, rappel ContextCallback, état de l'objet) à System.Threading.ThreadHelper.ThreadStart () "
Il est le plug-in Gold Star Rating!
Depuis WLW a toujours travaillé très bien avec mon site WordPress jusqu'à maintenant, alors je suppose qu'elle est certains changements récents sur mon site WordPress, et très probablement mises à jour plugin dernières années, alors j'ai essayé de désactiver les plugins un par un. J'ai eu la chance! Comme je savais ce que les plugins j'ai mis à jour dernièrement, alors j'ai désactivé Gold Note plugin Démarrer , puis utilisez WLW d'ouvrir et de poste, et cela a fonctionné!
Mises à jour
05/05/2009
J'ai couru à nouveau cette erreur en publiant un poste à partir de Windows Live Writer:

Windows Live Writer journal affiche message d'erreur semblable et la pile d'appels comme avant. J'ai ouvert error_log dans le répertoire racine de mon site WordPress, il a quelque chose comme ceci:
05-May-2009 08:10:59] PHP Fatal error: Admis taille de la mémoire de 33.554.432 octets épuisé (tried to allocate 865469 bytes) in] / [deleted / wp-includes/class-IXR.php en ligne 242
et la ligne 242 de classe IXR.php est la deuxième ligne ci-dessous:
: case 'base64': ->_currentTagContents ) ); $ Value = base64_decode (trim ($ this - _currentTagContents>)); valueFlag $ = true; break;
Ainsi, il semble que cela a manqué de mémoire tout en base64_decode une image. J'ai enlevé la plus grande image dans mon post projet de poste, à un blog, et il réussit. J'ai alors modifié le projet de WordPress interface utilisateur Web, sélectionnez Ajouter une image de l'ordinateur et insérez-le à la poste:
et elle a réussi.
Je ne sais pas vraiment WordPress ou PHP en tant que développeur, donc si quelqu'un sait comment faire cela mieux, s'il vous plaît faites le moi savoir. Une approche générale novice utilisateur semble:
- projet de post sur le serveur souvent à identifier l'image trouble pendant que vous êtes auteur
- Charger et insérer l'image afin d'envoyer de l'interface utilisateur web WordPress








Les commentaires récents