<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>w00kie&#039;s ramblings &#187; bug</title>
	<atom:link href="http://w00kie.com/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://w00kie.com</link>
	<description>Living the good life in Japan</description>
	<lastBuildDate>Wed, 09 Nov 2011 14:40:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ctype_digit error in WordPress 2.5</title>
		<link>http://w00kie.com/2008/04/02/ctype_digit-error-in-wordpress-25/</link>
		<comments>http://w00kie.com/2008/04/02/ctype_digit-error-in-wordpress-25/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 04:57:26 +0000</pubDate>
		<dc:creator>w00kie</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://w00kie.com/?p=258</guid>
		<description><![CDATA[I've upgraded my blog to WordPress 2.5 last weekend. The new design of the admin backend is great and seeing things evolve like that really motivates me to pour more time into my blog and add some nice little functionalities &#8230; <a href="http://w00kie.com/2008/04/02/ctype_digit-error-in-wordpress-25/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-260" title="wordpress-image-upload" src="http://w00kie.com/uploads/2008/04/wordpress-image-upload.jpg" alt="wordpress-image-upload" width="213" height="103" />I've upgraded my blog to <a title="Wordpress 2.5 announcement post" href="http://wordpress.org/development/2008/03/wordpress-25-brecker/">WordPress 2.5</a> last weekend. The new design of the admin backend is great and seeing things evolve like that really motivates me to pour more time into my blog and add some nice little functionalities that I've been thinking about lately.</p>
<p>But it happens that I came upon an error when trying out the new image uploader and I'm sure many people will get it too:</p>
<blockquote><p><strong>PHP Fatal error:</strong> Call to undefined function ctype_digit() in wp-includes/link-template.php on line 182</p></blockquote>
<p>What happens is that my flavor of PHP5 is not compiled with the ctype flag. This seems to be the default on <a title="Gentoo Linux distribution" href="http://gentoo.org">Gentoo</a>, so if you run it be sure to add the ctype use flag to your <a title="Gentoo USE Flags FAQ" href="http://gentoo-wiki.com/FAQ_USE_Flags">portage config</a>. But if you can't recompile PHP, you can just open up the file <strong>wp-includes/link-template.php</strong> and replace the line 182 as follows:</p>
<blockquote><p>Replace <span style="text-decoration: line-through;"><strong><span style="color: #ff0000;">ctype_digit</span></strong></span> with <strong><span style="color: #00ff00;">is_numeric</span></strong></p></blockquote>
<p>That should do the trick until the version 2.5.1 that should patch things up according to what I see in the bug tracker (<a title="Wordpress issue #6534" href="http://trac.wordpress.org/ticket/6534">pending issue</a> on link-template.php and a <a title="Wordpress issue #5481" href="http://trac.wordpress.org/ticket/5481">similar issue</a> in another file already merged in 2.5).</p>
]]></content:encoded>
			<wfw:commentRss>http://w00kie.com/2008/04/02/ctype_digit-error-in-wordpress-25/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: w00kie.com @ 2012-02-12 08:06:08 -->
