<?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>Get up and Running</title>
	<atom:link href="http://www.getupandrunning.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.getupandrunning.net</link>
	<description>We do geek so you don&#039;t have to</description>
	<lastBuildDate>Fri, 24 Dec 2010 13:25:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Debugging WordPress</title>
		<link>http://www.getupandrunning.net/2010/12/debugging-wordpress/</link>
		<comments>http://www.getupandrunning.net/2010/12/debugging-wordpress/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 13:24:12 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[multisite]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.getupandrunning.net/?p=209</guid>
		<description><![CDATA[An important task in developing a website, or plugins and extensions, is the ability to hunt down errors. Unless you&#8217;ve invested in an IDE that has built in debugging features, it can be a real headache tracking down that elusive error. Good news for WordPress developers is that debugging is built in &#8211; if you [...]]]></description>
			<content:encoded><![CDATA[<p>An important task in developing a website, or plugins and extensions, is the ability to hunt down errors. Unless you&#8217;ve invested in an IDE that has built in debugging features, it can be a real headache tracking down that elusive error.</p>
<p>Good news for WordPress developers is that debugging is built in &#8211; if you know how to switch it on!</p>
<p>An excellent post I found explaining the debugging feature can be found at: <a href="http://fuelyourcoding.com/simple-debugging-with-wordpress/">http://fuelyourcoding.com/simple-debugging-with-wordpress/</a></p>
<p>Turning on debugging basically boils down to setting some constants in your <code>config.php</code> file:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_DEBUG'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_DEBUG_LOG'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_DEBUG_DISPLAY'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">@</span><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'display_errors'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>With that set up, WordPress will create a file in your <code>wp-contents</code> directory called <code>debug.log</code> where all the debug messages will be output.  With any luck your code will be perfect and it will be virtually empty.</p>
<p><strong>Note:</strong> You shouldn&#8217;t really use debug in a live environment because the information logged may give away details of your site that aren&#8217;t usually visible.  If you do have to use debug on a live site, make sure you delete the debug files after debugging, and set WP_DEBUG to false.</p>
<p>Of course, in your test environment you&#8217;re likely to want debugging on most of the time, but this leads to a couple of issues:</p>
<ul>
<li>The debugging file will keep growing unless you crop it every now and then</li>
<li>If you run your development site as a multisite, the error codes for each site will all get mashed up together</li>
</ul>
<p>What I do to make life a bit easier for myself is to create logs for each day and for each site, which makes it really easy to manage.  In my theme&#8217;s <code>function.php</code> file I put the following code at the top:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> WP_DEBUG_LOG <span style="color: #339933;">&amp;&amp;</span> WP_DEBUG <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'error_log'</span><span style="color: #339933;">,</span> WP_CONTENT_DIR <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/logs/'</span><span style="color: #339933;">.</span>sanitize_title<span style="color: #009900;">&#40;</span>get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Ymd'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.log'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>This sets up the log file name and location (if debugging is switched on) to <code>/wp-contents/logs/sitename-date.log</code>  Just remember to put this code in each functions file for each theme, otherwise the debug data will be output to the default location.</p>
<p><strong>Note:</strong> Don&#8217;t forget to create the logs directory first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.getupandrunning.net/2010/12/debugging-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Climate Run</title>
		<link>http://www.getupandrunning.net/2010/12/the-climate-run/</link>
		<comments>http://www.getupandrunning.net/2010/12/the-climate-run/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 13:01:11 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Example Sites]]></category>
		<category><![CDATA[The Climate Run]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.getupandrunning.net/?p=202</guid>
		<description><![CDATA[The Climate Run organisers wanted a site that would act both for information dissemination and for facilitating the event&#8217;s organisation.  This we gave them using the WordPress Content Management System. The fixed top menu makes it easy to navigate to another page no matter where you are on the current page.  The multi-column layout, newspaper [...]]]></description>
			<content:encoded><![CDATA[
        <div id="guar-cycle-gallery-202" class="guar-cycle-gallery">
            
            <img src="http://www.getupandrunning.net/wp-content/uploads/cr1.jpg" title="The Climate Run Homepage" alt="The Climate Run Homepage" />
            
            <img src="http://www.getupandrunning.net/wp-content/uploads/cr2.jpg" title="Multi-column news paper style" alt="Multi-column news paper style" />
            
            <img src="http://www.getupandrunning.net/wp-content/uploads/cr3.jpg" title="Contact Form" alt="Contact Form" />
            
            </div>
            <div id="guar-cycle-gallery-202-caption" class="guar-cycle-gallery-caption"></div>
            <div id="guar-cycle-gallery-202-nav" class="guar-cycle-gallery-nav"></div>
            
            
<p>The Climate Run organisers wanted a site that would act both for information dissemination and for facilitating the event&#8217;s organisation.  This we gave them using the WordPress Content Management System.</p>
<p>The fixed top menu makes it easy to navigate to another page no matter where you are on the current page.  The multi-column layout, newspaper layout, lets the organisers pack in a lot of information into a page, but still keep it easy to read.  The site also allows for any number of galleries in a page to help with the visual engagement of the readers.</p>
<p>At the backend, we created a custom database so that the organisers could maintain a list of participating schools along with an Excel export feature, but behind a credential system to ensure that it is only visible by the people who have the permission to view the data.</p>
<p>Training was given online with a mixture of video demos and live training using Skype.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.getupandrunning.net/2010/12/the-climate-run/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IDM Property Services</title>
		<link>http://www.getupandrunning.net/2010/12/idm-property-services/</link>
		<comments>http://www.getupandrunning.net/2010/12/idm-property-services/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 16:42:35 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Example Sites]]></category>
		<category><![CDATA[IDM Property Services]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.getupandrunning.net/?p=191</guid>
		<description><![CDATA[IDM wanted a site they could keep up to date themselves. The site we developed uses WordPress as the base CMS along with some customisations to make it work the way IDM wanted. Each Property page allows them to upload images and specify an address for the automatic Google Map. To help the organisation of [...]]]></description>
			<content:encoded><![CDATA[
        <div id="guar-cycle-gallery-191" class="guar-cycle-gallery">
            
            <img src="http://www.getupandrunning.net/wp-content/uploads/idm1.jpg" title="IDM Homepage" alt="IDM Homepage" />
            
            <img src="http://www.getupandrunning.net/wp-content/uploads/idm2.jpg" title="Development Page" alt="Development Page" />
            
            <img src="http://www.getupandrunning.net/wp-content/uploads/idm3.jpg" title="IDM Tools" alt="IDM Tools" />
            
            </div>
            <div id="guar-cycle-gallery-191-caption" class="guar-cycle-gallery-caption"></div>
            <div id="guar-cycle-gallery-191-nav" class="guar-cycle-gallery-nav"></div>
            
            
<p>IDM wanted a site they could keep up to date themselves.  The site we developed uses WordPress as the base CMS along with some customisations to make it work the way IDM wanted.  Each Property page allows them to upload images and specify an address for the automatic Google Map.</p>
<p>To help the organisation of the site, we created CustomPost Types &#8211; a new feature coming with WordPress 3.0.  From the CMS side of things this makes it very easy to see the properties that are being Developed, Managed or Current Investments.</p>
<p>IDM also asked for some javascript for their tools page which does various property related calculations.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.getupandrunning.net/2010/12/idm-property-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

