<?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>Dwight Jack Diary &#187; SH404SEF</title>
	<atom:link href="http://www.dwightjack.com/diary/tag/sh404sef/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dwightjack.com/diary</link>
	<description>Diary of music, design and code</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:52:37 +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>Fixing PDF button error with SEF in Joomla 1.5</title>
		<link>http://www.dwightjack.com/diary/2009/04/17/fixing-pdf-button-error-sef-joomla/</link>
		<comments>http://www.dwightjack.com/diary/2009/04/17/fixing-pdf-button-error-sef-joomla/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 15:59:43 +0000</pubDate>
		<dc:creator>Dwight Jack</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[Joomla 1.5]]></category>
		<category><![CDATA[SH404SEF]]></category>

		<guid isPermaLink="false">http://www.dwightjack.com/diary/?p=143</guid>
		<description><![CDATA[One of the weirdest error in Joomla 1.5 is that just turning SEF on makes PDF button stop working in content articles.
This happens with both system and 3rd party components.]]></description>
			<content:encoded><![CDATA[<p>One of the weirdest error in Joomla 1.5 is that just turning SEF on makes PDF button stop working in content articles.<br />
This happens with both system and 3rd party components.</p>
<p>I&#8217;ve recently digged the problem and found that this could be related (kinda randomly) to a bunch of problems and conflicts with other Joomla feature (such as system cache).</p>
<p>In my own projects im using right now <strong>SH404SEF</strong> as SEF component and i&#8217;ve found it&#8217;s a really good piece of software, so here is a recap of the fix/patch for the problem.</p>
<p>First of all <a href="http://extensions.siliana.com/en/Table/sh404SEF-and-url-rewriting/" target="_blank">upgrade SH404</a> to the latest release by downloading it from <a href="http://joomlacode.org/gf/project/sh404sef/frs/" target="_blank">JoomlaCode</a>.</p>
<p>Now open <code>custom.sef.php</code> in <code>administrator/components/com_sh404sef/</code> and search for a line containing:</p>
<pre><code>$shDefaultParams['sh404SEF_PROTECT_AGAINST_DOCUMENT_TYPE_ERROR'] = 0;</code></pre>
<p>and set the paramenter to 1:</p>
<pre><code>$shDefaultParams['sh404SEF_PROTECT_AGAINST_DOCUMENT_TYPE_ERROR'] = 1;</code></pre>
<p>If this line is not present then add it at the end of the file.</p>
<p>Now go to the backend panel in Joomla and purge all SEF url by<em><strong>:</strong></em><strong><em><br />
Components -&gt; SH404SEF -&gt; Purge SEF Urls<br />
</em></strong>then clear the cache by:<br />
<strong><em>Tools -&gt; Clean Cache</em></strong></p>
<p>This will clear all current URLs, so that SH404SEF has to recreate them, anyway your PDF button should work again and the PDF URLs should be as the HTML one with an ending parameter <code>?format=pdf</code>.</p>
<p>Source: <a href="http://extensions.siliana.com/forums/index.php?topic=9509.0" target="_blank">http://extensions.siliana.com/forums/index.php?topic=9509.0</a></p>
<p><em>Note: As a side effect you shouldn&#8217;t problably be able to use the pdf folder feature to store custom PDFs!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwightjack.com/diary/2009/04/17/fixing-pdf-button-error-sef-joomla/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

