<?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>Cozmoslabs &#187; bug</title>
	<atom:link href="http://www.cozmoslabs.com/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cozmoslabs.com</link>
	<description>Web design and development experiment.</description>
	<lastBuildDate>Thu, 01 Jul 2010 09:26:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Joomla! 1.5.3 FTP layer and upload problems (update)</title>
		<link>http://www.cozmoslabs.com/2008/08/13/joomla-153-ftp-layer-and-upload-problems/</link>
		<comments>http://www.cozmoslabs.com/2008/08/13/joomla-153-ftp-layer-and-upload-problems/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 10:25:06 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[ftp layer]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=62</guid>
		<description><![CDATA[I&#8217;ve encountered a really nasty problem with a Joomla! 1.5 installation for a client of mine. It has to do with the default PHP upload function. The problem manifested like this: Upon uploading and installing a plugin, because the server was using PHP 4 I needed to make some modifications to the plugin php files [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/11/21/themes-in-gmail/' rel='bookmark' title='Permanent Link: Themes in Gmail'>Themes in Gmail</a></li>
<li><a href='http://www.cozmoslabs.com/2008/09/21/interface-portability-in-web-development-the-next-big-step/' rel='bookmark' title='Permanent Link: Front-end interface portability between CMS &#8211; the next BIG step in web-development?'>Front-end interface portability between CMS &#8211; the next BIG step in web-development?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img class="alignnone size-full wp-image-63" title="joomla_ftp" src="http://www.cozmoslabs.com/wp-content/uploads/2008/08/joomla_ftp.jpg" alt="" width="300" height="225" /></div>
<p>I&#8217;ve encountered a really nasty problem  with a Joomla! 1.5 installation for a client of mine. It has to do with the default PHP upload function.<br />
The problem manifested like this: Upon uploading and installing a plugin, because the server was using PHP 4 I needed to make some modifications to the plugin php files since it used the array_combine() function that was supported only in PHP 5. So far so good until I realized I couldn&#8217;t change &#8211; rename &#8211; delete &#8211; change the permissions on the files I wanted, because my ftp user didn&#8217;t have any rights.</p>
<p>Apparently the reason behind this is that when I installed via Joomla! that the &#8220;owner&#8221; of the created folders/files etc. is being set to &#8220;nobody&#8221;.</p>
<p>This was really annoying mostly because if I would try with the ftp layer I have problems just installing anything (templates, modules, plugins, components) but if I disable ftp I can install but then i can&#8217;t change the permissions via ftp which will allow me to edit any files.</p>
<p>Searching the Joomla! Forums I came across <a href="http://forum.joomla.org/viewtopic.php?f=428&amp;t=274954&amp;start=0&amp;st=0&amp;sk=t&amp;sd=a">this post</a> . I couldn&#8217;t find a really good solution so I&#8217;m not certain what to do now.</p>
<p>The apparent solution would be to make the modifications to the plugin on my local server and then upload them. All this for a copy-paste of code in a file online.</p>
<p>Also tried to install from a directory on the server without any success.</p>
<p>I haven&#8217;t finished the client&#8217;s website but I&#8217;ll have to find a solution although I don&#8217;t have high expectations and probably will have to make the modifications offline.</p>
<h4><strong>Update</strong></h4>
<p>After some fiddling around with the settings I managed to find a suitable solution. Basically I&#8217;ve set up the FTP layer and installed the component.</p>
<p><strong>1. Setting up the FTP layer in Joomla!</strong></p>
<p>The tricky part here is finding the root of the website. Also the /tmp and /log folders also needed to be exactly specified or it won&#8217;t work ok.</p>
<p>The settings for me wore :</p>
<p><em><span class="editlinktip hasTip"> Path to Temp-folder: /home/account-name/public_html/tmp<br />
</span><span class="editlinktip hasTip">Path to Log folder:  /home/</span><span class="editlinktip hasTip">account-name</span><span class="editlinktip hasTip">/public_html/logs</span></em></p>
<p>For the FTP settings I used an account that has full ftp access higher then public_html . In this case :</p>
<p><em><span class="editlinktip hasTip"> FTP Root</span>: /</em></p>
<p><strong>2. Uploading the plugin using the Directory Install</strong></p>
<p>Installing directly by uploading the component didn&#8217;t work for me&#8230; I&#8217;ve received the following errors:<br />
<span style="color: #ff4040;">JFTP::write: Bad response<br />
JFTP::delete: Bad response<br />
JFTP::write: Bad response </span></p>
<p>So I decided to try and install the component using the Directory Install Option. I&#8217;ve unpacked my component on my HDD and uploaded it here:</p>
<p><em>/home/account-name/public_html/administrator/components/com_installer/com_fabrik</em></p>
<p>Please note that this is the path that you have to write in your &#8220;Install Directory:&#8221; input also.</p>
<p>The component installed successfully and I can now modify it&#8217;s files from ftp.</p>
<p>I&#8217;m relived that I got this sorted, because I believe Joomla! 1.5 to be a big step forward compared to 1.0 and it would have been a shame to spoil it with something like this. I still don&#8217;t think this is the best way to do this but it&#8217;s a start.</p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/11/21/themes-in-gmail/' rel='bookmark' title='Permanent Link: Themes in Gmail'>Themes in Gmail</a></li>
<li><a href='http://www.cozmoslabs.com/2008/09/21/interface-portability-in-web-development-the-next-big-step/' rel='bookmark' title='Permanent Link: Front-end interface portability between CMS &#8211; the next BIG step in web-development?'>Front-end interface portability between CMS &#8211; the next BIG step in web-development?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2008/08/13/joomla-153-ftp-layer-and-upload-problems/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 11/26 queries in 0.014 seconds using disk

Served from: www.cozmoslabs.com @ 2010-07-31 02:44:33 -->