<?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"
	>
<channel>
	<title>Comments on: Error Management for WordPress Plugins</title>
	<atom:link href="http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/</link>
	<description>Weblog Tools Blogging Tools Blog</description>
	<pubDate>Tue, 02 Dec 2008 15:27:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Fehlerbehandlung für WordPress Plugins</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1229595</link>
		<dc:creator>Fehlerbehandlung für WordPress Plugins</dc:creator>
		<pubDate>Tue, 10 Jun 2008 05:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1229595</guid>
		<description>[...] wird auf weblogtoolscollection.com schön beschrieben. Dieser Beitrag beschreibt die Fehlerbehandlung mittels der WordPress-eigenen Klasse WP_Error und stellt [...]</description>
		<content:encoded><![CDATA[<p>[...] wird auf weblogtoolscollection.com schön beschrieben. Dieser Beitrag beschreibt die Fehlerbehandlung mittels der WordPress-eigenen Klasse WP_Error und stellt [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress Wednesday News: Which Bookmarklet, WordPress 2.5.1 Mandatory Upgrade, WordPress Plugin Contest, WordCamp 2008 in San Francisco, and WordPress Mugs : The Blog Herald</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225933</link>
		<dc:creator>WordPress Wednesday News: Which Bookmarklet, WordPress 2.5.1 Mandatory Upgrade, WordPress Plugin Contest, WordCamp 2008 in San Francisco, and WordPress Mugs : The Blog Herald</dc:creator>
		<pubDate>Thu, 08 May 2008 03:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225933</guid>
		<description>[...] Plugin Error Management: Weblog Tools Collection offers &#8220;Error Management for WordPress Plugins&#8221;, tips for improving how a WordPress Plugin handles and responds to errors using the [...]</description>
		<content:encoded><![CDATA[<p>[...] Plugin Error Management: Weblog Tools Collection offers &#8220;Error Management for WordPress Plugins&#8221;, tips for improving how a WordPress Plugin handles and responds to errors using the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Dsouza</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225704</link>
		<dc:creator>Keith Dsouza</dc:creator>
		<pubDate>Tue, 06 May 2008 04:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225704</guid>
		<description>Great find Ronald, this will definitely help me handle errors better in the future. I would want a more better error handling though for storing run time errors which are incurred while a plugin runs, the possibilities are immense and can be easily extended with this find.</description>
		<content:encoded><![CDATA[<p>Great find Ronald, this will definitely help me handle errors better in the future. I would want a more better error handling though for storing run time errors which are incurred while a plugin runs, the possibilities are immense and can be easily extended with this find.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225627</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Mon, 05 May 2008 13:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225627</guid>
		<description>@Alex

I built something like that for the core, which would allow for your plugin to hook into it and extend it further by sending errors through syslog or anything else for that matter.

However the patch is imperfect and I will have time to show it some love in a couple of weeks. It would be nice if you could find that ticket and give some input on its implementation. The more feedback, the better the next patch will be.</description>
		<content:encoded><![CDATA[<p>@Alex</p>
<p>I built something like that for the core, which would allow for your plugin to hook into it and extend it further by sending errors through syslog or anything else for that matter.</p>
<p>However the patch is imperfect and I will have time to show it some love in a couple of weeks. It would be nice if you could find that ticket and give some input on its implementation. The more feedback, the better the next patch will be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225615</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 05 May 2008 11:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225615</guid>
		<description>I would like to add that there is a &lt;a href="http://www.zirona.com/software/wpsyslog-wordpress-syslog/" rel="nofollow"&gt;syslogging plugin for WordPress&lt;/a&gt; available, which allows plugin authors to log errors and other events persistently.</description>
		<content:encoded><![CDATA[<p>I would like to add that there is a <a href="http://www.zirona.com/software/wpsyslog-wordpress-syslog/">syslogging plugin for WordPress</a> available, which allows plugin authors to log errors and other events persistently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Huereca</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225588</link>
		<dc:creator>Ronald Huereca</dc:creator>
		<pubDate>Mon, 05 May 2008 07:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225588</guid>
		<description>@Jacob,

Yes, extending the class would open up a nice realm of possibilities, but I wanted to keep the example simple.  

I'm glad you liked the example, and I too would like to see error handling become the norm rather than the exception (no pun intended).

@Dhruva,

Thanks a lot.  I hope this helps you out with error handling.</description>
		<content:encoded><![CDATA[<p>@Jacob,</p>
<p>Yes, extending the class would open up a nice realm of possibilities, but I wanted to keep the example simple.  </p>
<p>I&#8217;m glad you liked the example, and I too would like to see error handling become the norm rather than the exception (no pun intended).</p>
<p>@Dhruva,</p>
<p>Thanks a lot.  I hope this helps you out with error handling.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhruva Sagar</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225573</link>
		<dc:creator>Dhruva Sagar</dc:creator>
		<pubDate>Mon, 05 May 2008 03:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225573</guid>
		<description>I use a lot of plugins and I've even developed a few very basic plugins for myself, as a part of the learning process. I agree that error handling is very important, several times my plugins we behaving rather irratically and I had no clue as to why they were doing so.

I had created simple widgets that would simply display a predefined html code, which I could also edit in the widget edit mode. It was probably one of the most basic and simplest of widget code that could be!

But somehow for quite some time I struggled with the code since in the widgets.php page my widgets in particular were somehow creating problems. While the widgets.php page lists the widgets in a loop and it reaches my widget, it was getting truncated over there! The widgets.php would simply stop further loading and the page truncates early with a broken widgets page.

It took me quite sometime and patience of trail and error methods to find out how to correct the problem, although I still do not understand really what was causing the truncation.

This post is really helpful, I think it will help people like me who are relatively new in this area, and also it will help advanced developers to build better code! Error handling is one of the most critical parts which are often ignored by developers because they tend to feel that the errors are happening as a result of things outside of the control of their program. But it's importance is even more in such situations. :).
Thanks for the post.</description>
		<content:encoded><![CDATA[<p>I use a lot of plugins and I&#8217;ve even developed a few very basic plugins for myself, as a part of the learning process. I agree that error handling is very important, several times my plugins we behaving rather irratically and I had no clue as to why they were doing so.</p>
<p>I had created simple widgets that would simply display a predefined html code, which I could also edit in the widget edit mode. It was probably one of the most basic and simplest of widget code that could be!</p>
<p>But somehow for quite some time I struggled with the code since in the widgets.php page my widgets in particular were somehow creating problems. While the widgets.php page lists the widgets in a loop and it reaches my widget, it was getting truncated over there! The widgets.php would simply stop further loading and the page truncates early with a broken widgets page.</p>
<p>It took me quite sometime and patience of trail and error methods to find out how to correct the problem, although I still do not understand really what was causing the truncation.</p>
<p>This post is really helpful, I think it will help people like me who are relatively new in this area, and also it will help advanced developers to build better code! Error handling is one of the most critical parts which are often ignored by developers because they tend to feel that the errors are happening as a result of things outside of the control of their program. But it&#8217;s importance is even more in such situations. :).<br />
Thanks for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225566</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Mon, 05 May 2008 02:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225566</guid>
		<description>You know Ronald, I'll have to say that you are pretty awesome. With this information, there might be a day when working with exceptions for noobs won't be such a huge deal.

Except the day when the noobs create everything as an exception to pass data, then I could just die.</description>
		<content:encoded><![CDATA[<p>You know Ronald, I&#8217;ll have to say that you are pretty awesome. With this information, there might be a day when working with exceptions for noobs won&#8217;t be such a huge deal.</p>
<p>Except the day when the noobs create everything as an exception to pass data, then I could just die.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225565</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Mon, 05 May 2008 02:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225565</guid>
		<description>I mean to add &lt;code&gt;__('This is an example error.', MY_PLUGIN_LOCALIZATION);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I mean to add <code>__('This is an example error.', MY_PLUGIN_LOCALIZATION);</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://weblogtoolscollection.com/archives/2008/05/04/error-management-for-wordpress-plugins/#comment-1225562</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Mon, 05 May 2008 02:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3511#comment-1225562</guid>
		<description>OR:

You could just extend the WP_Error class and like, I don't know, return a different message for get_error method. It would be half the code.

&lt;code&gt;
class my_class_example_error extends WP_Error {
    function get_error($code='') {
        return __('This is an example error.');
    }
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>OR:</p>
<p>You could just extend the WP_Error class and like, I don&#8217;t know, return a different message for get_error method. It would be half the code.</p>
<p><code><br />
class my_class_example_error extends WP_Error {<br />
    function get_error($code='') {<br />
        return __('This is an example error.');<br />
    }<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
