<?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: How To: Fixing Popularity Contest Plugin for WordPress 2.5</title>
	<atom:link href="http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Sun, 21 Mar 2010 00:38:40 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Guillermo</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-4883</link>
		<dc:creator>Guillermo</dc:creator>
		<pubDate>Tue, 09 Dec 2008 20:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-4883</guid>
		<description>Better to use the ABSPATH constant provided by WordPress:

require(ABSPATH.’/wp-blog-header.php’);

so that the WP files can reside inside a directory.</description>
		<content:encoded><![CDATA[<p>Better to use the ABSPATH constant provided by WordPress:</p>
<p>require(ABSPATH.’/wp-blog-header.php’);</p>
<p>so that the WP files can reside inside a directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-4881</link>
		<dc:creator>Guillermo</dc:creator>
		<pubDate>Tue, 09 Dec 2008 20:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-4881</guid>
		<description>I patched popularity contest using the proposed fix. This plugin is running in WPMU. It seems to work, but the error_log file in the plugins directoy of WPMU contains hundreds of lines like:

[09-Dec-2008 13:07:40] PHP Fatal error:  require() [&lt;a href=&#039;function.require&#039; rel=&quot;nofollow&quot;&gt;function.require&lt;/a&gt;]: Failed opening required &#039;../wp-blog-header.php&#039; (include_path=&#039;.:/usr/lib/php:/usr/local/lib/php&#039;) in /home1/webdir/public_html/wp-content/plugins/popularity-contest.php on line 59

I fixed it like this:

require($_SERVER[&#039;DOCUMENT_ROOT&#039;].&#039;/wp-blog-header.php&#039;);</description>
		<content:encoded><![CDATA[<p>I patched popularity contest using the proposed fix. This plugin is running in WPMU. It seems to work, but the error_log file in the plugins directoy of WPMU contains hundreds of lines like:</p>
<p>[09-Dec-2008 13:07:40] PHP Fatal error:  require() [<a href='function.require' rel="nofollow">function.require</a>]: Failed opening required &#8216;../wp-blog-header.php&#8217; (include_path=&#8217;.:/usr/lib/php:/usr/local/lib/php&#8217;) in /home1/webdir/public_html/wp-content/plugins/popularity-contest.php on line 59</p>
<p>I fixed it like this:</p>
<p>require($_SERVER['DOCUMENT_ROOT'].&#8217;/wp-blog-header.php&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian R.</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-4565</link>
		<dc:creator>Adrian R.</dc:creator>
		<pubDate>Wed, 26 Nov 2008 14:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-4565</guid>
		<description>Yup, the same problem for me with Wordpress 2.6.3. Any idea how to solve it?</description>
		<content:encoded><![CDATA[<p>Yup, the same problem for me with Wordpress 2.6.3. Any idea how to solve it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Torres</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-4473</link>
		<dc:creator>Ed Torres</dc:creator>
		<pubDate>Thu, 20 Nov 2008 20:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-4473</guid>
		<description>Same problem here with WordPress version 2.6.3. 

Besides the changes suggested here I also created a php.ini file at wp-admin folder and added this following line: memory=20MB (due to memory limitations of my ISP).

I am getting this following error:

&quot;It was not possible to activate the plugin due to a fatal error.&quot;</description>
		<content:encoded><![CDATA[<p>Same problem here with WordPress version 2.6.3. </p>
<p>Besides the changes suggested here I also created a php.ini file at wp-admin folder and added this following line: memory=20MB (due to memory limitations of my ISP).</p>
<p>I am getting this following error:</p>
<p>&#8220;It was not possible to activate the plugin due to a fatal error.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-4273</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 13 Nov 2008 09:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-4273</guid>
		<description>I&#039;ve changed both lines of code but still can&#039;t get it to work under Wordpress 2.6.3

Any ideas will help.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve changed both lines of code but still can&#8217;t get it to work under Wordpress 2.6.3</p>
<p>Any ideas will help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: El bug de Popularity Contest plugin en Wordpress 2.6 - Primate Blog</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-2189</link>
		<dc:creator>El bug de Popularity Contest plugin en Wordpress 2.6 - Primate Blog</dc:creator>
		<pubDate>Sun, 27 Jul 2008 13:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-2189</guid>
		<description>[...] El bug de Popularity Contest plugin en Wordpress 2.6 Escrito por Camilo el Domingo 27 de Julio de 2008  Publicado en plugins, wordpress View blog reactions Uno de mis plugins favoritos, el Popularity Contest de Alex King. Resulta que el otro día por fin actualicé a Wordpress 2.6 (hacía mucho que no tocaba el WP) y simplemente dejó de funcionar, dando un error fatal de esos. Me extraña que Alex no haya tocado su versión, siempre tan atento a la comunidad&#8230;Así que a buscar y aquí la solución. [...]</description>
		<content:encoded><![CDATA[<p>[...] El bug de Popularity Contest plugin en Wordpress 2.6 Escrito por Camilo el Domingo 27 de Julio de 2008  Publicado en plugins, wordpress View blog reactions Uno de mis plugins favoritos, el Popularity Contest de Alex King. Resulta que el otro día por fin actualicé a Wordpress 2.6 (hacía mucho que no tocaba el WP) y simplemente dejó de funcionar, dando un error fatal de esos. Me extraña que Alex no haya tocado su versión, siempre tan atento a la comunidad&#8230;Así que a buscar y aquí la solución. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chicken Say</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-2188</link>
		<dc:creator>Chicken Say</dc:creator>
		<pubDate>Fri, 27 Jun 2008 16:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-2188</guid>
		<description>Thanks for the tip...i was going to fix it myself but lazy to read thru the code again...luckily i found this page... :P</description>
		<content:encoded><![CDATA[<p>Thanks for the tip&#8230;i was going to fix it myself but lazy to read thru the code again&#8230;luckily i found this page&#8230; <img src='http://wphacks.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thaya Kareeson</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-2187</link>
		<dc:creator>Thaya Kareeson</dc:creator>
		<pubDate>Fri, 06 Jun 2008 00:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-2187</guid>
		<description>@Kyle Eslick
I would love to take over support for Popularity Contest as I already learned a lot of its internals, but the last time I chatted with him, it seems like he&#039;s not ready to let it go yet.  The only thing I can do is maybe come up with a better statistics plugin and publish that instead.</description>
		<content:encoded><![CDATA[<p>@Kyle Eslick<br />
I would love to take over support for Popularity Contest as I already learned a lot of its internals, but the last time I chatted with him, it seems like he&#8217;s not ready to let it go yet.  The only thing I can do is maybe come up with a better statistics plugin and publish that instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wang adsense</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-2186</link>
		<dc:creator>wang adsense</dc:creator>
		<pubDate>Fri, 06 Jun 2008 00:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-2186</guid>
		<description>Great, I been a while since my site lost their popular post.
Thanks for the guide.</description>
		<content:encoded><![CDATA[<p>Great, I been a while since my site lost their popular post.<br />
Thanks for the guide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Eslick</title>
		<link>http://wphacks.com/how-to-fixing-popularity-contest-plugin-for-wordpress-25/#comment-2185</link>
		<dc:creator>Kyle Eslick</dc:creator>
		<pubDate>Fri, 06 Jun 2008 00:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://wphacks.com/?p=598#comment-2185</guid>
		<description>Glad everyone found this post useful.   Like I said above, I only found it because I was having the same problems.

I know Alex is busy, but it would indeed be great if someone took over supporting his plugins?  He has a few that are almost required with any WordPress install.</description>
		<content:encoded><![CDATA[<p>Glad everyone found this post useful.   Like I said above, I only found it because I was having the same problems.</p>
<p>I know Alex is busy, but it would indeed be great if someone took over supporting his plugins?  He has a few that are almost required with any WordPress install.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
