<?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>thought-after &#187; Wordpress</title>
	<atom:link href="http://www.thought-after.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thought-after.com</link>
	<description>Geeky stuff by Lafinboy</description>
	<lastBuildDate>Mon, 24 Oct 2011 00:05:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Ad-minister plugin: Catchable fatal error</title>
		<link>http://www.thought-after.com/2010/08/ad-minister-plugin-catchable-fatal-error/</link>
		<comments>http://www.thought-after.com/2010/08/ad-minister-plugin-catchable-fatal-error/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 00:26:42 +0000</pubDate>
		<dc:creator>Lafinboy</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.thought-after.com/?p=131</guid>
		<description><![CDATA[Following the upgrade of WordPress to version 3.0 I noticed that there were some errors with the Ad-minister plugin, specifically on the main administration page (tools.php?page=ad-minister). The page was now &#8230; <a class="more" href="http://www.thought-after.com/2010/08/ad-minister-plugin-catchable-fatal-error/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Following the upgrade of WordPress to version 3.0 I noticed that there were some errors with the Ad-minister plugin, specifically on the main administration page (tools.php?page=ad-minister).</p>
<p>The page was now displaying an error message:</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;">Catchable fatal error<span class="sy0">:</span> Object of <span class="kw2">class</span> WP_Error could not be converted to string in <span class="sy0">***</span><span class="coMULTI">/***/</span><span class="sy0">***/</span>wp<span class="sy0">-</span>includes<span class="sy0">/</span>functions<span class="sy0">.</span>php<br />
on line <span class="nu0">302</span></div>
</div>
<p>The error is due to a change in the way new posts are created in WP3. The fix (until such time as the plugin is updated by the authors) is to replace the following section of code in the <em>administer_queue_scripts</em> function in the <em>ad-minister.php</em> file:</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="co1">// Create a new one</span><br />
<span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st_h">&#039;post_title&#039;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="st_h">&#039;Ad-minister Data Holder &#039;</span> <span class="sy0">.</span> <span class="re0">$nbr</span><span class="sy0">;</span><br />
<span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st_h">&#039;post_type&#039;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="st_h">&#039;administer&#039;</span><span class="sy0">;</span><br />
<span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st_h">&#039;content&#039;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="st_h">&#039;This post holds your Ad-minister data&#039;</span><span class="sy0">;</span><br />
<span class="re0">$id</span> <span class="sy0">=</span> wp_write_post<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
update_option<span class="br0">&#40;</span><span class="st_h">&#039;administer_post_id&#039;</span><span class="sy0">,</span> <span class="re0">$id</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</div>
<p>with the new code:</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="co1">// Create a new one</span><br />
<span class="re0">$adminster_post</span> <span class="sy0">=</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="re0">$adminster_post</span><span class="br0">&#91;</span><span class="st_h">&#039;post_title&#039;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="st_h">&#039;Ad-minister Data Holder &#039;</span> <span class="sy0">.</span> <span class="re0">$nbr</span><span class="sy0">;</span><br />
<span class="re0">$adminster_post</span><span class="br0">&#91;</span><span class="st_h">&#039;post_type&#039;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="st_h">&#039;administer&#039;</span><span class="sy0">;</span><br />
<span class="re0">$adminster_post</span><span class="br0">&#91;</span><span class="st_h">&#039;content&#039;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="st_h">&#039;This post holds your Ad-minister data&#039;</span><span class="sy0">;</span><br />
<span class="re0">$id</span> <span class="sy0">=</span> wp_insert_post<span class="br0">&#40;</span> <span class="re0">$adminster_post</span><span class="sy0">,</span><span class="kw4">true</span> <span class="br0">&#41;</span><span class="sy0">;</span><br />
update_option<span class="br0">&#40;</span><span class="st_h">&#039;administer_post_id&#039;</span><span class="sy0">,</span> <span class="re0">$id</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thought-after.com/2010/08/ad-minister-plugin-catchable-fatal-error/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New beginnings</title>
		<link>http://www.thought-after.com/2006/03/new-beginnings/</link>
		<comments>http://www.thought-after.com/2006/03/new-beginnings/#comments</comments>
		<pubDate>Tue, 28 Feb 2006 23:30:13 +0000</pubDate>
		<dc:creator>Lafinboy</dc:creator>
				<category><![CDATA[thought-after]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.thought-after.com/archives/4</guid>
		<description><![CDATA[After my first dismal attempt at a blog I&#039;ve had a rethink and started afresh. It would appear that for a blog to be any kind of success, or even &#8230; <a class="more" href="http://www.thought-after.com/2006/03/new-beginnings/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>After my first dismal attempt at a blog I&#039;ve had a rethink and started afresh.</p>
<p>It would appear that for a blog to be any kind of success, or even considered a blog, it needs to have content! My first (halfhearted) attempt was sorely lacking in this regard, but with the latest release of <a title="Semantic personal publishing platform" href="http://wordpress.org/">WordPress</a>, and some great new plugins to help with <a title="Code Snippet - display code with highlighting" href="http://blog.enargi.com/codesnippet/">code highlighting</a>, I can now justify spending time putting finger to keyboard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thought-after.com/2006/03/new-beginnings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

