<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Cannot add new journal entry]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6480&amp;type=atom" />
	<updated>2016-09-22T06:26:59Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6480</id>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26425#p26425" />
			<content type="html"><![CDATA[<p>Your zip file was not downloadable.</p><p>I have not been able to replicate your issue on a fresh install. Attached are the screenshots of my being able to enter 4 JVs in a row and surviving a browser timeout and editing a JV as well without errors.</p><p>My test was done on PHP 5.3.1 on XAMPP in WinXPSP3 for FA 2.4RC1 which should better accomodate PHP 5.4 code. Yours appears to be a specific PHP 5.4 issue or your flavour of Linux&#039;s quirks (Cloud OS).</p><p>Remove the &quot;?&gt;&quot; (without the quotes) in the last lines in all <strong>php</strong> and <strong>inc</strong> files for use of FA 2.3.25+ with PHP 5.4.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-22T06:26:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26425#p26425</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26424#p26424" />
			<content type="html"><![CDATA[<p>Hello @mohamednour.</p><p>I have not used your install environment, but downloaded your backup from 21 sep 2016.<br />This file has been entered into my latest 2.3.25 build, and I cannot reproduce your errors. Everything is flne.</p><p>Please download the latest snapshot from this <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/">link</a>.</p><p>and try again.</p><p>If you still have errors, then we have to search the errors in your environment. Server version, php version, mysql version etc.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2016-09-22T06:26:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26424#p26424</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26420#p26420" />
			<content type="html"><![CDATA[<p>Front Accounting Installation URL: http://trials.prodevcloud.com/frontaccountingtest/<br />Compressed ZIP file of this&nbsp; buggy installation Can be downloaded from here: https://www.dropbox.com/s/liwzru2byeuzyqk/frontaccountingtest.zip?dl=0<br />Thanks joe, kvvaradha and apmuthu</p>]]></content>
			<author>
				<name><![CDATA[mohamednour]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36145</uri>
			</author>
			<updated>2016-09-21T14:57:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26420#p26420</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26419#p26419" />
			<content type="html"><![CDATA[<p>Can you take a zip of your files and upload somewhere and provide us the download link.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-09-21T14:37:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26419#p26419</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26418#p26418" />
			<content type="html"><![CDATA[<p>Ok, I will investigate this tomorrow.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2016-09-21T14:36:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26418#p26418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26417#p26417" />
			<content type="html"><![CDATA[<p>thanks for the reply ,, i have shoot a new video that demonstrate the problem ,, please check it from here<br />https://www.dropbox.com/s/5l6yv7z5yml0jlc/FrontAccount%20Error.mp4?dl=0<br />it just 1.5 Min ,,, <br />After successfully adding 2 journal entries the program refused to add more and&nbsp; &nbsp; the debugger shows<br />Undefined index: journal_items in file: /home/trials/public_html/frontaccountingtest/gl/gl_journal.php at line 295<br />Call to a member function add_gl_item() on null in /home/trials/public_html/frontaccountingtest/gl/gl_journal.php on line 295<br />The error appears when i click &quot;Add Item&quot; button not when i click &quot;Process journal entry&quot;<br />---<br />@apmuthu: i confirm that i was unable to add more items (unable to add more accounts / unable to add second transfer entry)</p>]]></content>
			<author>
				<name><![CDATA[mohamednour]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36145</uri>
			</author>
			<updated>2016-09-21T13:14:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26417#p26417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26416#p26416" />
			<content type="html"><![CDATA[<p>Most people using the journal entry know the rules. There should not be more restrictions than needed.<br />It should not be possible to enter a voucher, that is not balanced.</p><p>During the long time FA has been running, I have heared of no problems in the journal voucher.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2016-09-21T11:37:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26416#p26416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26415#p26415" />
			<content type="html"><![CDATA[<p>The code is correct.<br />The way you entered the JV is wrong.<br />Each JV must have atleast 2 entries or the default 1060 (in your case) will be the contra entry filling in for the difference of all entries made in the JV till then. You had chosen the default contra account of 1060 (set in Banking &amp; GL =&gt; Bank Accounts =&gt; Dflt=Yes) as the first entry and then did not provide any second entry as the transfer account.</p><p>@joe: JV should not be allowed to proceed if there is only 1 entry and it is the default Bank Account. Also, we need to prevent a JV from being entered if there are 2 entries and both have the same Account Code and Amount (one on the Credit side and the other on the Debit side). Mere transfer of one amount from one account to itself in entirety is meaningless.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-21T05:59:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26415#p26415</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26411#p26411" />
			<content type="html"><![CDATA[<p>@apmuthu<br />Thanks for your reply i have update to the latest version you mentioned and i still face the same issue, I&#039;m running cPanel&nbsp; CloudLinux server with PHP 5.4,,, I have sent you logins for a test installation in PM ,, It would be great if you test it yourself ,,,Appreciate your help</p>]]></content>
			<author>
				<name><![CDATA[mohamednour]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36145</uri>
			</author>
			<updated>2016-09-20T11:45:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26411#p26411</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26407#p26407" />
			<content type="html"><![CDATA[<p>FA v2.3.25 was released on 2016-02-21. Since then there have been many fixes. Please use <a href="https://github.com/FrontAccountingERP/FA/archive/master.zip">FA 2.3.25+</a> which was last updated on <a href="https://github.com/FrontAccountingERP/FA/commits/master">2016-07-26</a>.</p><p>The errors you are getting possibly arise with incompatible php settings for your later version of PHP. What is your PHP/MySQL version and what platform and version is your server on (CentOS 6, Debian 8, etc)?</p><p>The offending line 295 in <strong>gl/gl_journal.php</strong> is:<br /></p><div class="codebox"><pre><code>    $_SESSION[&#039;journal_items&#039;]-&gt;add_gl_item($_POST[&#039;code_id&#039;], $_POST[&#039;dimension_id&#039;],
        $_POST[&#039;dimension2_id&#039;], $amount, $_POST[&#039;LineMemo&#039;]);</code></pre></div><p>The class member <strong>function add_gl_item</strong> is defined in <strong>includes/ui/items_cart.inc</strong> and it was last changed on 2014-09-22, much before the release of the version you are using. The file <strong>gl/gl_journal.php</strong> was last changed on 2015-03-15 and that too hasn&#039;t changed in your version. Hence it must be a generic issue of handling $_POST array&#039;s elements and that points to the newer PHP&#039;s idiosyncracies.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-20T07:16:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26407#p26407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26406#p26406" />
			<content type="html"><![CDATA[<p>kvvaradha : can you please explain more ,, this error happens with fresh new installation i didn&#039;t modify anything i didn&#039;t remove any files</p>]]></content>
			<author>
				<name><![CDATA[mohamednour]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36145</uri>
			</author>
			<updated>2016-09-20T01:48:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26406#p26406</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26404#p26404" />
			<content type="html"><![CDATA[<p>@Mohammed&nbsp; Nour - I have read your email as well.&nbsp; </p><p>This is because of the file which has the&nbsp; `add_gl_items`.&nbsp; You need that file to fix it. </p><p>Can you check your gl folder with fresh copy from server.&nbsp; Find the file than your problem might be solved.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-09-20T01:17:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26404#p26404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26400#p26400" />
			<content type="html"><![CDATA[<p>Here we go i see this error when i try to add new Item:<br />Undefined index: journal_items in file: /home/trials/public_html/frontaccountingtest/gl/gl_journal.php at line 295<br />Call to a member function add_gl_item() on null in /home/trials/public_html/frontaccountingtest/gl/gl_journal.php on line 295<br />-------------<br />how can i fix this ,, i really appreciate your help</p>]]></content>
			<author>
				<name><![CDATA[mohamednour]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36145</uri>
			</author>
			<updated>2016-09-19T00:09:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26400#p26400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26399#p26399" />
			<content type="html"><![CDATA[<p>those are the errors that happened today in the /home/fgc/public_html/tmp/errors.log<br />What does means and how to solve it<br />[18-Sep-2016 09:30:15 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 10:49:42 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 11:54:08 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 12:19:39 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 12:30:40 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 12:38:53 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 12:43:53 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 12:49:09 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 12:49:14 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 12:56:12 UTC] 0:nour:gl_journal_ui.inc:97: Invalid argument supplied for foreach()<br />[18-Sep-2016 12:57:00 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 12:59:02 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 13:00:54 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 13:01:00 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 13:02:47 UTC] 0:nour:gl_journal_ui.inc:97: Invalid argument supplied for foreach()<br />[18-Sep-2016 13:06:44 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 13:06:56 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 13:15:29 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 13:19:50 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 13:20:35 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 13:23:51 UTC] 0:nour:gl_journal_ui.inc:97: Invalid argument supplied for foreach()<br />[18-Sep-2016 13:32:51 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:08:52 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:17:58 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:18:00 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:18:12 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:24:56 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:27:13 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:27:15 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:39:47 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given<br />[18-Sep-2016 14:39:51 UTC] 0:nour:connect_db.inc:98: mysql_fetch_array() expects parameter 1 to be resource, boolean given</p>]]></content>
			<author>
				<name><![CDATA[mohamednour]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36145</uri>
			</author>
			<updated>2016-09-18T23:50:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26399#p26399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot add new journal entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26398#p26398" />
			<content type="html"><![CDATA[<p>Check on the config.php file (frontaccounting root folder) and enable debug options to understand where your error could be coming from.</p>]]></content>
			<author>
				<name><![CDATA[albertolima]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1640</uri>
			</author>
			<updated>2016-09-18T22:00:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26398#p26398</id>
		</entry>
</feed>
