Wordpress + piublicize + jetpack

#1
Bonjour
Est-ce qu'il y a quelqu'un qui a installé Wordpress et Jetpack sur un mutualité?
J'essaye de lier wordpress à un compte twitter mais j'ai une erreur publicize.
erreur 406,408 etc
Quand je teste le debug de jetpack, j'ai :
Code:
curl -d '<methodCall><methodName>demo.sayHello</methodName></methodCall>' http://spartankar.com/xmlrpc.php
J'ai:
Code:
<!DOCTYPE html>
<html style="height:100%">
<head><title> 406 Not Acceptable
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; ">     <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
       <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">406</h1>
<h2 style="margin-top:20px;font-size: 30px;">Not Acceptable
</h2>
<p>This request is not acceptable</p>
</div></div><div style="color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;">
<br>Proudly powered by  <a style="color:#fff;" href="http://www.litespeedtech.com/error-page">LiteSpeed Web Server</a><p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html>
Est-ce qu'il y a des restrictions pour xml-rpc sur les mutés?

Spartankar
 
#2
Bonjour
Est-ce qu'il y a quelqu'un qui a installé Wordpress et Jetpack sur un mutualité?
J'essaye de lier wordpress à un compte twitter mais j'ai une erreur publicize.
erreur 406,408 etc
Quand je teste le debug de jetpack, j'ai :
Code:
curl -d '<methodCall><methodName>demo.sayHello</methodName></methodCall>' http://spartankar.com/xmlrpc.php
J'ai:
Code:
<!DOCTYPE html>
<html style="height:100%">
<head><title> 406 Not Acceptable
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; ">     <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
       <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">406</h1>
<h2 style="margin-top:20px;font-size: 30px;">Not Acceptable
</h2>
<p>This request is not acceptable</p>
</div></div><div style="color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;">
<br>Proudly powered by  <a style="color:#fff;" href="http://www.litespeedtech.com/error-page">LiteSpeed Web Server</a><p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html>
Est-ce qu'il y a des restrictions pour xml-rpc sur les mutés?

Spartankar
Nous n'avons pas de restriction sur les requêtes faites au serveur sur le xmlrpc.php cependant lorsque vous faites des requêtes curl vous devez spécifier un user agent.

curl -d http://spartankar.com/xmlrpc.php --user-agent="UserAgent"
 
#3
Merci
C'est donc peut-être au niveau de jetpack qu'il y a un problème.
Dommage, Jetpack est plus ou moins le pligin de base :-(
 
#5
A priori, ce n'est un problème de user-agent. J'ai essayé avec et ca ne change rien.

Code:
curl -d --user-agent='Mozilla/4.0'  '<methodCall> <methodName>demo.sayHello</methodName></methodCall>' http://spartankar.com/xmlrpc.php
J'ai la meme erreur:
Code:
curl: (6) Couldn't resolve host '<methodCall> <methodName>demo.sayHello<'
<!DOCTYPE html>
<html style="height:100%">
<head><title> 406 Not Acceptable
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; ">     <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
        <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">406</h1>
<h2 style="margin-top:20px;font-size: 30px;">Not Acceptable
</h2>
<p>This request is not acceptable</p>
</div></div><div style="color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;">
<br>Proudly powered by  <a style="color:#fff;" href="http://www.litespeedtech.com/error-page">LiteSpeed Web Server</a><p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html>
Le support de Jetpack m'a envoyé des infos:
Code:
Hi Francois,

Can you contact your hosting provider and explain to them that we are unable to access your blog via cURL, which is needed in order to use Jetpack on your site.

You can let them know we tested the following:

1. Check for access to xmlrpc.php via browser: 
http://spartankar.com/xmlrpc.php

That test returned "XML-RPC server accepts POST requests only." which is a valid result.

2. Check for access via cURL by running the following command from the command prompt:
curl -i -H 'Content-Type: text/xml' --data '<?xml version="1.0&"?><methodCall><methodName>demo.sayHello</methodName><params></params></methodCall>' 'http://spartankar.com/xmlrpc.php'

As you are aware, the cURL test returned the following invalid result:

HTTP/1.1 406 Not Acceptable
Date: Thu, 28 Aug 2014 22:20:33 GMT
Server: LiteSpeed

Please provide the information above to your hosting provider so that they can correct the server settings to allow cURL access. Then, try to connect Jetpack once again.
 
Haut