<?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>Paul Cracknell &#187; Wordpress</title>
	<atom:link href="http://www.paulcracknell.net/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.paulcracknell.net</link>
	<description>Wordpress Themes, Photography, PHP and other stuff</description>
	<lastBuildDate>Sun, 29 Jan 2012 11:09:01 +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>Notice: Undefined index: id in…</title>
		<link>http://www.paulcracknell.net/419/notice-undefined-index-id-in</link>
		<comments>http://www.paulcracknell.net/419/notice-undefined-index-id-in#comments</comments>
		<pubDate>Thu, 20 Jan 2011 02:05:48 +0000</pubDate>
		<dc:creator>Paul Cracknell</dc:creator>
				<category><![CDATA[Theme Options]]></category>
		<category><![CDATA[Wordpress Developer]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[theme options]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.paulcracknell.net/?p=419</guid>
		<description><![CDATA[<p>If you are developing a WordPress Theme Option Page via some tutorials on the web, the php that is used to call the options will create these errors when the WordPress debug feature is activated.<br />
<strong>Notice: Undefined index: id in C:\Users\Mysql folder\root\wordpress\wp-content\themes\breathe\index.php on line 4</strong></p>
<p><strong>Notice: Undefined index: std in C:\Users\Mysql folder\root\wordpress\wp-content\themes\breathe\index.php on line 4</strong></p>
<p>The code that is generally outlined and is the culprit for the errors is&#8230;</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
</pre></td></tr></table>&#8230;</div>]]></description>
			<content:encoded><![CDATA[<p>If you are developing a WordPress Theme Option Page via some tutorials on the web, the php that is used to call the options will create these errors when the WordPress debug feature is activated.<br />
<strong>Notice: Undefined index: id in C:\Users\Mysql folder\root\wordpress\wp-content\themes\breathe\index.php on line 4</strong></p>
<p><strong>Notice: Undefined index: std in C:\Users\Mysql folder\root\wordpress\wp-content\themes\breathe\index.php on line 4</strong></p>
<p>The code that is generally outlined and is the culprit for the errors is&#8230;</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
6
7
</pre>
</td>
<td class="code">
<pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$options</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>get_option<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'std'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
</td>
</tr>
</table>
</div>
<p>To fix the problem I have found that this piece of code will eliminate the errors.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre>
</td>
<td class="code">
<pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//allows the theme to get info from the theme options page</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$options</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>get_option<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'std'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
</td>
</tr>
</table>
</div>
<div  class="related_post_title">Related Posts</div>
<ul class="related_post">
<li><a href="http://www.paulcracknell.net/415/debug-your-wordpress-theme" title="Debug your WordPress Theme">Debug your WordPress Theme</a></li>
<li><a href="http://www.paulcracknell.net/209/how-to-stop-firefox-crasing-when-using-wordpress" title="How to stop Firefox crasing when using Wordpress">How to stop Firefox crasing when using Wordpress</a></li>
<li><a href="http://www.paulcracknell.net/126/how-to-fix-errors-with-uploading-images-or-media-in-wordpress" title="How to fix errors with uploading images or media in Wordpress">How to fix errors with uploading images or media in Wordpress</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.paulcracknell.net/419/notice-undefined-index-id-in/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debug your WordPress Theme</title>
		<link>http://www.paulcracknell.net/415/debug-your-wordpress-theme</link>
		<comments>http://www.paulcracknell.net/415/debug-your-wordpress-theme#comments</comments>
		<pubDate>Thu, 13 Jan 2011 06:35:29 +0000</pubDate>
		<dc:creator>Paul Cracknell</dc:creator>
				<category><![CDATA[Theme Options]]></category>
		<category><![CDATA[Wordpress Developer]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[theme option]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.paulcracknell.net/?p=415</guid>
		<description><![CDATA[<p>So you have finished your WordPress theme and now you want to check that everything that you have done is right.  Debugging the php is just one of the steps that you should take to check that your theme is ready to unleash on the world.  It is very simple to activate the de-bugging feature for WordPress. In the root directory of your theme find wp-config.php.  Open the file and &#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>So you have finished your WordPress theme and now you want to check that everything that you have done is right.  Debugging the php is just one of the steps that you should take to check that your theme is ready to unleash on the world.  It is very simple to activate the de-bugging feature for WordPress. In the root directory of your theme find wp-config.php.  Open the file and locate this code.</p>
<p><code>/**<br />
* For developers: WordPress debugging mode.<br />
*<br />
* Change this to true to enable the display of notices during development.<br />
* It is strongly recommended that plugin and theme developers use WP_DEBUG<br />
* in their development environments.<br />
*/<br />
define('WP_DEBUG', false);</code></p>
<p>See it even tells you that this is for debugging.  As advised make sure that plugin&#8217;s are deactivated.   Change <strong>false </strong>to <strong>true </strong>and save the file. Upload it to the theme and any errors will be displayed where the errors are detected.  When you are finished and before you publish your theme turn the debug off.</p>
<p>It is also good practice to check your html (xhtml) and css with a validator service, these can be located at  <a href="http://validator.w3.org/">http://validator.w3.org/</a> or<a href="http://jigsaw.w3.org/css-validator/">http://jigsaw.w3.org/css-validator/</a> respectively.
<div  class="related_post_title">Related Posts</div>
<ul class="related_post">
<li><a href="http://www.paulcracknell.net/419/notice-undefined-index-id-in" title="Notice: Undefined index: id in…">Notice: Undefined index: id in…</a></li>
<li><a href="http://www.paulcracknell.net/434/notice-undefined-index-page-in" title="Notice: Undefined index: page in &#8230;">Notice: Undefined index: page in &#8230;</a></li>
<li><a href="http://www.paulcracknell.net/209/how-to-stop-firefox-crasing-when-using-wordpress" title="How to stop Firefox crasing when using Wordpress">How to stop Firefox crasing when using Wordpress</a></li>
<li><a href="http://www.paulcracknell.net/126/how-to-fix-errors-with-uploading-images-or-media-in-wordpress" title="How to fix errors with uploading images or media in Wordpress">How to fix errors with uploading images or media in Wordpress</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.paulcracknell.net/415/debug-your-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to stop Firefox crasing when using WordPress</title>
		<link>http://www.paulcracknell.net/209/how-to-stop-firefox-crasing-when-using-wordpress</link>
		<comments>http://www.paulcracknell.net/209/how-to-stop-firefox-crasing-when-using-wordpress#comments</comments>
		<pubDate>Tue, 02 Jun 2009 10:35:26 +0000</pubDate>
		<dc:creator>Paul Cracknell</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://thehowtoguide.net/?p=209</guid>
		<description><![CDATA[<p>If your Firefox browser is crashing when you are using WordPress, this is the fix.</p>
<p>Firefox has Google Gears as an add on which interferes with WordPress. By disabling Gears you will fix the problem. This is how you do it.</p>
<p><span id="more-209"></span></p>
<h2>Step 1</h2>
<p>Go to tools&#62;options in the Firefox browser.</p>
<p><img class="size-full wp-image-210 alignnone" title="firefox-gears-browser" src="http://thehowtoguide.net/wp-content/uploads/2009/06/firefox-gears-browser.jpg" alt="firefox-gears-browser" width="665" height="272" /></p>
<h2>Step 2</h2>
<p>Select the main option and click on manage Add ons.</p>
<p><img class="size-full wp-image-212 alignnone" title="firefox-gears1" src="http://thehowtoguide.net/wp-content/uploads/2009/06/firefox-gears1.jpg" alt="firefox-gears1" width="467" height="461" /></p>
<h2>Step 3</h2>
<p>Click on the disable button.</p>
<p><img class="alignnone size-full wp-image-214" title="firefox-gears" src="http://thehowtoguide.net/wp-content/uploads/2009/06/firefox-gears.jpg" alt="firefox-gears" width="521" height="377" /></p>
<h2>Step &#8230;</h2>]]></description>
			<content:encoded><![CDATA[<p>If your Firefox browser is crashing when you are using WordPress, this is the fix.</p>
<p>Firefox has Google Gears as an add on which interferes with WordPress. By disabling Gears you will fix the problem. This is how you do it.</p>
<p><span id="more-209"></span></p>
<h2>Step 1</h2>
<p>Go to tools&gt;options in the Firefox browser.</p>
<p><img class="size-full wp-image-210 alignnone" title="firefox-gears-browser" src="http://thehowtoguide.net/wp-content/uploads/2009/06/firefox-gears-browser.jpg" alt="firefox-gears-browser" width="665" height="272" /></p>
<h2>Step 2</h2>
<p>Select the main option and click on manage Add ons.</p>
<p><img class="size-full wp-image-212 alignnone" title="firefox-gears1" src="http://thehowtoguide.net/wp-content/uploads/2009/06/firefox-gears1.jpg" alt="firefox-gears1" width="467" height="461" /></p>
<h2>Step 3</h2>
<p>Click on the disable button.</p>
<p><img class="alignnone size-full wp-image-214" title="firefox-gears" src="http://thehowtoguide.net/wp-content/uploads/2009/06/firefox-gears.jpg" alt="firefox-gears" width="521" height="377" /></p>
<h2>Step 4</h2>
<p>Shut down Firefox for the changes to take effect.  That is it&#8230;</p>
<p><!--adsense-->
<div  class="related_post_title">Related Posts</div>
<ul class="related_post">
<li><a href="http://www.paulcracknell.net/419/notice-undefined-index-id-in" title="Notice: Undefined index: id in…">Notice: Undefined index: id in…</a></li>
<li><a href="http://www.paulcracknell.net/415/debug-your-wordpress-theme" title="Debug your WordPress Theme">Debug your WordPress Theme</a></li>
<li><a href="http://www.paulcracknell.net/126/how-to-fix-errors-with-uploading-images-or-media-in-wordpress" title="How to fix errors with uploading images or media in Wordpress">How to fix errors with uploading images or media in Wordpress</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.paulcracknell.net/209/how-to-stop-firefox-crasing-when-using-wordpress/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to fix errors with uploading images or media in WordPress</title>
		<link>http://www.paulcracknell.net/126/how-to-fix-errors-with-uploading-images-or-media-in-wordpress</link>
		<comments>http://www.paulcracknell.net/126/how-to-fix-errors-with-uploading-images-or-media-in-wordpress#comments</comments>
		<pubDate>Wed, 13 May 2009 09:47:26 +0000</pubDate>
		<dc:creator>Paul Cracknell</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://thehowtoguide.net/?p=126</guid>
		<description><![CDATA[<p>If you are having trouble uploading images because of this<em><strong> error: File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini</strong></em> when you use either the flash uploader or the browser, there is fix. A short article by  <a href="http://permalink.gmane.org/gmane.comp.web.wordpress.testers/6706" target="_blank">Phillip Barron</a> outlines a fix using the .htaccess file.</p>
<p><span id="more-126"></span><br />
</p>
<h2>Step 1</h2>
<p>Using your FTP open the root directory. Download <em><strong>.htaccess</strong></em><span><span> and </span></span>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>If you are having trouble uploading images because of this<em><strong> error: File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini</strong></em> when you use either the flash uploader or the browser, there is fix. A short article by  <a href="http://permalink.gmane.org/gmane.comp.web.wordpress.testers/6706" target="_blank">Phillip Barron</a> outlines a fix using the .htaccess file.</p>
<p><span id="more-126"></span><br />
<!--adsense--></p>
<h2>Step 1</h2>
<p>Using your FTP open the root directory. Download <em><strong>.htaccess</strong></em><span><span> and open it with </span></span></p>
<input name="IL_MARKER" type="hidden" />text editor or notepad. <span>It should be just below the folders. </span><span><span>If there isn&#8217;t a .</span><span class="IL_SPAN"></p>
<input name="IL_MARKER" type="hidden" />htaccess file</span>, create one.<br />
</span></p>
<h2><span>Step 2<br />
</span></h2>
<p>Insert the following into your .htaccess file. If there is other commands which there most likely will be just under that is fine.</p>
<pre>&lt;IfModule mod_security.c&gt;
SetEnvIfNoCase Content-Type
"^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
&lt;/IfModule&gt;

&lt;IfModule mod_gzip.c&gt;
mod_gzip_on No
&lt;/IfModule&gt;</pre>
<h2>Step 3</h2>
<p>Save  and upload the .htaccess file back into the root directory overwriting the original.</p>
<p>Result: Image upload should be successfully using Firefox/Windows with no errors.
<div  class="related_post_title">Related Posts</div>
<ul class="related_post">
<li><a href="http://www.paulcracknell.net/419/notice-undefined-index-id-in" title="Notice: Undefined index: id in…">Notice: Undefined index: id in…</a></li>
<li><a href="http://www.paulcracknell.net/415/debug-your-wordpress-theme" title="Debug your WordPress Theme">Debug your WordPress Theme</a></li>
<li><a href="http://www.paulcracknell.net/209/how-to-stop-firefox-crasing-when-using-wordpress" title="How to stop Firefox crasing when using Wordpress">How to stop Firefox crasing when using Wordpress</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.paulcracknell.net/126/how-to-fix-errors-with-uploading-images-or-media-in-wordpress/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

