<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Can't add new company]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=1242</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1242&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Can't add new company.]]></description>
		<lastBuildDate>Sat, 08 May 2010 22:25:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5843#p5843</link>
			<description><![CDATA[<p>Two scripts for US are included in distribution package (those are /sql/en_US-*.sql files). If you need another localized COA look at our &#039;Download Chart of Accounts 2.2&#039; page.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Sat, 08 May 2010 22:25:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5843#p5843</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5838#p5838</link>
			<description><![CDATA[<p>Where do you get the script necessary to create the tables for the database when adding a new company? Both (1) using the same database as existing company and choosing 1_ for table pref, and (2) using a new database and choosing NONE in table pref.</p>]]></description>
			<author><![CDATA[null@example.com (dcabral)]]></author>
			<pubDate>Sat, 08 May 2010 15:37:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5838#p5838</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5581#p5581</link>
			<description><![CDATA[<p>Bug fixed. CVS Main trunk updated. Affected file /admin/create_coy.php.</p><p>You can download the file here:</p><br /><br /><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 08 Apr 2010 22:17:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5581#p5581</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5580#p5580</link>
			<description><![CDATA[<p>Yes, this is a bug. There is no big sense in creating company without creating database based on provided script at the same time. Will be fixed n next minor release. Thank you for pointing this out.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 08 Apr 2010 17:28:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5580#p5580</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5576#p5576</link>
			<description><![CDATA[<p>Now I found what is the problem. And here is some comment to developers - error messages needs to be better - or wiki updated.</p><p>I want empty company with empty chart of account to make new chart of account for Estonia. So - I did not upload any SQL scripts, as I first understand, that this is for pre made chart of accounts or when You want set up tables in new database. <br />And that was the problem. As I now see - it is impossible to make company without choosing and uploading SQL script. And how all can see - error messages are far far from this point - all pointing to some permission problem.</p><p>So please make for futher these messages better - when no sql file are chosen - then and error message need to say it - not that: Cannot open the extension setup file &#039;../company/1/installed_extensions.php&#039; for writing.</p>]]></description>
			<author><![CDATA[null@example.com (spott)]]></author>
			<pubDate>Thu, 08 Apr 2010 12:36:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5576#p5576</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5575#p5575</link>
			<description><![CDATA[<p>the company folder is with permissions 777 and system check also confirms, that FA can write to this directory.<br />But where FA wants to copy these folders? Maye is in this place something wrong with permissions.</p>]]></description>
			<author><![CDATA[null@example.com (spott)]]></author>
			<pubDate>Thu, 08 Apr 2010 12:04:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5575#p5575</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5574#p5574</link>
			<description><![CDATA[<div class="quotebox"><cite>spott wrote:</cite><blockquote><p>My first company has prefix 0 and all other company&#039;s, when I am creating them - FrontAccounting letting to chose 1 or none for prefix.</p></blockquote></div><p>System offers both prefixed and non-prefixed tables in selector, but the selected option is checked on save and usage of both prefixed and non-prefixed tables in the same database is forbidden (check error is displayed in this case and company is not created).</p><div class="quotebox"><blockquote><p>Now I switched on the debug mode and checked out all setup check messages. Everywhere I get OK - except installed_extensions.php file. File is chomd 777 with all write permissions - but it still shows this error.</p></blockquote></div><p>No idea why the file is not writable on your system, but surely it have to be writable for www server process to perform company creation without errors.</p><div class="quotebox"><blockquote><p>And now, when I try add new company, I am getting fallowing errors (debug is switched on)<br />Undefined index: tbpref in file: /home/portal/domains/portalinvest.com/public_html/intra/admin/create_coy.php at line 150<br />Undefined index: tbpref in file: /home/portal/domains/portalinvest.com/public_html/intra/admin/db/maintenance_db.inc at line 92<br />Cannot open the extension setup file &#039;../company/1/installed_extensions.php&#039; for writing.<br />Undefined index: tbpref in file: /home/portal/domains/portalinvest.com/public_html/intra/admin/create_coy.php at line 281</p></blockquote></div><p>It mean that company/1 folder is not writable for server (or cannot be created), or the file is readonly.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 08 Apr 2010 09:59:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5574#p5574</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5573#p5573</link>
			<description><![CDATA[<p>My first company has prefix 0 and all other company&#039;s, when I am creating them - FrontAccounting letting to chose 1 or none for prefix.</p><p>Now I switched on the debug mode and checked out all setup check messages. Everywhere I get OK - except installed_extensions.php file. File is chomd 777 with all write permissions - but it still shows this error.</p><p>And now, when I try add new company, I am getting fallowing errors (debug is switched on)<br />Undefined index: tbpref in file: /home/portal/domains/portalinvest.com/public_html/intra/admin/create_coy.php at line 150<br />Undefined index: tbpref in file: /home/portal/domains/portalinvest.com/public_html/intra/admin/db/maintenance_db.inc at line 92<br />Cannot open the extension setup file &#039;../company/1/installed_extensions.php&#039; for writing.<br />Undefined index: tbpref in file: /home/portal/domains/portalinvest.com/public_html/intra/admin/create_coy.php at line 281</p><p>But table pref is 1_ from setup screen and I checked before database - there is only 0_ tables - so 1_ is free.</p><div class="quotebox"><cite>avb3 wrote:</cite><blockquote><p>I have now set up 4 different companies in 4 different subdomains, so that part works well.</p><p>I wonder if the problem has to do with your host? On some shared hosts, you can only use one database, hence the 0,1 etc. on set up.</p><p>Look at your company setup screen when you are adding a new company. What is the table pref that you are using? It defaults to 1, however, that you would use only if you are on a shared host or if your local setup will not allow multiple databases. I notice from your screen shot that you are writing to the same database, yet you have no table pref set for the second company.</p><p>Try setting up a different database for the additional companies, and setting table pref to &quot;none&quot; on the company setup, pointing the new company to the new database.</p><p>Let us know if that works... good luck.</p><p>Janusz, please step in if I got any of this incorrect, but it seems to work for me.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (spott)]]></author>
			<pubDate>Thu, 08 Apr 2010 08:28:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5573#p5573</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5560#p5560</link>
			<description><![CDATA[<p>Yes, if you use one database for more than one company you _have_to_ use prefixes for all of them. Thank you for pointing this out, I have not found it on first glance. I will inspect checking procedures in Create Company screen and eventually fix this in sources.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Tue, 06 Apr 2010 20:43:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5560#p5560</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5556#p5556</link>
			<description><![CDATA[<p>I have now set up 4 different companies in 4 different subdomains, so that part works well.</p><p>I wonder if the problem has to do with your host? On some shared hosts, you can only use one database, hence the 0,1 etc. on set up.</p><p>Look at your company setup screen when you are adding a new company. What is the table pref that you are using? It defaults to 1, however, that you would use only if you are on a shared host or if your local setup will not allow multiple databases. I notice from your screen shot that you are writing to the same database, yet you have no table pref set for the second company.</p><p>Try setting up a different database for the additional companies, and setting table pref to &quot;none&quot; on the company setup, pointing the new company to the new database.</p><p>Let us know if that works... good luck.</p><p>Janusz, please step in if I got any of this incorrect, but it seems to work for me.</p>]]></description>
			<author><![CDATA[null@example.com (avb3)]]></author>
			<pubDate>Tue, 06 Apr 2010 16:35:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5556#p5556</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5545#p5545</link>
			<description><![CDATA[<p>But what is then wrong with my installation?</p>]]></description>
			<author><![CDATA[null@example.com (spott)]]></author>
			<pubDate>Tue, 06 Apr 2010 03:10:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5545#p5545</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5543#p5543</link>
			<description><![CDATA[<p>I can confirm that installing a company with latest release (2.2.7) works.&nbsp; I even had it installed at a subdomain (FA.DOMAIN.COM)</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (smokinjo)]]></author>
			<pubDate>Mon, 05 Apr 2010 21:19:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5543#p5543</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5541#p5541</link>
			<description><![CDATA[<p>I can&#039;t understand, why its doesn&#039;t make any folders or what FA looking?<br />Can some-one confirm overall, that creating new companys working with latest FA? Maybe it is bug inside.</p>]]></description>
			<author><![CDATA[null@example.com (spott)]]></author>
			<pubDate>Mon, 05 Apr 2010 12:41:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5541#p5541</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5533#p5533</link>
			<description><![CDATA[<p>I haven&#039;t changed any permissions - I only showing You that all permissions are set to 777 - even installer confirms, that it can be write to company folder. And even sub-domain folder is writable.<br />Look my added pictures - there You can see - that all permissions are fine.</p><p>EDIT: checked with other installation - its not related with sub-domain.</p>]]></description>
			<author><![CDATA[null@example.com (spott)]]></author>
			<pubDate>Sat, 03 Apr 2010 06:39:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5533#p5533</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't add new company]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=5532#p5532</link>
			<description><![CDATA[<p>If you fixed the wrong permissions on company folders, the situation has changed, so what is the error message now? Surely when you have note that some file cannot be&nbsp; written this is permissions problem.</p><p>zenx, seems subdomain folder is not writable. FA does not need to know exact place of installation as it use only relative urls, so thihave to be local site setup problem.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Sat, 03 Apr 2010 06:15:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=5532#p5532</guid>
		</item>
	</channel>
</rss>
