<?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"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:media="http://search.yahoo.com/mrss/"
> <channel><title>Comments on: Custom WordPress database error pages</title> <atom:link href="http://yoast.com/custom-wordpress-database-error-pages/feed/" rel="self" type="application/rss+xml" /><link>http://yoast.com/custom-wordpress-database-error-pages/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=custom-wordpress-database-error-pages</link> <description>Tweaking Websites</description> <lastBuildDate>Fri, 19 Mar 2010 08:37:34 +0000</lastBuildDate> <generator>http://wordpress.org/?v=</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: DanGayle (Daniel Gayle)</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-76208</link> <dc:creator>DanGayle (Daniel Gayle)</dc:creator> <pubDate>Mon, 21 Dec 2009 20:55:02 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-76208</guid> <description>&lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/yoast&quot;&gt;@yoast&lt;/a&gt; The code in http://yoast.com/custom-wordpress-database-error-pages/ is unescaping your escaped characters. Can you fix it?</description> <content:encoded><![CDATA[<p><a
rel="nofollow" href="http://twitter.com/yoast">@yoast</a> The code in <a
href="http://yoast.com/custom-wordpress-database-error-pages/" rel="nofollow">http://yoast.com/custom-wordpress-database-error-pages/</a> is unescaping your escaped characters. Can you fix it?</p> ]]></content:encoded> </item> <item><title>By: Adding a custom error page when the database has issues. - Frumph&#8217;s Random Blog</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-70446</link> <dc:creator>Adding a custom error page when the database has issues. - Frumph&#8217;s Random Blog</dc:creator> <pubDate>Sat, 20 Jun 2009 21:39:05 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-70446</guid> <description>[...] One is: http://yoast.com/custom-wordpress-database-error-pages/ [...]</description> <content:encoded><![CDATA[<p>[...] One is: <a
href="http://yoast.com/custom-wordpress-database-error-pages/" rel="nofollow">http://yoast.com/custom-wordpress-database-error-pages/</a> [...]</p> ]]></content:encoded> </item> <item><title>By: phillprice (Phill Price)</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-68227</link> <dc:creator>phillprice (Phill Price)</dc:creator> <pubDate>Mon, 06 Apr 2009 13:03:08 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-68227</guid> <description>&lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/Cranialstrain&quot;&gt;@Cranialstrain&lt;/a&gt; I have found a lovely article by &lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/jdevalk&quot;&gt;@jdevalk&lt;/a&gt; which shows how to make a prettier error page ... http://tinyurl.com/7rwh5o</description> <content:encoded><![CDATA[<p><a
rel="nofollow" href="http://twitter.com/Cranialstrain">@Cranialstrain</a> I have found a lovely article by <a
rel="nofollow" href="http://twitter.com/jdevalk">@jdevalk</a> which shows how to make a prettier error page ... <a
href="http://tinyurl.com/7rwh5o" rel="nofollow">http://tinyurl.com/7rwh5o</a></p> ]]></content:encoded> </item> <item><title>By: Akshay</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-36114</link> <dc:creator>Akshay</dc:creator> <pubDate>Thu, 21 Aug 2008 12:00:27 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-36114</guid> <description>sir, i have made a blog recently http://charismatic-verma.blogspot.com/. What should i do to make it adsense frindly and to increase it&#039;s pr, suggestions needed.</description> <content:encoded><![CDATA[<p>sir, i have made a blog recently <a
href="http://charismatic-verma.blogspot.com/" rel="nofollow">http://charismatic-verma.blogspot.com/</a>. What should i do to make it adsense frindly and to increase it's pr, suggestions needed.</p> ]]></content:encoded> </item> <item><title>By: CantStopTheSignal</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-34447</link> <dc:creator>CantStopTheSignal</dc:creator> <pubDate>Tue, 03 Jun 2008 14:41:41 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-34447</guid> <description>Why can&#039;t cached pages be shown in lieu of error pages, if they exist?  There&#039;s a perfectly good copy of the page in cache, why show an error page?The wp-cache engine would just need to include a comment tag in the html source that a database error occured and the page is from cache.  If the cache is expired, then show it anyway, but also output the 500 header.  Otherwise 200 header if the page isn&#039;t otherwise expired.Only if there is no cached page for the request would I want to have an error page to appear when the database is not accessible.This feature would wildly make WP capable of high-availability in high traffic situations.</description> <content:encoded><![CDATA[<p>Why can't cached pages be shown in lieu of error pages, if they exist?  There's a perfectly good copy of the page in cache, why show an error page?</p><p>The wp-cache engine would just need to include a comment tag in the html source that a database error occured and the page is from cache.  If the cache is expired, then show it anyway, but also output the 500 header.  Otherwise 200 header if the page isn't otherwise expired.</p><p>Only if there is no cached page for the request would I want to have an error page to appear when the database is not accessible.</p><p>This feature would wildly make WP capable of high-availability in high traffic situations.</p> ]]></content:encoded> </item> <item><title>By: Pashalex</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-33224</link> <dc:creator>Pashalex</dc:creator> <pubDate>Thu, 10 Apr 2008 00:34:14 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-33224</guid> <description>I am trying to install a new theme in word press 2.o but any theme i chose it comes up with an error &quot;Broken Theme&quot; and &quot;style.css is unreadable&quot;.
Any comments much appreciated.</description> <content:encoded><![CDATA[<p>I am trying to install a new theme in word press 2.o but any theme i chose it comes up with an error "Broken Theme" and "style.css is unreadable".<br
/> Any comments much appreciated.</p> ]]></content:encoded> </item> <item><title>By: [BLT]FQX</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-32795</link> <dc:creator>[BLT]FQX</dc:creator> <pubDate>Sun, 06 Apr 2008 08:32:34 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-32795</guid> <description>So what is the test result, Joost?
Since your time stamp says it&#039;s Mar 12, but I received the pingback on Apr 6.</description> <content:encoded><![CDATA[<p>So what is the test result, Joost?<br
/> Since your time stamp says it's Mar 12, but I received the pingback on Apr 6.</p> ]]></content:encoded> </item> <item><title>By: WLTC &#187; Custom WordPress database error pages</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-31783</link> <dc:creator>WLTC &#187; Custom WordPress database error pages</dc:creator> <pubDate>Thu, 27 Mar 2008 22:37:09 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-31783</guid> <description>[...] Custom WordPress database error pages: This is an interesting article on how to setup WordPress to display custom database error pages and even send out an email to the owner of the blog in case of database failure.  This means that should your database fail, and someone would open your front page at example.com, he would be served that error page with a 200 OK header. If that someone were a search engine, that&#8217;s what it would index&#8230; If the search engine encounters a 500 error, it will not index that page and just wait for your server to be fixed again. That means not making sure it sends a 500 header is a huge risk.   &#171; I am really loving Safari for Windows [...]</description> <content:encoded><![CDATA[<p>[...] Custom WordPress database error pages: This is an interesting article on how to setup WordPress to display custom database error pages and even send out an email to the owner of the blog in case of database failure.  This means that should your database fail, and someone would open your front page at example.com, he would be served that error page with a 200 OK header. If that someone were a search engine, that&#8217;s what it would index&#8230; If the search engine encounters a 500 error, it will not index that page and just wait for your server to be fixed again. That means not making sure it sends a 500 header is a huge risk.   &laquo; I am really loving Safari for Windows [...]</p> ]]></content:encoded> </item> <item><title>By: Joost de Valk</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-31096</link> <dc:creator>Joost de Valk</dc:creator> <pubDate>Wed, 12 Mar 2008 18:09:56 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-31096</guid> <description>will test that tonight Marcus, thx!</description> <content:encoded><![CDATA[<p>will test that tonight Marcus, thx!</p> ]]></content:encoded> </item> <item><title>By: Markus</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-31028</link> <dc:creator>Markus</dc:creator> <pubDate>Tue, 11 Mar 2008 12:08:06 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-31028</guid> <description>Hello JoostI just tried out this tip, and it is good when calling the error page directly. The web developer in Firefox showed me the 500 header.Now I changed the wp-config.php for a few seconds to raise a real db error, but then the error page comes with 200 OK.</description> <content:encoded><![CDATA[<p>Hello Joost</p><p>I just tried out this tip, and it is good when calling the error page directly. The web developer in Firefox showed me the 500 header.</p><p>Now I changed the wp-config.php for a few seconds to raise a real db error, but then the error page comes with 200 OK.</p> ]]></content:encoded> </item> <item><title>By: Create a Custom Database Connection Error Page &#124;</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30995</link> <dc:creator>Create a Custom Database Connection Error Page &#124;</dc:creator> <pubDate>Tue, 11 Mar 2008 03:31:17 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30995</guid> <description>[...] Karma must be at work, because tonight I was checking my email and received the latest post from Joost de Valk&#8217;s SEO BLOG and the subject was exactly [...]</description> <content:encoded><![CDATA[<p>[...] Karma must be at work, because tonight I was checking my email and received the latest post from Joost de Valk&#8217;s SEO BLOG and the subject was exactly [...]</p> ]]></content:encoded> </item> <item><title>By: WPModder</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30994</link> <dc:creator>WPModder</dc:creator> <pubDate>Tue, 11 Mar 2008 03:14:47 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30994</guid> <description>Great tip Joost, thank you so much for sharing!</description> <content:encoded><![CDATA[<p>Great tip Joost, thank you so much for sharing!</p> ]]></content:encoded> </item> <item><title>By: Datenbank-Fehler und die Header &#187; Beitrags-Archiv &#187; Cowboy of Bottrop</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30988</link> <dc:creator>Datenbank-Fehler und die Header &#187; Beitrags-Archiv &#187; Cowboy of Bottrop</dc:creator> <pubDate>Mon, 10 Mar 2008 22:23:12 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30988</guid> <description>[...] dem ich heute ein Pingback aus den Niederlanden erhielt. Joost de Valk greift das Thema in seinem SEO-Blog auf und meint, da stimmt was [...]</description> <content:encoded><![CDATA[<p>[...] dem ich heute ein Pingback aus den Niederlanden erhielt. Joost de Valk greift das Thema in seinem SEO-Blog auf und meint, da stimmt was [...]</p> ]]></content:encoded> </item> <item><title>By: Joost de Valk</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30980</link> <dc:creator>Joost de Valk</dc:creator> <pubDate>Mon, 10 Mar 2008 19:44:58 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30980</guid> <description>hmm depends on your apache config then I guess, I run 30odd websites on that server and it works correctly with this code on all of them...</description> <content:encoded><![CDATA[<p>hmm depends on your apache config then I guess, I run 30odd websites on that server and it works correctly with this code on all of them...</p> ]]></content:encoded> </item> <item><title>By: Mark van Eijk</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30975</link> <dc:creator>Mark van Eijk</dc:creator> <pubDate>Mon, 10 Mar 2008 17:31:19 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30975</guid> <description>HTTP_HOST takes the name of the host you request. So in this case this would be joostdevalk.nl. When you use SERVER_NAME it takes the name of the server your webhost uses as their hostname for the webserver.</description> <content:encoded><![CDATA[<p>HTTP_HOST takes the name of the host you request. So in this case this would be joostdevalk.nl. When you use SERVER_NAME it takes the name of the server your webhost uses as their hostname for the webserver.</p> ]]></content:encoded> </item> <item><title>By: Joost de Valk</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30972</link> <dc:creator>Joost de Valk</dc:creator> <pubDate>Mon, 10 Mar 2008 16:32:27 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30972</guid> <description>Hmm Mark, I tested that, and for me it contained my server name just right this way...</description> <content:encoded><![CDATA[<p>Hmm Mark, I tested that, and for me it contained my server name just right this way...</p> ]]></content:encoded> </item> <item><title>By: link dump, march 10th â€˜08 : maxyRO&#8217;s blog</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30970</link> <dc:creator>link dump, march 10th â€˜08 : maxyRO&#8217;s blog</dc:creator> <pubDate>Mon, 10 Mar 2008 15:52:50 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30970</guid> <description>[...] WordPress 2.3.2 (we&#8217;re on 2.3.3 at the moment) introduced a nice new feature many of us will find useful: : the possibility to create a custom database error page. Here&#8217;s an easy tutorial on how to create yours - link [...]</description> <content:encoded><![CDATA[<p>[...] WordPress 2.3.2 (we&#8217;re on 2.3.3 at the moment) introduced a nice new feature many of us will find useful: : the possibility to create a custom database error page. Here&#8217;s an easy tutorial on how to create yours - link [...]</p> ]]></content:encoded> </item> <item><title>By: Mark van Eijk</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30965</link> <dc:creator>Mark van Eijk</dc:creator> <pubDate>Mon, 10 Mar 2008 13:38:15 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30965</guid> <description>I would like to comment that you should use &lt;strong&gt;$_SERVER[&#039;HTTP_HOST&#039;]&lt;/strong&gt; instead of &lt;strong&gt;$_SERVER[&#039;SERVER_NAME&#039;]&lt;/strong&gt;. Because your version takes the actual servername (this could be s001.yourhost.nl) and you&#039;re domainname is actually inside HTTP_HOST. So this will make your e-mail much more clearer when you&#039;ve got more than one website.</description> <content:encoded><![CDATA[<p>I would like to comment that you should use <strong>$_SERVER['HTTP_HOST']</strong> instead of <strong>$_SERVER['SERVER_NAME']</strong>. Because your version takes the actual servername (this could be s001.yourhost.nl) and you're domainname is actually inside HTTP_HOST. So this will make your e-mail much more clearer when you've got more than one website.</p> ]]></content:encoded> </item> <item><title>By: Markus</title><link>http://yoast.com/custom-wordpress-database-error-pages/#comment-30954</link> <dc:creator>Markus</dc:creator> <pubDate>Mon, 10 Mar 2008 09:34:29 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/custom-wordpress-database-error-pages/#comment-30954</guid> <description>Hello JoostI think, the db_error.php is for the user who visit my blog. They don&#039;t see the header status code except with special tools.But you&#039;re right to send a 500. I didn&#039;t notice that until now, but the robots will read the header, and I don&#039;t want to find my db_error in the google search results.So thanks for the tip, I will use it.The idea sending a mail has grown up in me too, but I leave it. On my shared hosting web space I&#039;m not able to do anything, when an db error occurs.Best regeards from Germany,
Markus</description> <content:encoded><![CDATA[<p>Hello Joost</p><p>I think, the db_error.php is for the user who visit my blog. They don't see the header status code except with special tools.</p><p>But you're right to send a 500. I didn't notice that until now, but the robots will read the header, and I don't want to find my db_error in the google search results.</p><p>So thanks for the tip, I will use it.</p><p>The idea sending a mail has grown up in me too, but I leave it. On my shared hosting web space I'm not able to do anything, when an db error occurs.</p><p>Best regeards from Germany,<br
/> Markus</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 1/7 queries in 0.007 seconds using apc
Content Delivery Network via netdna.yoast.com

Served from: yoast.com @ 2010-03-19 12:21:21 -->