<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Automattic Stats, or PHP 5.2.2 vs. WordPress XMLRPC</title>
	<atom:link href="http://www.hyperborea.org/journal/2007/05/automattic-stats/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/</link>
	<description>Sci-fi, comics, humor, photos...it&#039;s all fair game.</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:58:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Kelson</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-22092</link>
		<dc:creator>Kelson</dc:creator>
		<pubDate>Fri, 25 May 2007 00:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-22092</guid>
		<description>Hmm, that&#039;s all I had to do on mine, but maybe it needs its cache flushed.  According to Andy Skelton&#039;s comment above, you can do that by changing your permalink structure. (Admin/Options/Permalinks)
Maybe it&#039;ll help if you change that, check your stats, then change it back?</description>
		<content:encoded><![CDATA[<p>Hmm, that&#8217;s all I had to do on mine, but maybe it needs its cache flushed.  According to Andy Skelton&#8217;s comment above, you can do that by changing your permalink structure. (Admin/Options/Permalinks)</p>
<p>Maybe it&#8217;ll help if you change that, check your stats, then change it back?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylvain</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-22087</link>
		<dc:creator>Sylvain</dc:creator>
		<pubDate>Fri, 25 May 2007 00:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-22087</guid>
		<description>Hi Kelson,
Thanks for the tip, upgrading my XMLRPC file worked fine... except for one thing: only the posts I saved after I installed the plugin show up properly in my stats, i.e. I need to save old posts one by one again. Is there any way around this?
Thanks in advance,
Sylvain</description>
		<content:encoded><![CDATA[<p>Hi Kelson, </p>
<p>Thanks for the tip, upgrading my XMLRPC file worked fine&#8230; except for one thing: only the posts I saved after I installed the plugin show up properly in my stats, i.e. I need to save old posts one by one again. Is there any way around this?</p>
<p>Thanks in advance,</p>
<p>Sylvain</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelson</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21768</link>
		<dc:creator>Kelson</dc:creator>
		<pubDate>Thu, 17 May 2007 20:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21768</guid>
		<description>That does sound like the same problem.  Where&#039;d you put the new line?  I should have been a bit more specific in my description, but it should go right before the line, &lt;code&gt;if ( isset($HTTP_RAW_POST_DATA) )&lt;/code&gt;
WordPress decided to &lt;a href=&quot;http://trac.wordpress.org/ticket/4248&quot;&gt;include the workaround&lt;/a&gt; in version 2.2, which they released yesterday.  So you can either use the patch attached to that Trac ticket, or upgrade, and it should solve the problem.</description>
		<content:encoded><![CDATA[<p>That does sound like the same problem.  Where&#8217;d you put the new line?  I should have been a bit more specific in my description, but it should go right before the line, <code>if ( isset($HTTP_RAW_POST_DATA) )</code></p>
<p>WordPress decided to <a href="http://trac.wordpress.org/ticket/4248">include the workaround</a> in version 2.2, which they released yesterday.  So you can either use the patch attached to that Trac ticket, or upgrade, and it should solve the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylvain</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21738</link>
		<dc:creator>Sylvain</dc:creator>
		<pubDate>Thu, 17 May 2007 05:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21738</guid>
		<description>Hi there!
I don&#039;t know if you can help me, but my problem is somewhat similar to yours. I&#039;ve also installed the automattic stats plugin, but in my &quot;Top Posts&quot; stats I only get numeric IDs with no title, but most of those IDs are non-existent. When I try to enter the numeric ID manually in the address bar, I get an error message saying no post matched that criteria. All of the IDs link to my blog&#039;s URL, with an extra slash at the end, i.e. (http://www.sylvainbouchard.com/wpblog//).
I&#039;ve tried to modifiy WordPress’ xmlrpc.php as you advised, but nothing happened. Any ideas?</description>
		<content:encoded><![CDATA[<p>Hi there!</p>
<p>I don&#8217;t know if you can help me, but my problem is somewhat similar to yours. I&#8217;ve also installed the automattic stats plugin, but in my &#8220;Top Posts&#8221; stats I only get numeric IDs with no title, but most of those IDs are non-existent. When I try to enter the numeric ID manually in the address bar, I get an error message saying no post matched that criteria. All of the IDs link to my blog&#8217;s URL, with an extra slash at the end, i.e. (<a href="http://www.sylvainbouchard.com/wpblog//" >http://www.sylvainbouchard.com/wpblog//</a>).</p>
<p>I&#8217;ve tried to modifiy WordPress’ xmlrpc.php as you advised, but nothing happened. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dot unplanned &#187; Note to Other WordPress Users Wondering Why the Hell Their Clients Are Acting Strangely With Dreamhost</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21452</link>
		<dc:creator>dot unplanned &#187; Note to Other WordPress Users Wondering Why the Hell Their Clients Are Acting Strangely With Dreamhost</dc:creator>
		<pubDate>Thu, 10 May 2007 21:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21452</guid>
		<description>[...] comment here has the fix. Add the following line to {WordPress [...]</description>
		<content:encoded><![CDATA[<p>[...] comment here has the fix. Add the following line to {WordPress [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelson</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21311</link>
		<dc:creator>Kelson</dc:creator>
		<pubDate>Mon, 07 May 2007 23:57:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21311</guid>
		<description>It&#039;s not Suhosin, and it&#039;s not APC.  I disabled both extensions, and backed out the Suhosin patch, and it still failed to update unless I added that extra line.</description>
		<content:encoded><![CDATA[<p>It&#8217;s not Suhosin, and it&#8217;s not APC.  I disabled both extensions, and backed out the Suhosin patch, and it still failed to update unless I added that extra line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Skelton</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21310</link>
		<dc:creator>Andy Skelton</dc:creator>
		<pubDate>Mon, 07 May 2007 23:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21310</guid>
		<description>Excellent troubleshooting, Kelson! The wordpress.com servers originate XMLRPC requests whenever they need to know about your posts. You can force this to happen by changing your permalink structure, which will trigger a flush because it obsoletes of all your post permalinks in our database.</description>
		<content:encoded><![CDATA[<p>Excellent troubleshooting, Kelson! The wordpress.com servers originate XMLRPC requests whenever they need to know about your posts. You can force this to happen by changing your permalink structure, which will trigger a flush because it obsoletes of all your post permalinks in our database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelson</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21305</link>
		<dc:creator>Kelson</dc:creator>
		<pubDate>Mon, 07 May 2007 23:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21305</guid>
		<description>OK... now I&#039;m really confused, because I did some more tests, and it &lt;b&gt;is&lt;/b&gt; setting that variable.  (It just doesn&#039;t show up in phpinfo)
It works fine on my test page on the same server with the same config, but not in WordPress&#039; XMLRPC code.  I have to use that workaround.
It doesn&#039;t make any sense.</description>
		<content:encoded><![CDATA[<p>OK&#8230; now I&#8217;m really confused, because I did some more tests, and it <b>is</b> setting that variable.  (It just doesn&#8217;t show up in phpinfo)</p>
<p>It works fine on my test page on the same server with the same config, but not in WordPress&#8217; XMLRPC code.  I have to use that workaround.</p>
<p>It doesn&#8217;t make any sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelson</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21304</link>
		<dc:creator>Kelson</dc:creator>
		<pubDate>Mon, 07 May 2007 22:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21304</guid>
		<description>Well, I tried turning register_globals on, and I tried setting always_populate_raw_post_data to On, but nothing changed.  I even tried submitting a test form to a phpinfo page, and it just wasn&#039;t setting that variable.
I did find that apparently the &quot;preferred&quot; method of getting raw info is now to use php://input.  I added the following line at the beginning of WordPress&#039; xmlrpc.php:
&lt;code&gt;$HTTP_RAW_POST_DATA = file_get_contents(&quot;php://input&quot;);&lt;/code&gt;
Now it works.  It served up a 37 KB XMLRPC response, and the stats filled in all the missing titles and links.  It didn&#039;t make any more requests when I clicked around.  I re-enabled everything, then went back again, and it made another request, pulling 594 B of data that presumably included info on another post that got accessed.
I&#039;ll keep looking into why that variable isn&#039;t getting set.  For the record, the server is currently using PHP 5.2.2 with Suhosin Patch 0.9.6.2 and Suhosin Extension 0.9.19.
At least there&#039;s a workaround for now.  Once I have a little more info, I&#039;ll submit a bug report to Trac, since it looks like a compatibility issue with WordPress and hosting config.</description>
		<content:encoded><![CDATA[<p>Well, I tried turning register_globals on, and I tried setting always_populate_raw_post_data to On, but nothing changed.  I even tried submitting a test form to a phpinfo page, and it just wasn&#8217;t setting that variable.</p>
<p>I did find that apparently the &#8220;preferred&#8221; method of getting raw info is now to use php://input.  I added the following line at the beginning of WordPress&#8217; xmlrpc.php:</p>
<p><code>$HTTP_RAW_POST_DATA = file_get_contents("php://input");</code></p>
<p>Now it works.  It served up a 37 KB XMLRPC response, and the stats filled in all the missing titles and links.  It didn&#8217;t make any more requests when I clicked around.  I re-enabled everything, then went back again, and it made another request, pulling 594 B of data that presumably included info on another post that got accessed.</p>
<p>I&#8217;ll keep looking into why that variable isn&#8217;t getting set.  For the record, the server is currently using PHP 5.2.2 with Suhosin Patch 0.9.6.2 and Suhosin Extension 0.9.19.</p>
<p>At least there&#8217;s a workaround for now.  Once I have a little more info, I&#8217;ll submit a bug report to Trac, since it looks like a compatibility issue with WordPress and hosting config.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelson</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21302</link>
		<dc:creator>Kelson</dc:creator>
		<pubDate>Mon, 07 May 2007 22:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21302</guid>
		<description>Well, that didn&#039;t help.  Now that I know what to look for, I&#039;m tracking RPC requests in the logs.  After disabling the Suhosin extension, nothing changed.  It looks like the WP.com server farm is sending an RPC each time I access a page on the stats, and while I can&#039;t see *what* my server is replying with, it&#039;s the same 42-byte length.
I searched through the source on the Suhosin extension, and all it does with $HTTP_RAW_POST_DATA is make sure that the user-agent isn&#039;t trying to set that variable.  And it doesn&#039;t appear at all in the corresponding patch.</description>
		<content:encoded><![CDATA[<p>Well, that didn&#8217;t help.  Now that I know what to look for, I&#8217;m tracking RPC requests in the logs.  After disabling the Suhosin extension, nothing changed.  It looks like the WP.com server farm is sending an RPC each time I access a page on the stats, and while I can&#8217;t see *what* my server is replying with, it&#8217;s the same 42-byte length.</p>
<p>I searched through the source on the Suhosin extension, and all it does with $HTTP_RAW_POST_DATA is make sure that the user-agent isn&#8217;t trying to set that variable.  And it doesn&#8217;t appear at all in the corresponding patch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelson</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21300</link>
		<dc:creator>Kelson</dc:creator>
		<pubDate>Mon, 07 May 2007 22:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21300</guid>
		<description>Thanks for looking into this!
That error seems to be generated by WordPress, in class-IXR.php.  It indicates that $HTTP_RAW_POST_DATA does not exist.
I&#039;m having a hard time finding anything definitive about that variable in the PHP documentation.  We have register_globals turned off, but it&#039;s not clear whether this variable is supposed to be global anyway, or whether it&#039;s supposed to appear in one of the global arrays, or what.  All I&#039;m finding in the PHP docs are third-party comments.
Anyway, we also have &lt;a href=&quot;http://www.hardened-php.net/suhosin/index.html&quot;&gt;suhosin&lt;/a&gt; installed on this server, a patch and an extension for increasing PHP security.  It&#039;s possible that might be seeing something odd and blocking the variable.  I&#039;ve turned off the extension for now to see if it makes a difference.</description>
		<content:encoded><![CDATA[<p>Thanks for looking into this!</p>
<p>That error seems to be generated by WordPress, in class-IXR.php.  It indicates that $HTTP_RAW_POST_DATA does not exist.</p>
<p>I&#8217;m having a hard time finding anything definitive about that variable in the PHP documentation.  We have register_globals turned off, but it&#8217;s not clear whether this variable is supposed to be global anyway, or whether it&#8217;s supposed to appear in one of the global arrays, or what.  All I&#8217;m finding in the PHP docs are third-party comments.</p>
<p>Anyway, we also have <a href="http://www.hardened-php.net/suhosin/index.html">suhosin</a> installed on this server, a patch and an extension for increasing PHP security.  It&#8217;s possible that might be seeing something odd and blocking the variable.  I&#8217;ve turned off the extension for now to see if it makes a difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Skelton</title>
		<link>http://www.hyperborea.org/journal/2007/05/automattic-stats/#comment-21299</link>
		<dc:creator>Andy Skelton</dc:creator>
		<pubDate>Mon, 07 May 2007 21:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2007/05/07/automattic-stats/#comment-21299</guid>
		<description>Your XMLRPC server is receiving our POST requests and replying with &quot;XML-RPC server accespt POST requests only.&quot; Any idea why?</description>
		<content:encoded><![CDATA[<p>Your XMLRPC server is receiving our POST requests and replying with &#8220;XML-RPC server accespt POST requests only.&#8221; Any idea why?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
