<?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>Tech Snacks &#187; CMS</title>
	<atom:link href="http://teqsnacks.com/category/cms/feed/" rel="self" type="application/rss+xml" />
	<link>http://teqsnacks.com</link>
	<description>Simple CMS, Blogging, Tech, SEO and Social Media</description>
	<lastBuildDate>Mon, 23 Jan 2012 10:52:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Internet Explorer&#8217;s annoying 30 CSS files limit bug</title>
		<link>http://teqsnacks.com/2010/02/15/internet-explorer-annoying-30-css-files-limit-bug/</link>
		<comments>http://teqsnacks.com/2010/02/15/internet-explorer-annoying-30-css-files-limit-bug/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 16:22:59 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[limit]]></category>
		<category><![CDATA[optimize]]></category>

		<guid isPermaLink="false">http://teqsnacks.com/2010/02/15/internet-explorer-annoying-30-css-files-limit-bug/</guid>
		<description><![CDATA[Internet Explorer is a lousy browser family, and it has some of the most annoying bugs possible. Took me a while to figure out why websites were breaking in some pages, till I was finally able to figure out that Internet Explorer has a bug where it can handle only pages with under 30 CSS [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-bottom: 0px;border-left: 0px;margin: 5px 5px 5px 20px;border-top: 0px;border-right: 0px" title="Internet Explorer’s annoying 30 CSS limit bug" border="0" alt="Internet Explorer’s annoying 30 CSS limit bug" align="right" src="http://teqsnacks.com/files/2010/02/image.png" width="163" height="183" /> Internet Explorer is a lousy browser family, and it has some of the most annoying bugs possible. </p>
<p>Took me a while to figure out why websites were breaking in some pages, till I was finally able to figure out that Internet Explorer has a bug where it can handle only pages with under 30 CSS files. Anything above that and the page would go dead. </p>
<p>Don’t believe me? check Microsoft’s “<a href="http://support.microsoft.com/kb/262161" target="_blank">All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer</a>”</p>
<blockquote><p>All style tags after the first 30 style tags on an HTML page are not applied. Occasionally, you may also receive the following error message: </p>
<p><strong>The page you are looking for might have been moved or had its name changed.</strong> </p>
<p>If you use a network monitor tool to capture network traffic, you may notice that a TCP reset occurs when Internet Explorer is receiving the page. Internet Explorer then generates another POST request if the original request was a POST request. Or, Internet Explorer may send a GET request instead.</p>
</blockquote>
<p>You’d think that Microsoft would fix such a bug, but looking at the Internet Explorer versions that are affected, the list starts back at version 4.0 and goes up all the way to the most recent version as of today – Internet Explorer 8. Brilliant.</p>
<p>&#160;</p>
<p>If you’re developing Drupal based websites, 30 CSS files are nothing, especially with the more advanced themes and modules. It’s enough that you include the theme, views and panels to easily top this limit.</p>
<p>But, there are a few things that might help.</p>
<p>For one, the <a href="http://drupal.org/project/unlimited_css" target="_blank">IE Unlimited CSS module</a> saved me with the Drupal 6 installations.</p>
<p>In some cases, though not all, the built-in Drupal CSS aggregation/optimization may help (if it’s aggregated already, that is).</p>
<blockquote><h4>How to enable Drupal CSS file aggregation</h4>
<ol>
<li>Log in as your Drupal site’s administrator. </li>
<li>Go to the Administer » Site configuration » Performance page. </li>
<li>Check the Enabled checkbox for Optimize CSS . </li>
<li>Click the Save configuration button. </li>
</ol>
</blockquote>
<p>&#160;</p>
<p>Another option, if you’re not in Drupal is using a CSS optimizer solution. Here’s from <a href="http://nadeausoftware.com/articles/2008/06/dont_bother_using_css_optimization_speed_web_site" target="_blank">Nadeau Software’s list</a>, and although they claim it won’t speed up by much, it might save you from IE.</p>
<blockquote><h5>CSS optimizers</h5>
<p>Hand-editing CSS to make it more optimal is tedious. Instead, use a <em>CSS optimizer</em> application. Here's a few of the many available:</p>
<ul>
<li><a href="http://www.blumentals.net/csstool/">Blumentals Software's CSS Toolbox</a> (freeware) </li>
<li><a href="http://www.cssdrive.com/index.php/main/csscompressoradvanced/">CSS Drive's CSS Compressor</a> (freeware) </li>
<li><a href="http://mabblog.com/cssoptimizer/download.html">Michael Bianco's CSS Optimizer</a> (freeware) </li>
<li><a href="http://iceyboard.no-ip.org/projects/css_compressor/">Robson's CSS Compressor</a> (freeware) </li>
<li><a href="http://www.lotterypost.com/css-compress.asp">Lottery Post's CSS Compressor</a> (freeware) </li>
<li><a href="http://csstidy.sourceforge.net/">CSS Tidy</a> (freeware)
<ul>
<li><a href="http://www.cleancss.com/">CleanCSS</a> (freeware) </li>
<li><a href="http://www.codebeautifier.com/">Code Beautifier</a> (freeware) </li>
<li><a href="http://floele.flyspray.org/csstidy//css_optimiser.php">CSS Formatter and Optimiser</a> (freeware) </li>
<li><a href="http://www.cssportal.com/generators/optimize.htm">CSS Code Formatter and Optimizer</a> (freeware) </li>
<li>... and many more based upon <em>CSS Tidy</em> </li>
</ul>
</li>
</ul>
</blockquote>
<p>&#160;</p>
<p>It never ceases to amaze me how a serious company as big as Microsoft, with all the resources available to it, keeps getting the whole browser thing wrong. What’s even more remarkable, is that there are those among us who still use that thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2010/02/15/internet-explorer-annoying-30-css-files-limit-bug/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Missed Schedule &amp; Failed Cron &#8211; WordPress Annoying Bugs</title>
		<link>http://teqsnacks.com/2010/01/31/missed-schedule-failed-cron-wordpress-bug/</link>
		<comments>http://teqsnacks.com/2010/01/31/missed-schedule-failed-cron-wordpress-bug/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 03:46:05 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[cronjob]]></category>
		<category><![CDATA[missed schedule]]></category>
		<category><![CDATA[wordpress mu]]></category>

		<guid isPermaLink="false">http://teqsnacks.com/2010/01/31/missed-schedule-failed-cron-wordpress-bug/</guid>
		<description><![CDATA[WordPress sometimes has the most annoying little bugs. Ones that don’t get fixed in minor version updates, ones that developers don’t seem to care about much but they could drive you crazy. WordPress 2.9 failed cron jobs and missed schedules are one such bug. This hasn’t started in WordPress 2.9. Searching for “missed schedule” with [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 5px 5px 5px 15px" title="Missed Schedule &amp; Failed Cron - Bugs  in WordPress " alt="Missed Schedule &amp; Failed Cron - Bugs  in WordPress " align="right" src="http://www.tech-nology.it/wp-content/uploads/2009/09/wordpress-bug.png" width="201" height="186" /></p>
<p>WordPress sometimes has the most annoying little bugs. Ones that don’t get fixed in minor version updates, ones that developers don’t seem to care about much but they could drive you crazy.</p>
<p>WordPress 2.9 failed cron jobs and missed schedules are one such bug. This hasn’t started in WordPress 2.9. Searching for “missed schedule” with “Wordpress” keywords, you’re bound to find endless forum threads about that.</p>
<p>WordPress 2.9’s minor updates (upto WordPress WPMU 2.9.1.1) didn’t seem to take care of that.</p>
<p>And the fix is so simple – it consists of modifying the timeout in wp-includes/cron.php.</p>
<p>Approximately around the line number 205 change :</p>
<pre>

wp_remote_post ($cron_url, Array (' timeout' =&gt; 0.01, ' blocking' =&gt; false)); 
</pre>
<p>To 20 seconds: </p>
<pre>

wp_remote_post ($cron_url, Array (' timeout' =&gt; 20, ' blocking' =&gt; false)); 
</pre>
<p>&#160;</p>
<p>The simplest solution, assuming you don’t want to tweak this by hand or worry about future bugs overriding your changes is use one of the useful plugins that would check for missed scheduled posts like “<a href="http://wordpress.org/extend/plugins/missed-schedule/">Missed Schedule</a>”. </p>
<p>&#160;</p>
<p>This has been reported … again and again… take a look at the WordPress bug tracker :</p>
<h4><a href="http://core.trac.wordpress.org/ticket/11505">cron stopped working with standard configuration</a></h4>
<blockquote>
<p>Hi Guys,</p>
<p>After the update to wp 2.9 (from 2.8.6 where everything worked just fine) my cron-jobs stopped working. Looking inside the cron-array with crontrol <a href="http://wordpress.org/extend/plugins/wp-crontrol/">http://wordpress.org/extend/plugins/wp-crontrol/</a> it looks like they are not executed at all. So I end up with all cron jobs waiting for execution (which seems to consume quite a bit of time on every page call). In crontrol this behavior is shown as all cron jobs have the execution status <i>now</i>.</p>
<p>I found the work-around in Otto's reply in this post <a href="http://wordpress.org/support/topic/296236">http://wordpress.org/support/topic/296236</a>which seems to work but produces dirty rewrites in the browser's address bar...</p>
<p>As my server configuration didn't change at all I assume that something else changed (e.g. could the statement <i>Increase timeout on cron-based requests when checking for upgrades</i> mentioned in<a href="http://codex.wordpress.org/Version_2.9"> http://codex.wordpress.org/Version_2.9</a> be the reason?)</p>
<p>greetz, berny</p>
</blockquote>
<h3>&#160;</h3>
<p> More? here…</p>
<ul>
<li><a href="http://www.semiologic.com/2009/12/21/wp-2-9-three-bugs-and-how-to-fix-them/">WordPress 2.9: three bugs, and how to fix them</a></li>
<li><a href="http://wordpress.org/support/topic/343080">2.9 Schedule Posts &quot;missed&quot;</a></li>
<li><a href="http://wordpress.org/support/topic/343174">WP-Cron not working in 2.9</a></li>
</ul>
<p>&#160;</p>
<p>Hope that helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2010/01/31/missed-schedule-failed-cron-wordpress-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GWT&#8217;s Parameter Handling : Duplicate Content in Drupal &amp; Gallery2</title>
		<link>http://teqsnacks.com/2010/01/27/gwt-parameter-handling-duplicate-content-drupal-gallery2/</link>
		<comments>http://teqsnacks.com/2010/01/27/gwt-parameter-handling-duplicate-content-drupal-gallery2/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 06:30:35 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Gallery2]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[duplicate content]]></category>
		<category><![CDATA[dynamic urls]]></category>
		<category><![CDATA[google custom search]]></category>
		<category><![CDATA[google webmasters central]]></category>
		<category><![CDATA[parameter handling]]></category>
		<category><![CDATA[yahoo explorer]]></category>

		<guid isPermaLink="false">http://teqsnacks.com/2010/01/27/gwt-parameter-handling-duplicate-content-drupal-gallery2/</guid>
		<description><![CDATA[A while back Google announced the addition of parameter handling to the Google Webmasters Tools (GWT). We're happy to announce another feature to assist with managing duplicate content: parameter handling. Parameter handling allows you to view which parameters Google believes should be ignored or not ignored at crawl time, and to overwrite our suggestions if [...]]]></description>
			<content:encoded><![CDATA[<p>A while back <a href="parameter handling. Parameter handling allows you to view which parameters Google believes should be ignored or not ignored at crawl time, and to overwrite our suggestions if necessary.">Google announced the addition of parameter handling to the Google Webmasters Tools</a> (GWT).</p>
<blockquote><p><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" title="Google Webmasters Tools" border="0" alt="Google Webmasters Tools" src="http://teqsnacks.com/files/2010/01/image3.png" width="260" height="58" /> </p>
<p>We're happy to announce another feature to assist with managing duplicate content: parameter handling. Parameter handling allows you to view which parameters Google believes should be ignored or not ignored at crawl time, and to overwrite our suggestions if necessary. </p>
</blockquote>
<p>If you’re not handling this through robots.txt, this is a great way to simply address duplicate content issues cause by parameters leading to duplicate pages that display the exact same content.</p>
<p>The option in GWT indicates :</p>
<blockquote><p>Dynamic parameters (for example, session IDs, source, or language) in your URLs can result in many different URLs all pointing to essentially the same content. For example, http://www.example.com/dresses?sid=12395923 might point to the same content as http://www.example.com/dresses. You can specify whether you want Google to ignore up to 15 specific parameters in your URL. This can result in more efficient crawling and fewer duplicate URLs, while helping to ensure that the information you need is preserved. (Note: While Google takes suggestions into account, we don't guarantee that we'll follow them in every case.)</p>
</blockquote>
<p>&#160;</p>
<p>Since someone emailed me to ask - here are some of my suggestions for optimal SEO configurations. If you have others – I’m interested.</p>
<p>&#160;</p>
<h3><u><strong>Gallery2</strong></u></h3>
<ul>
<li>g2_highlightId : Ignore </li>
<li>g2_imageViewsIndex : Ignore </li>
</ul>
<p><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" title="GWT’s Parameter Handling : Duplicate Content  in Drupal &amp; Gallery2" border="0" alt="GWT’s Parameter Handling : Duplicate Content  in Drupal &amp; Gallery2" src="http://teqsnacks.com/files/2010/01/image4.png" width="367" height="212" /> </p>
<p>&#160;</p>
<h3><u><strong>Drupal</strong></u></h3>
<ul>
<li>destination </li>
<li>order </li>
<li>sort </li>
</ul>
<p>&#160;</p>
<h3><strong><u>Google Custom Search</u></strong></h3>
<ul>
<li>as_q </li>
<li>sitesearch </li>
</ul>
<p>&#160;</p>
<p>BTW – Yahoo’s Site Explorer has had a similar concept with <a href="http://searchengineland.com/yahoo-site-explorer-adds-dynamic-url-rewriting-tool-11991">Dynamic URLs</a> (under Actions) for years.</p>
<blockquote><p><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" title="Yahoo Search Site Explorer" border="0" alt="Yahoo Search Site Explorer" src="http://teqsnacks.com/files/2010/01/image5.png" width="244" height="87" /> </p>
<p>Specify up to 10 dynamic parameters that you want us to treat specially whenever these are seen in URLs belonging to http://www.yourdomain.org . We will automatically rewrite the URLs containing these parameters as specified below. You can choose to:</p>
<ol>
<li>
<p><strong>Remove</strong> these parameters <strong>from</strong> the <strong>URLs</strong>, such as in case of session ids, you could ask to remove 'sid' from URLs.</p>
</li>
<li>
<p><strong>Use</strong> a <strong>default value</strong> for the parameter, for example you could set the 'src' parameter to be 'yhoo_srch'</p>
</li>
</ol>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2010/01/27/gwt-parameter-handling-duplicate-content-drupal-gallery2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top SEO &amp; Speed WordPress Plugins To Boost Off 2010</title>
		<link>http://teqsnacks.com/2010/01/23/top-seo-speed-wordpress-plugins-boost-2010/</link>
		<comments>http://teqsnacks.com/2010/01/23/top-seo-speed-wordpress-plugins-boost-2010/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 15:09:29 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Making Money]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[best]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[wordpress mu]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://teqsnacks.com/2010/01/23/top-seo-speed-wordpress-plugins-boost-2010/</guid>
		<description><![CDATA[Looking for some WordPress plugin recommendations to kick off 2010 with more SEO &#38; Speed? I got some for you. Around the beginning of 2010 I saw an explosion of lists with various recommended WordPress plugins : Best 16 WordPress Plugins For 2010 The 15 Best WordPress Plugins to Use in 2010 75 Best WordPress [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-bottom: 0px;border-left: 0px;margin: 5px 5px 5px 15px;border-top: 0px;border-right: 0px" title="Top SEO &amp; Speed WordPress Plugins To Boost Off 2010" border="0" alt="Top SEO &amp; Speed WordPress Plugins To Boost Off 2010" align="right" src="http://teqsnacks.com/files/2010/01/image2.png" width="198" height="184" />Looking for some WordPress plugin recommendations to kick off 2010 with more SEO &amp; Speed? I got some for you.</p>
<p>Around the beginning of 2010 I saw an explosion of lists with various recommended WordPress plugins :</p>
<ul>
<li><a href="http://www.technshare.com/2010/01/21/best-16-wordpress-plugins-for-2010/">Best 16 WordPress Plugins For 2010</a></li>
<li><a href="http://www.sitesketch101.com/15-incredible-wordpress-plugins-you-need">The 15 Best WordPress Plugins to Use in 2010</a></li>
<li><a href="http://loreleiwebdesign.com/2009/12/26/75-best-wordpress-plugins-that-make-bloggers-lives-easier/">75 Best WordPress Plugins That Make Bloggers Lives Easier</a></li>
<li><a href="http://mashable.com/2009/03/20/wordpress-seo-plugins/">20 of the Best SEO Plugins for WordPress</a></li>
<li><a href="http://www.webuildyourblog.com/?p=1982">Best WordPress Plugins to improve the Security of your Blog</a></li>
</ul>
<p>&#160;</p>
<p>These are okay, but there are a few plugins that can really help boost things up for you. Following are some of my favorite plugins and recommendations for 2010 :</p>
<h3><u>Search Engine Optimization (SEO) plugins</u></h3>
<ol>
<li><a href="http://www.seodesignsolutions.com/wordpress-seo/">SEO Ultimate WordPress Plugin</a> - The AllinOneSEO alternative.</li>
<li><a href="http://www.prelovac.com/vladimir/wordpress-plugins/seo-super-comments">SEO Super Comments</a> – Index your comments as separate pages (thousands of added long tail pages).</li>
<li><a href="http://urbangiraffe.com/plugins/headspace2/">HeadSpace 2</a> – Complete control over metas (overlaps with some of #1, complements #4, not recommended for WPMU)</li>
<li><a href="http://yoast.com/wordpress/meta-robots-wordpress-plugin/">Meta Robots WordPress plugin</a> – All needed SEO tags (overlaps with some of #1, complements #3, not recommended for WPMU)</li>
<li><a href="http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links">SEO Smart Links</a> – ALinks reloaded. Auto internal and external linking</li>
<li><a href="http://www.geniosity.co.za/musings/wordpress/hotlink-2-link-wordpress-plugin/">Hotlink 2 Link WordPress Plugin</a> – Make it easy to link to your photos.</li>
<li><a href="http://www.nothing2hide.net/wp-plugins/wordpress-global-translator-plugin/">WordPress Global Translator Plugin</a> – Make translation pages of your blog in any language (thousands of added long tail pages with real added value for visitors).</li>
<li><a href="http://www.askapache.com/ajax/404-google-wordpress-plugin.html">SEO Boost from Google 404 Plugin</a> – Best 404 page possible.</li>
<li><a href="http://omninoggin.com/wordpress-plugins/wp-greet-box-wordpress-plugin/">WP Greet Box WordPress Plugin</a> – Make the most of incoming traffic.</li>
</ol>
<p>&#160;</p>
<h3><u>Speed plugins</u></h3>
<ul>
<li><a href="http://www.poradnik-webmastera.com/projekty/db_cache_reloaded/">DB Cache Reloaded – Projekty</a> – Using WPSuperCache? try this instead (not tested on WPMU).</li>
<li><a href="http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/">WP Minify WordPress Plugin</a> – Optimize JS and CSS files (not tested on WPMU).</li>
</ul>
<p>&#160;</p>
<h3><u>Making money plugins</u></h3>
<p>The only real way to make money blogging is direct advertising. This is the best no hassle direct advertising plugin I know:</p>
<ul>
<li><a href="http://teqsnacks.com/oiopublisher">OIOPublisher</a> (aff, I bought this plugin, if you do direct ads, you should too)</li>
</ul>
<p>&#160;</p>
<p>Happy 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2010/01/23/top-seo-speed-wordpress-plugins-boost-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Drupal Stuck Cron Jobs : MySQL server has gone away</title>
		<link>http://teqsnacks.com/2010/01/22/drupal-stuck-cron-jobs-mysql-server-has-gone-away/</link>
		<comments>http://teqsnacks.com/2010/01/22/drupal-stuck-cron-jobs-mysql-server-has-gone-away/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 06:26:19 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[stuck]]></category>

		<guid isPermaLink="false">http://teqsnacks.com/2010/01/22/drupal-stuck-cron-jobs-mysql-server-has-gone-away/</guid>
		<description><![CDATA[Some things in Drupal are a pain in the ass to debug. Hanging cron jobs that never seem to end are one of those things. Strange messages start appearing like… Cron has been running for over an hour and is probably stuck. or Attempting to restart Cron That usually doesn’t leave you with much to [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 13px 5px 13px 15px; border-width: 0px;" title="Stuck Drupal Cron Jobs" src="http://teqsnacks.com/files/2010/01/image1.png" border="0" alt="Stuck Drupal Cron Jobs" width="190" height="189" align="right" /> Some things in Drupal are a pain in the ass to debug. Hanging cron jobs that never seem to end are one of those things. Strange messages start appearing like…</p>
<blockquote><p>Cron has been running for over an hour and is probably stuck.</p></blockquote>
<p>or</p>
<blockquote><p><span style="color: #333333;">Attempting to restart Cron</span></p></blockquote>
<p>That usually doesn’t leave you with much to work with, does it?</p>
<p>[UPDATE 05/09/2010 - I recommend installing the <a href="http://drupal.org/project/supercron" target="_blank">SuperCache module</a> that will either take care of 90% of the problems or help you track down the probelm. This should quickly be integrated into core, if you ask me]</p>
<p>First thing to tackle this is try and get the cron unstuck and running. To do that, you can install the <a href="http://drupal.org/project/devel">Devel module</a>, goto the variable view, and delete the cron_semaphore variable that indicated a cron is already running. After flushing all cache you should be able to run cron again. Then, you might come across various types of the next strange message</p>
<blockquote><p>MySql : " Warning: MySQL server has gone away "</p></blockquote>
<p>Gone away where?</p>
<p>This indicates that MySQL is timing out. To tackle that you’d need to tweak MySQL a bit. <a href="http://drupal.org/node/259580">Drupal has a great guide on that</a>. Essentially, it’s opening your /etc/my.cnf and setting it to something that allows longer runs. Following is what I ended up with :</p>
<p><code> </code></p>
<p><code>[mysqld]<br />
skip-bdb<br />
set-variable = max_connections=500<br />
safe-show-database</p>
<p>connect_timeout=30<br />
interactive_timeout=45<br />
wait_timeout=45</p>
<p>join_buffer_size=2M<br />
key_buffer_size=384M<br />
max_allowed_packet=64M<br />
myisam_sort_buffer_size=48M<br />
read_buffer_size=2M<br />
sort_buffer_size=2M<br />
read_rnd_buffer_size=64M<br />
myisam_sort_buffer_size = 64M<br />
table_cache=4096<br />
thread_cache_size=96<br />
tmp_table_size=64M<br />
query_cache_limit=1M<br />
query_cache_size=32M<br />
query_cache_type=1</p>
<p></code></p>
<p><code> </code></p>
<p>Don’t forget to restart the server and after clearing the cron semaphore again rerun the cron. That should take care of things.</p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2010/01/22/drupal-stuck-cron-jobs-mysql-server-has-gone-away/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating WordPress sites to Multi User with Multiple Domains</title>
		<link>http://teqsnacks.com/2009/07/31/migrating-wordpress-sites-multi-user-multiple-domains/</link>
		<comments>http://teqsnacks.com/2009/07/31/migrating-wordpress-sites-multi-user-multiple-domains/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 05:57:44 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[multi site manager]]></category>
		<category><![CDATA[multiple domains]]></category>
		<category><![CDATA[wordpress mu]]></category>
		<category><![CDATA[wordpress multi user]]></category>

		<guid isPermaLink="false">http://teqsnacks.com/2009/07/31/migrating-wordpress-sites-multi-user-multiple-domains/</guid>
		<description><![CDATA[Too many WordPress sites? Consider migrating them all into one WordPress Multi-User (WPMU) site with the Multi Site Manager functionality to host one installation for multiple domain. Why? One installation and upgrading for core WordPress. One installation and upgrading for plugins. Domains are easily manageable. Quickly setup a new WordPress installation in no-time. As easy [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-right-width: 0px;margin: 5px 5px 5px 15px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px" border="0" alt="Wordpress" src="http://teqsnacks.com/files/2009/07/image.png" width="142" height="142" /> <img style="border-right-width: 0px;margin: 5px 5px 5px 15px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px" border="0" alt="Migrate into" src="http://teqsnacks.com/files/2009/07/image1.png" width="76" height="76" /> <img style="border-right-width: 0px;margin: 5px 5px 5px 15px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px" border="0" alt="Wordpress Multi User" src="http://teqsnacks.com/files/2009/07/image2.png" width="148" height="148" /> </p>
<p>Too many WordPress sites? Consider migrating them all into one WordPress Multi-User (WPMU) site with the Multi Site Manager functionality to host one installation for multiple domain. </p>
<p>Why?</p>
<ol>
<li>One installation and upgrading for core WordPress. </li>
<li>One installation and upgrading for plugins. </li>
<li>Domains are easily manageable. </li>
<li>Quickly setup a new WordPress installation in no-time. As easy as pointing the new domain to the install directory and configuring the Multi Site Manager plugin. </li>
</ol>
<p>&#160;</p>
<p>Need some help and general directions to get you started? Here are a few links and pointers.</p>
<ol>
<li>It's highly recommended that you atleast get yourself a VPS that you could play around with (WHM and shell access). I use <a href="http://teqsnacks.com/hostforweb" rel="nofollow" target="_blank">Hostforweb</a> and <a href="http://teqsnacks.com/vpsnet" rel="nofollow" target="_blank">VPS.NET</a>. </li>
<li><a href="http://codex.wordpress.org/Installing_WPMU">Install WPMU</a> </li>
<li>Need to set &quot;No wildcards for local hosts file&quot;
<ol>
<li><a href="http://mu.wordpress.org/forums/topic.php?id=6458" target="_blank">Locally - Need to add every test domain by hand.</a>&#160; </li>
<li><a href="http://mu.wordpress.org/forums/topic.php?id=311&amp;replies=2#post-1658" target="_blank">DNS changes.</a> </li>
<li><a href="http://www.blogopreneur.com/2006/11/06/installing-wordpress-mu-on-a-cpanelwhm-server/" target="_blank">Setting up the WHM</a>
<ol>
<li>Your hosts file is usually under /etc/hosts </li>
<li>Your httpd.conf&#160; is usually under&#160; /usr/local/apache/conf/httpd.conf </li>
<li><a href="http://www.blogopreneur.com/2006/11/06/installing-wordpress-mu-on-a-cpanelwhm-server/#comment-79578" target="_blank">Follow the directions on this comment.</a> </li>
</ol>
</li>
</ol>
</li>
<li>I prefer the sub-domains option – <a href="http://mu.wordpress.org/forums/topic.php?id=8569" target="_blank">installation has to be in the main directory</a>. </li>
<li>Configure Domain mapping
<ol>
<li><a href="http://wpmudev.org/project/Multi-Site-Manager" target="_blank">Multi Site&#160; Manager</a> (the option I use)
<ol>
<li><a href="http://www.brilliances.com/multisite-manager-with-wordpress-mu/" target="_blank">Guide on getting Multi Site Manager to work on WPMU.</a> </li>
</ol>
</li>
<li><a href="http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/" target="_blank">Domain mapping plugin</a>
<ol>
<li><a href="http://jimgroom.umwblogs.org/2008/08/14/wpmu-domain-mapping-plugin-on-cpanel/" target="_blank">Tutorial on setting things up.</a> </li>
</ol>
</li>
<li><a href="http://bui4ever.com/web-itecture/wordpress_mu_with_domain_mapping" target="_blank">Doing it by hand</a> (God knows why, I recommend against this unless you know what you're doing). </li>
<li>In case you run into trouble with repeated redirection loops or you're not able to login to the mapped domain - recreate the mapping, reset ALL permissions. </li>
</ol>
</li>
<li>Plugins - some WordPress plugins work as is on WPMU. General comments about plugins that work for basic functionality
<ol>
<li><a href="http://wordpress.org/extend/plugins/standard-xml-sitemap/installation/" target="_blank">Sitemaps</a> </li>
<li><a href="http://www.be-lifted.com/posts/google-analytics-plugin-for-wordpress-mu-revised-english/" target="_blank">Google Analytics</a> </li>
<li>Headspace2 didn't work well, applied <a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">All in One SEO</a>. </li>
</ol>
</li>
<li>Then - migrate your WordPress sites into the WPMU
<ol>
<li>Importing categories - use the OPML of your WordPress blog with&#160; <a href="http://youroldblog.com/wp-links-opml.php">http://youroldblog.com/wp-links-opml.php</a> with the import option in your new blog. </li>
<li><a href="http://www.problogger.net/archives/2009/01/03/how-to-move-from-wordpresscom-to-wordpressorg/" target="_blank">Export your posts and comments and import to the new blog</a>.&#160; </li>
</ol>
</li>
<li>Redirect to the new domain - set .htaccess with the following </li>
</ol>
<p> <code>
<p>&lt;IfModule mod_rewrite.c&gt;      <br />RewriteEngine on</p>
<p>RewriteCond %{HTTP_HOST} !^newsite.com$ [NC]      <br />RewriteRule ^(.*)$ <a href="http://newsite.com/">http://newsite.com/</a>$1 [R=301,QSA,L] </p>
<p>&lt;/IfModule&gt;</p>
</p>
<p> </code>
<p>Did it a few months ago with and have since enjoyed effortless maintenance and new blog setup. Have helped a few friends use this method with their setups. Hope this helps somewhat.</p>
<p>Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2009/07/31/migrating-wordpress-sites-multi-user-multiple-domains/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatically post your new WordPress blog posts on your Facebook profile</title>
		<link>http://teqsnacks.com/2009/06/22/automatically-post-new-wordpress-blog-posts-facebook-profile/</link>
		<comments>http://teqsnacks.com/2009/06/22/automatically-post-new-wordpress-blog-posts-facebook-profile/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 14:36:22 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[automatical]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://teqsnacks.com/2009/06/22/automatically-post-new-wordpress-blog-posts-facebook-profile/</guid>
		<description><![CDATA[Tired of posting the blogs updates to your Facebook account manually? Want to keep your Facebook contacts up to date with your latest blog posts? There are a few way to do that automatically. In Facebook, the one Facebook application that seems to do it right is Social RSS (formerly RSS-Connect). In the settings, add [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 5px 5px 5px 15px" border="0" alt="Wordpress &amp; Facebook" align="right" src="http://teqsnacks.com/files/2009/06/image1.png" width="163" height="177" /> Tired of posting the blogs updates to your Facebook account manually? Want to keep your Facebook contacts up to date with your latest blog posts? There are a few way to do that automatically. </p>
<p>In Facebook, the one Facebook application that seems to do it right is <a href="http://apps.facebook.com/rss-connect/presentation.php">Social RSS</a> (formerly RSS-Connect). In the settings, add your blog name and RSS address, set your &quot;Display Options&quot; and in Newsfeed make sure you grant access and set the feed to &quot;Yes&quot;.</p>
<p>If you want to do it through your WordPress blog, try the <a href="http://wordpress.org/extend/plugins/wordbook/">Wordbook plugin</a>.</p>
<blockquote><p>This plugin allows you to cross-post your blog posts to your Facebook Wall. Your Facebook &quot;Boxes&quot; tab will show your most recent blog posts.</p>
</blockquote>
<p>If you're looking for a plugin that does the opposite, taking your facebook updates and posting them on your blog, take a look at the&#160; <a href="http://wordpress.org/extend/plugins/facebook-posted-items/">Facebook Posted Items plugin</a>. If you're looking to combine all sorts of feeds from different social websites, I strongly recommend <a href="http://www.ibegin.com/labs/wp-lifestream/">Lifestream</a>. </p>
<p>The option I dislike the most is using the <a href="http://www.facebook.com/notes.php">Facebook notes option</a>. Following are a few posts on how to do that. I recommend against it (posts old entries, ugly display, no batch remove etc.) :</p>
<ul>
<li><a href="http://www.insidefacebook.com/2009/02/22/how-to-import-your-blog-into-facebook/">How to Import Your Blog Into Facebook</a> </li>
<li><a href="http://www.mitchelaneous.com/2007/08/03/facebook-importing-a-rss-feed-as-notes/">Facebook: Importing a RSS Feed as Notes</a> </li>
</ul>
<p>BTW - the <a href="http://www.sociable.es/facebook-connect/">Facebook Connect WordPress Plugin</a> will allow your blog users to login using their facebook accounts (photo in post from their website).</p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2009/06/22/automatically-post-new-wordpress-blog-posts-facebook-profile/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Intense-Debate &#8211; Uninstalling, changing back author URLs and WordPress alternatives</title>
		<link>http://teqsnacks.com/2009/05/18/intense-debate-uninstalling-change-back-author-url-wordpress-alternatives/</link>
		<comments>http://teqsnacks.com/2009/05/18/intense-debate-uninstalling-change-back-author-url-wordpress-alternatives/#comments</comments>
		<pubDate>Tue, 19 May 2009 05:35:44 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[commenting]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[intense debate]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[uninstall]]></category>

		<guid isPermaLink="false">http://www.filination.com/tech/2009/05/18/intense-debate-uninstalling-change-back-author-url-wordpress-alternatives/</guid>
		<description><![CDATA[A while ago I was experimenting with a relatively new comments trend in some of the WordPress blogosphere to manage and display your blog comments through 3rd parties. After looking into the options, I decided to go for Intense Debate. The main benefits considered to install such a tool were to have instant AJAX based [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 5px 5px 5px 15px" border="0" alt="Intense-Debate - Uninstalling, changing back author URLs and WordPress alternatives" align="right" src="http://teqsnacks.com/files/2009/05/image1.png" width="261" height="210" /> A while ago I was experimenting with a relatively new comments trend in some of the WordPress blogosphere to manage and display your blog comments through 3rd parties. After looking into the options, I decided to go for Intense Debate. The main benefits considered to install such a tool were to have instant AJAX based multi-threaded commenting.</p>
<p>After running it for a month I decided to uninstall. The reasons for that included the following :</p>
<ol>
<li><strong>Horrible SPAM management and comment moderation</strong>. There were still some issues in regards to how Intense Debate plays with the WordPress mechanism, and some comments just got lost. </li>
<li><strong>Sync problems between WP and Intense</strong>. Some comments were published in WordPress but not in Intense Debate and vice versa. It seemed as though some would eventually sync somehow, but that would have been after a long delay and with no admin notification. </li>
<li><strong>Admin comments URL link go to Intense Debate instead of to the blog.</strong> this one really bothered me alot, since it affected some of the other plugins that I was using, like &quot;Top Commenters&quot; which now saw me as just another user with an external URL. I wrote them about that and they claimed that they're considering adding that later on. </li>
<li><strong>Disappearing comments</strong>. Sometimes comments would just disappear. I couldn't tell when and under what circumstances, they just did, and more than once. Needless to say just how frustrating that it. </li>
<li><strong>Comment section not appearing in search engines.</strong> I've heard they've been working on that, but for some time Intense Debate had some SEO crawlability issues since it's using Javascript . The "noscript" tag that was used included only some if any of the comments and usually with some wrong parameters. Naturally, this also affects those browsing the web with Javascript turned off. </li>
</ol>
<p><font color="#000000">There are endless other posts out there with more reasons (<a href="http://www.myseveralworlds.com/2009/05/18/plugin-review-intense-debate/">example</a>). Uninstalling Intense Debate is a breeze, I'll grant them that, but there things you might want to consider doing after that :</font></p>
<p>(1) Revert all admin comments back to your URL instead of Intense Debate. Open your PhpMyAdmin, select your WordPress DB, select &quot;SQL&quot; to run an SQL query and run your variation of the following :</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> comment_author_url<span style="color: #66cc66;">=</span><span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>comment_author_url<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'http://intensedebate.com/people/myintensedebateusername'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'http://www.myblogurl.com'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> user_id<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">WHERE</span> comment_author_email<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'myemail@gmail.com'</span>;</pre></div></div>

<p>(2) Remove all Intense Debate sidebar widgets</p>
<p>(3) Upgrade your theme to included threaded comments. <a href="http://www.niharsworld.com/2008/12/16/how-to-implement-threaded-comments-in-wordpress-themes/">If you're running WordPress 2.7 and above you can change your theme to have that functionality</a>.</p>
<p>(4) Add AJAX. This next <a href="http://rk.md/2009/ajax-commenting-wordpress/">AJAX commenting plugin</a> looks interesting and works for WordPress 2.7 (I'm not sure why the <a href="http://wordpress.smullindesign.com/plugins/ajax-comments">original homepage</a> is dead).</p>
<p>(Photo from <a href="http://www.asktheadmin.com/2008/05/poll-should-we-keep-or-dump-intense-debate-for-our-comments.html">Asktheadmin.com</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2009/05/18/intense-debate-uninstalling-change-back-author-url-wordpress-alternatives/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Migrating Multi-Author WordPress Blog : Import-Export Users</title>
		<link>http://teqsnacks.com/2009/05/18/moving-multi-author-wordpress-blog-import-export-users/</link>
		<comments>http://teqsnacks.com/2009/05/18/moving-multi-author-wordpress-blog-import-export-users/#comments</comments>
		<pubDate>Mon, 18 May 2009 12:27:57 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[multi author]]></category>

		<guid isPermaLink="false">http://www.filination.com/tech/2009/05/18/moving-a-multi-author-blog-authors-import-export-users/</guid>
		<description><![CDATA[How do you move WordPress users between blogs? That's a tricky one. WordPress doesn't allow you to neatly import and export users so you need to result into some plugins and a bit of easy tweaking. Ingredients : Users to CSV is a useful plugin by Joost originally intended to start off your mailing list [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 5px 5px 5px 15px" border="0" alt="Moving a Multi-Author Blog Authors : Import-Export Users" align="right" src="http://teqsnacks.com/files/2009/05/image.png" width="179" height="168" /> How do you move WordPress users between blogs? That's a tricky one. WordPress doesn't allow you to neatly import and export users so you need to result into some plugins and a bit of easy tweaking.</p>
<p>Ingredients :</p>
<ul>
<li>Users to CSV is a useful plugin by Joost originally intended to start off your mailing list based on subscriber users or registered commenters, which you can consider if you're into creating a newsletter for your blog (and you should). For me, this was helpful in exporting the userbase to a CSV file. </li>
<li><a href="http://www.dagondesign.com/articles/import-users-plugin-for-wordpress/">Import Users Plugin for WordPress</a> is a small little plugin by Yoast that would allow you to import the users from a CSV. Though it does it job okay, I needed a slightly different thing, so I used a slightly modified version by <a href="http://rodeworks.com/technology/wordpress-batch-import-users/">Rodeworks</a>. </li>
<li>A CSV editor. I simply used Excel 2007. Check <a href="http://help.yahoo.com/l/us/yahoo/smallbusiness/store/shipping/shipping-57.html">this help page</a> if you're not sure how to import and export a CSV file with Excel (didn't lookit up too long, you might be able to find something nicer). </li>
</ul>
<p><font color="#000000">What to do :</font></p>
<ul>
<li>Activate the Users to CSV plugin and export your user base into a CSV. </li>
<li>Activate the Import Users plugin and go to the import page. </li>
<li>Open the exported CSV with a CSV editor. </li>
<li>Change the columns to fit the specifications on the import page. </li>
<li>Copy paste your adjusted CSV into the import page and import. </li>
<li>You're done. </li>
</ul>
<p><font color="#000000">On some occasions, I've seen this need a bit of further role editing with the regular batch role assignment in the WordPress admin console.</font></p>
<p><font color="#000000">Hope that helps. If you know of anything simpler, I'm interested.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2009/05/18/moving-multi-author-wordpress-blog-import-export-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7, 404 errors and Magic Quotes GPC</title>
		<link>http://teqsnacks.com/2009/01/20/wordpress-2-7-404-errors-magic-quotes-gpc-issue/</link>
		<comments>http://teqsnacks.com/2009/01/20/wordpress-2-7-404-errors-magic-quotes-gpc-issue/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 17:39:15 +0000</pubDate>
		<dc:creator>Fili</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[magic quotes]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shared hosting]]></category>

		<guid isPermaLink="false">http://www.filination.com/tech/2009/01/20/wordpress-2-7-404-errors-magic-quotes-gpc-issue/</guid>
		<description><![CDATA[WordPress 2.7 doesn't work well with Magic Quotes, I've learned the hard way while trying to help a fellow worker get her blog back to work this week. The symptom was a change in the wp_options table reverting this : a:63:{s:11:&#34;robots.txt$&#34;;....... to this : a:63:{s:12:&#34;robots.txt$&#34;;....... Resulting in permalinks leading to 404 not found errors for [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 5px 5px 5px 15px" border="0" alt="Wordpress 2.7 and Magic Quotes GPC" align="right" src="http://teqsnacks.com/files/2009/01/image.png" width="103" height="103" /> WordPress 2.7 doesn't work well with Magic Quotes, I've learned the hard way while trying to help a fellow worker get her blog back to work this week.</p>
<p>The symptom was a change in the wp_options table reverting this :</p>
<blockquote><p>a:63:{s:11:&quot;robots.txt$&quot;;.......</p>
</blockquote>
<p>to this :</p>
<blockquote><p>a:63:{s:12:&quot;robots.txt$&quot;;.......</p>
</blockquote>
<p>Resulting in permalinks leading to 404 not found errors for all posts, pages and archives. This was only when the permalinks were the non-default type (&quot;beautified permalinks&quot;). The .HTACCESS file seemed in order. Then I found that this was the cause.</p>
<p>At the beginning I just switched it manually back, altering the table by using PHPMYADMIN, but every time she posted or saved something it would go back to the problematic code.</p>
<p>The problem, it seems, was caused by Magic Quotes and the only way to fix it is through changing the Magic Quotes value. </p>
<p>There are a number of ways you can do that. First, add this to the vhost settings :</p>
<blockquote><p>magic_quotes_runtime = Off      <br />magic_quotes_sybase = Off</p>
</blockquote>
<p>Or you can also add this to the .htaccess :</p>
<blockquote><p>php_flag magic_quotes_runtime Off      <br />php_flag magic_quotes_sybase Off</p>
</blockquote>
<p>Effect would be the same.</p>
<p>Problem was, my friend was running on a shared hosting with <a href="http://teqsnacks.com/anhosting/">Anhosting</a> so she couldn't touch the vhost and adding those flags to .htaccess resulted in 505 errors.</p>
<p>The way to solve this was :</p>
<blockquote><p>I tried one more thing. It seems Anhosting allows changing some PHP variables by adding a PHP.INI file to the directory in question (<a href="http://help.midphase.com/support/questions.php?questionid=527">http://help.midphase.com/support/questions.php?questionid=527</a>) so I added a PHP.INI file with the following directive :</p>
<p>magic_quotes_gpc = Off</p>
</blockquote>
<p>That seemed to do the trick. Apparently, this solves a number of other issues with WordPress 2.7 as well. Solution was posted on <a href="http://wordpress.org/support/topic/226591/page/2">the relevant WordPress thread</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://teqsnacks.com/2009/01/20/wordpress-2-7-404-errors-magic-quotes-gpc-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Object Caching 0/0 objects using disk: basic

Served from: teqsnacks.com @ 2012-05-21 20:35:03 -->
