<?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>Tim Cinel &#187; Projects</title>
	<atom:link href="http://www.timcinel.com/tag/projects/feed" rel="self" type="application/rss+xml" />
	<link>http://www.timcinel.com</link>
	<description>Where I exercise freedom of speech</description>
	<lastBuildDate>Wed, 08 Sep 2010 22:00:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>More ProjectPier Troubles &#8211; Email Alerts</title>
		<link>http://www.timcinel.com/2008/more-projectpier-troubles-email-alerts</link>
		<comments>http://www.timcinel.com/2008/more-projectpier-troubles-email-alerts#comments</comments>
		<pubDate>Sat, 15 Mar 2008 01:16:42 +0000</pubDate>
		<dc:creator>Tim Cinel</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[projectpier]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.timcinel.com/2008/more-projectpier-troubles-email-alerts</guid>
		<description><![CDATA[I personally think that the latest release of ProjectPier may have been released prematurely. Just by looking at my last day of posts, you might see that there were two pretty serious issues straight after installation. Well, I found another one! After finally getting ProjectPier to send emails through the Mass Mail tool, I thought [...]]]></description>
			<content:encoded><![CDATA[<p>I personally think that the latest release of ProjectPier may have been released prematurely. Just by looking at my last day of posts, you might see that there were two pretty serious issues straight after installation. Well, I found another one!</p>
<p>After <em>finally </em>getting ProjectPier to send emails through the <em>Mass Mail </em>tool, I thought that all systems were go. However, that&#8217;s not true. Today, I didn&#8217;t get any email alerts, even there was activity in a project &#8211; something was wrong. Again, I found my way back to the ProjectPier website <a href="http://www.projectpier.org/node/668#comment-920" target="_blank">where Tim (not me had come up with a solution</a>.</p>
<p>The problem is in the following files:</p>
<ul>
<li><strong> language/en_us/errors.php</strong></li>
<li><strong>language/en_us/site_interface.php</strong></li>
<li><strong>application/models/notifier/Notifier.class.php</strong></li>
</ul>
<p>You need to replace all occurrences of &#8216;<strong>recepient</strong>&#8216; with &#8216;<strong>recipient</strong>&#8216;.  This includes plurals so <em>recepients</em> needs to be changed to <em>recipients</em>, too.</p>
<p>Looks like somebody didn&#8217;t check their code <img src='http://www.timcinel.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  It&#8217;s cool though, I know it&#8217;s easy to do. Somebody that&#8217;s part of the project should recompile it with these fixes. Not me though, I&#8217;m not part of it (yet).</p>
<p><em><font color="#999999">Why didn&#8217;t the bath trust the toilet? Because the toilet was full of shit! (I actually made that one up &#8211; I&#8217;m a joke master)</font></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.timcinel.com/2008/more-projectpier-troubles-email-alerts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ProjectPier Email and Upload Problems Solved</title>
		<link>http://www.timcinel.com/2008/projectpier-email-and-upload-problems-solved</link>
		<comments>http://www.timcinel.com/2008/projectpier-email-and-upload-problems-solved#comments</comments>
		<pubDate>Fri, 14 Mar 2008 13:58:39 +0000</pubDate>
		<dc:creator>Tim Cinel</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[projectpier]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.timcinel.com/2008/projectpier-email-and-upload-problems-solved</guid>
		<description><![CDATA[One of my subjects, &#8220;Enterprise Engineering&#8221;, requires us to form a group to work on a project. Since my group only really gets together once a week, I used this as an excuse to install something I&#8217;ve wanted to for ages &#8211; ProjectPier. After registering this domain, it was the first thing I set up. [...]]]></description>
			<content:encoded><![CDATA[<p>One of my subjects, &#8220;Enterprise Engineering&#8221;, requires us to form a group to work on a project. Since my group only really gets together once a week, I used this as an excuse to install something I&#8217;ve wanted to for ages &#8211; <a href="http://www.projectpier.org/" target="_blank">ProjectPier</a>. After registering this domain, it was the first thing I set up. ProjectPier was <em>really </em>impressive &#8211; it is <em>just </em>as good as, if not better than 37 Sinals&#8217; &#8220;Basecamp&#8221;, except it&#8217;s free! But I soon realised that ProjectPier wasn&#8217;t so great&#8230;</p>
<p align="center">&nbsp;</p>
<p style="text-align: center"><img src="http://www.timcinel.com/wp-content/projectpier.JPG" alt="EEET Project in ProjectPier" /></p>
<p style="text-align: center"><em>ProjectPier after setting up, creating projects, adding tasks and changing the theme.<br />
You really should change the theme, the default one&#8217;s a bit 90&#8242;s.<br />
</em><br />
<span id="more-8"></span> At first I didn&#8217;t notice any problems but once I started using it, there was definitely something wrong. After <em>another </em>day I noticed something else was wrong. The two problems:</p>
<ul>
<li> ProjectPier wouldn&#8217;t allow file uploads to messages, tasks, comments, etc. (Though avatars uploaded properly)</li>
<li>No emails were being sent by ProjectPier. None at all.</li>
</ul>
<p>Well, these two things were serious enough to warrant an &#8230; investigation <img src='http://www.timcinel.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So I obviously did some snooping around and fiddling around. The problem with these issues is that there were mainly no explicit error messages &#8211; only the lack of results (ie. files not uploading, emails not arriving).</p>
<p>Anyway, after some time I found solutions to both issues on the <a href="http://www.projectpier.org/" target="_blank">ProjectPier website</a>:</p>
<h2>ProjectPier File Uploads Failing</h2>
<p>The problem was that ProjectPier thought it wasn&#8217;t allowed to create a directory for file uploads &#8211; apparently it&#8217;s an OS-dependent error. Errors were only sometimes actually reported, but when they were it usually said somthing like &#8220;<em>Failed to create folder</em>&#8220;. Basically, you have to go in and change some code in one of the file routines to fix it. On the ProjectPier website, <a href="http://www.projectpier.org/node/285" target="_blank">Martin came up with a working solution</a>:</p>
<blockquote><p>In <em>/environment/functions/files.php </em>, the function &#8216;<code>force_mkdir' </code>needs to be modified, because this is the function that is incorrectly deciding that it can&#8217;t create the directory. Here&#8217;s Martin&#8217;s code that solves the issue:</p>
<p><code><span style="color: #000000"><span style="color: #0000bb">$real_path </span><span style="color: #007700">= </span><span style="color: #0000bb">str_replace</span><span style="color: #007700">(</span><span style="color: #dd0000">'\\'</span><span style="color: #007700">, </span><span style="color: #dd0000">'/'</span><span style="color: #007700">, </span><span style="color: #0000bb">$path</span><span style="color: #007700">);<br />
</span><span style="color: #0000bb">mkdir</span><span style="color: #007700">(</span><span style="color: #0000bb">$real_path</span><span style="color: #007700">, </span><span style="color: #0000bb">$chmod</span><span style="color: #007700">, </span><span style="color: #0000bb">true</span><span style="color: #007700">);<br />
return </span><span style="color: #0000bb">is_dir</span><span style="color: #007700">(</span><span style="color: #0000bb">$real_path</span><span style="color: #007700">);</span></span></code></p>
<p>The least disruptive way to make the change is to add leave the existing code within the function, but add this code above it, like so:</p>
<p><code><span style="color: #000000"><span style="color: #007700">function </span><span style="color: #0000bb">force_mkdir</span><span style="color: #007700">(</span><span style="color: #0000bb">$path</span><span style="color: #007700">, </span><span style="color: #0000bb">$chmod </span><span style="color: #007700">= </span><span style="color: #0000bb">null</span><span style="color: #007700">) {<br />
</span><span style="color: #0000bb">$real_path </span><span style="color: #007700">= </span><span style="color: #0000bb">str_replace</span><span style="color: #007700">(</span><span style="color: #dd0000">'\\'</span><span style="color: #007700">, </span><span style="color: #dd0000">'/'</span><span style="color: #007700">, </span><span style="color: #0000bb">$path</span><span style="color: #007700">);<br />
</span><span style="color: #0000bb">mkdir</span><span style="color: #007700">(</span><span style="color: #0000bb">$real_path</span><span style="color: #007700">, </span><span style="color: #0000bb">$chmod</span><span style="color: #007700">, </span><span style="color: #0000bb">true</span><span style="color: #007700">);<br />
return </span><span style="color: #0000bb">is_dir</span><span style="color: #007700">(</span><span style="color: #0000bb">$real_path</span><span style="color: #007700">);</span></span></code><code><span style="color: #000000"><span style="color: #dd0000"><br />
\</span></span></code><code><span style="color: #000000"><span style="color: #dd0000">\existing code is down here</span></span></code></p>
<p>Once you&#8217;ve made this change, you&#8217;ll be sharing your project files in no time. Project files and funny pictures of cats.</p></blockquote>
<h2>Emails Not Being Sent by ProjectPier</h2>
<blockquote><p>This solution took a bit longer to find and also came from the ProjectPier website. Although nobody explicitly stated the solution, <a href="http://www.projectpier.org/node/652" target="_blank">one of the posts</a> mentioned an error about &#8220;PHP Safe Mode&#8221;. I realised that I had it enabled for the virual host.</p>
<p>I disabled PHP Safe Mode. Then there was email.</p></blockquote>
<p><em>And that&#8217;s why, you never yell. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.timcinel.com/2008/projectpier-email-and-upload-problems-solved/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
