<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Database error after .16 to .17 upgrade]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4433&amp;type=atom" />
	<updated>2013-10-01T12:00:29Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4433</id>
		<entry>
			<title type="html"><![CDATA[Re: Database error after .16 to .17 upgrade]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18014#p18014" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Yepp, the directory did not exist in my server.</p><p>I created /var/tmp/mysql.SUi1WS , now everything works ok <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Don&#039;t understand, but I&#039;m happy that everything is back in order <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Gunnar]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16393</uri>
			</author>
			<updated>2013-10-01T12:00:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18014#p18014</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Database error after .16 to .17 upgrade]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18013#p18013" />
			<content type="html"><![CDATA[<p>I guess the problem is outside FA code, and not really related to sql query: the message inform about some write problem in /var/tmp directory.<br />janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-10-01T08:02:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18013#p18013</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Database error after .16 to .17 upgrade]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18009#p18009" />
			<content type="html"><![CDATA[<p>Please pm me your backup from within FA for the said company. Also attach your config.inc.php file after deleting the db password.</p><p>Looks like it is a clear case of either some new variables with backward compatibility options not conforming to your specific choices or a database schema incompatibility. The latter would be so if you have been using FA for quite some time and have been incrementally upgrading it as versions change.</p><p>State whether you are using Linux or Windows or Mac and the webserver, php and mysql versions. Will try to hammer out a sql that you can restore to get it working. Also please check the charset and collations used.</p><p>There are some errors in the Norweigian COA - one extra field is present there and some are mis-ordered besides some default diffs. Attached are the corrections that may be taken into the appropriate package in the FA repo.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-09-30T14:00:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18009#p18009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Database error after .16 to .17 upgrade]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18008#p18008" />
			<content type="html"><![CDATA[<p>Hi,</p><br /><p>ok <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" />, I tried to upgrade to .18, but got the same error. <br />This is why I tried figure out if the error is in .17 or .18</p><p>We are using the Norwegian chart of accounts</p>]]></content>
			<author>
				<name><![CDATA[Gunnar]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16393</uri>
			</author>
			<updated>2013-09-30T13:00:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18008#p18008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Database error after .16 to .17 upgrade]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18004#p18004" />
			<content type="html"><![CDATA[<p>Lines 363-370 of <strong>sales/includes/sales_db.inc</strong>:<br /></p><div class="codebox"><pre><code>    $sql = &quot;SELECT parent.*
            FROM
                &quot;.TB_PREF.&quot;$par_tbl parent
            LEFT JOIN &quot;.TB_PREF.&quot;debtor_trans_details trans 
                ON trans.src_id=parent.id
            WHERE
                trans.debtor_trans_type=&quot;.db_escape($trans_type)
                .&quot; AND trans.debtor_trans_no=&quot;.db_escape($trans_no);</code></pre></div><p>This file was last changed in 2011-02-14.<br />No significant changes since v2.3.14 (2013-01-18) in the sql schema for the US standard 4 digit Chart of Accounts.</p><p>What Chart of Accounts are you using? Compare with the current one and see if there is any significant difference that might cause this kind of trouble.</p><p>Take a backup zip of your company&#039;s database and check.</p><p>Try upgrading directly to v2.3.18+Git.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-09-30T08:06:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18004#p18004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Database error after .16 to .17 upgrade]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18003#p18003" />
			<content type="html"><![CDATA[<p>I did an upgrade from .16 to .17 and got this error when I try to Print out Invoices.<br />Everything works fine in version .16</p><p>Any idea ??</p><p>can&#039;t retrieve child trans<br />error code : 1<br />error message : Can&#039;t create/write to file &#039;/var/tmp/mysql.SUi1WS/#sql_6a8_0.MAI&#039; (Errcode: 2)<br />sql that failed was : SELECT parent.* FROM 1_debtor_trans_details parent LEFT JOIN 1_debtor_trans_details trans ON trans.src_id=parent.id WHERE trans.debtor_trans_type=&#039;10&#039; AND trans.debtor_trans_no=&#039;1&#039; GROUP BY parent.debtor_trans_no ORDER BY parent.debtor_trans_no</p>]]></content>
			<author>
				<name><![CDATA[Gunnar]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16393</uri>
			</author>
			<updated>2013-09-30T05:23:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18003#p18003</id>
		</entry>
</feed>
