<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Kakkoi &#187; Plugins</title>
	<atom:link href="http://42.kaizeku.com/topics/wordpress/plugins-wordpress-cms/feed/" rel="self" type="application/rss+xml" />
	<link>http://42.kaizeku.com</link>
	<description>web development, software, windows tips and trick</description>
	<pubDate>Sat, 12 Jul 2008 15:10:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Fix Gravatars2 PHP5 HTTPRequest Fatal Error</title>
		<link>http://42.kaizeku.com/tips/how-to-fixes-gravatars2-httprequest-fatal-error-php5-classname-conflicts/</link>
		<comments>http://42.kaizeku.com/tips/how-to-fixes-gravatars2-httprequest-fatal-error-php5-classname-conflicts/#comments</comments>
		<pubDate>Wed, 26 Dec 2007 19:41:00 +0000</pubDate>
		<dc:creator>Avice De'veréux</dc:creator>
		
		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[Tips]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[gravatars]]></category>

		<category><![CDATA[gravatars2]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://blog.kakkoi.net/tips/how-to-fixes-gravatars2-httprequest-fatal-error-php5-classname-conflicts/</guid>
		<description><![CDATA[I used <a href="http://zenpax.com/gravatars2/" rel="nofollow">gravatars2</a> plugins to support my <a href="http://theme.istalker.net">new sexy theme</a>. There is some minor issue (throw fatal Error in PHP5.1) with this WordPress plugin. I <a href="http://zenpax.com/gravatars2/discussion/#comment-2951" rel="nofollow">did asked</a> them to updated it but till today's this bug still exists with Gravatars2 plugins.

<pre class="prebox" style="height:50px;width:90%">
Plugin could not be activated because it triggered a <strong>fatal error</strong>.
Fatal error: Cannot redeclare class httprequest in /../wp-content/plugins/gravatars2.php on line 284
</pre>

This "fatal error" or conflict happen if you had PHP 5 ( 5.0 > 5.1 above) with  <a href="http://usphp.com/manual/en/function.httprequest-send.php">HTTPRequest</a> Modules Installed. ]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>I used <a href="http://zenpax.com/gravatars2/">gravatars2</a> plugins to support my <a href="http://theme.istalker.net">new sexy theme</a>. There is some minor issue (throw fatal Error in PHP5.1) with this WordPress plugin. I <a rel="nofollow" href="http://zenpax.com/gravatars2/discussion/#comment-2951">did asked</a> them to updated it but till today&#8217;s this bug still exists with Gravatars2 plugins.</p>
<p>This <em>&#8220;fatal error&#8221;</em> or conflict happen if you had PHP 5 ( 5.0 &gt; 5.1 above) with <a href="http://usphp.com/manual/en/ref.http.php">HTTPRequest</a> Modules Installed.<br />
<span id="more-111"></span></p>
<pre class="prebox" style="height:50px;width:550px;overflow:auto">
Plugin could not be activated because it triggered a <strong>fatal error</strong>.
Fatal error: Cannot redeclare class httprequest in /../wp-content/plugins/gravatars2.php on line 284
</pre>
<h2 class="sep">HTTPRequest Classname Conflict</h2>
<p>It&#8217;s not that hard to fix this &#8220;Naming Conflicts&#8221;. All you need is &#8220;Search and Replace&#8221; <strong>HTTPRequest</strong> class name to different name (ie: _HTTPRequest, HTTP__Request) so it wont conflict with PHP HTTPRequest Standard Class. If you don&#8217;t know how to do this. Check the below lists. It wont take long.</p>
<ol class="nfo">
<li>Open <tt>wp-content/plugins/gravatars2.php</tt> or <tt>http://www.my-domain-name.com/wp-admin/plugin-editor.php?file=gravatars2.php</tt></li>
<li>Find on line <span class="b">284</span>
<pre>class HTTPRequest</pre>
<p>Replace with </p>
<pre>class _HTTPRequest</pre>
</li>
<li>Next find on line <span class="b">323</span>
<pre>function HTTPRequest($url, $timeout)</pre>
<p>Replace with </p>
<pre>function _HTTPRequest($url, $timeout)</pre>
</li>
<li>Final step find on line <span class="b">408</span>
<pre>$hr = new HTTPRequest($url, $timeout);</pre>
<p>Replace with </p>
<pre>$hr = new _HTTPRequest($url, $timeout);</pre>
</li>
<li>Save or upload back to wp-content/plugins/</li>
</ol>
<p>Thats all</p>
<h2 class="sep">Gravatars2</h2>
<p>For the record - &#8220;Gravatar2 developer doesn&#8217;t give support without donation&#8221;.</p>
<p><em>Excerpt from <a href="http://zenpax.com/gravatars2/discussion/#comment-1" rel="nofollow">Kip Bond at zenpax.com</a></em></p>
<blockquote cite="http://zenpax.com/gravatars2/discussion/#comment-1"><p>I am no longer giving support for this plugin without a donation — it’s becoming repetitive and not very rewarding. You can email me (kip @ this website’s hostname (zenpax.com)) with your question, and I can tell you what minimum donation amount is sufficient per the difficulty of the question. Note that this donation in no way obligates me to any contractual duties. It’s mostly a way to make sure that people have exhausted their own efforts at resolving their own problems before asking for my support. ~<a href="http://zenpax.com/">kip Bond</a></p></blockquote>
<p>I hope these would explain some curiosity.</p>
<p>tips to php developer: used <tt>class_exists</tt> before declaring any user define class.</p>
<h2 class="sep">Related Links</h2>
<ul>
<li><a href="http://zenpax.com/gravatars2/discussion/" rel="nofollow">Gravatars2 Discussion &#038; Support page</a>
</ul>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://42.kaizeku.com/tips/how-to-fixes-gravatars2-httprequest-fatal-error-php5-classname-conflicts/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
